NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

trouble with nc_put_vara_scar

Hi,

I am obviously missing a point here, but this is my problem: We have
read/write routines that accept a float array and a nc_type.  The routines
use a switch (nc_type) to copy w/truncation to an appropriate temp array of
the correct type, and then call the appropriate nc_put_vara_<type> function.
This works fine for all except nc_put_vara_scar which returns the error
"Attempt to convert between text and numbers".  I am thinking of scar as
1-byte numbers from -127/+127 as opposed to the uchar version which is
1-byte numbers in 0-255 range.  What is my misunderstanding?

Cheers,

Paul Wessel
GMT developer



  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: