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.
Ok, the first thing to check is if the problem is in the netcdf-c library or in ncview. Try dumping the variable in question using ncdump and the -v option. =Dennis Heimbigner Unidata p.s. If the netcdf file is not too large, then you can send it to me at dmh at ucar dot edu. On 1/16/2017 7:12 AM, Heiko Klein wrote:
Hi, I just was surprised by strange results from ncview when reading a variable with 'short' values, where all data is undefined. ncview reads all data with nc_geta_vara_float. _FillValues are defined as -32767s. Reading undefined data with nc_get_vara_float results in values = -0 or 0 for all _FillValues. I had expected a value like -32767.f (or more generally, the _FillValue translated into float) Is the 0-result really the expected behaviour of nc_get_vara_float? I have then no idea how to handling _FillValues correctly. Best regards, Heiko _______________________________________________ NOTE: All exchanges posted to Unidata maintained email lists are recorded in the Unidata inquiry tracking system and made publicly available through the web. Users who post to any of the lists we maintain are reminded to remove any personal information that they do not want to be made public. netcdfgroup mailing list netcdfgroup@xxxxxxxxxxxxxxxx For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/
netcdfgroup
archives: