The -missing value option is ignored by ncdfvdfcreate/ncdf2vdf in some instances
Test data are located in VAPOR/Bugs<bugid>
To reproduce:
1. ncdfvdfcreate -vdc2 -vars S:Xlons:Ylats -timedims time -timevars Times -extents -75.6:38.8:0.5:-73.5:41.5:0.5 -missing -10.0 NetCDFout1.nc NetCDFout1.vdf 2. ncdf2vdf -vars S:Xlons:Ylats -timedims time -timevars Times NetCDFout1.nc NetCDFout1.vdf 3. vaporgui NetCDFout1.vdf 4. Display the S variable
Reported by: Jim Schiavone jimschiavone@gmail.com
The ncdfvdfcreate "-missing" option specifies a global missing value for all NetCDF variables. Here, the missing value only applies to the S variable (the Xlons and Ylats variables do not contains missing values). One workaround is to not convert Xlons and Ylats with ncdf2vdf. Another would be to add a missing value attribute to the NetCDF file and then use the ncdfvdfcreate -missattr option to indicate the attributes presence.