Menu

#1011 Missing values ignored by ncdfvdfcreate/ncf2vdf

2.3.0
closed-rejected
clynejp
ncdf2vdf (4)
6
2014-11-04
2014-04-02
clynejp
No

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

Discussion

  • clynejp

    clynejp - 2014-11-04
    • status: open --> closed-rejected
     
  • clynejp

    clynejp - 2014-11-04

    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.

     

Log in to post a comment.