Skip to content

Diagnosing or specifying missing data value #1094

Locked Answered by JohnHalleyGotway
mpm-meto asked this question in File I/O
Discussion options

You must be logged in to vote

@mpm-meto I suspect that the underscore you're seeing is a red herring. You think it's being stored as an underscore because that's what ncdump is showing you. I believe that generally ncdump displays bad data values as '_' in the output.

For example, when you run "make test", this NetCDF output file is created:
out/pcp_combine/sample_obs_2005080712V_12A.nc

And it has a lot of missing data values around the edge, seen as white in this ncview image:

Running this ncdump command you'll see those values represented as underscores in the output:

ncdump -v APCP_12 out/pcp_combine/sample_obs_2005080712V_12A.nc | more
netcdf sample_obs_2005080712V_12A {
...
        float APCP_12(lat, lon) ;
...
…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JohnHalleyGotway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment