This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Unidata Support <address@hidden> writes: > ------- Forwarded Message > >>To: support <address@hidden> >>From: "meteo.ru" <address@hidden> >>Subject: netCDF constants >>Organization: ? >>Keywords: 200506281213.j5SCDaW4017924 netCDF missing data values > > Hello, support team. > > What are the constants of missing data values for each data type (e.g. > int, double, char)? > > -- > Best regards, Sergey Sukhonosov mailto:address@hidden Howdy Sergey! From netcdf.h: /* * Default fill values, used unless _FillValue attribute is set. * These values are stuffed into newly allocated space as appropriate. * The hope is that one might use these to notice that a particular datum * has not been set. */ #define NC_FILL_BYTE ((signed char)-127) #define NC_FILL_CHAR ((char)0) #define NC_FILL_SHORT ((short)-32767) #define NC_FILL_INT (-2147483647L) #define NC_FILL_FLOAT (9.9692099683868690e+36f) /* near 15 * 2^119 */ #define NC_FILL_DOUBLE (9.9692099683868690e+36) For more information on fill values, take a look at: http://my.unidata.ucar.edu/content/software/netcdf/docs/netcdf-c/Fill-Values.html Does this answer your question? Ed -- Ed Hartnett -- address@hidden