Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690