Re: [netcdfgroup] how to change a missing value

This is actually a bit tricky -- as there is that, IIUC, there is an
"internal" fill value set in netCDF that should be kept in sync with the
attribute. I may be confusing things, as that "internal" one may only be a
default, but there have been issues with them getting out of sync.

If NCO or CDO has a "change fill value" command, that would be great -- I'd
look for that.


> Having said that, NaN is usually "safer" in that its use causes error,
> making your bugs easier to spot.
>

agreed, I like NaN as a fill value, but there's a downside -- NaN dpes not
equal NaN, so code that does:

if something == fill_value:

Will not work. It can be tricky.

-CHB


affiliation: CU/CIRES working at NOAA/PSL
>>
>> https://psl.noaa.gov/people/cathy.smith/
>> Emails about data/webpages may get quicker responses by 
>> emailingpsl.data@xxxxxxxx
>> Sign up for PSL newsletter
>>
>> _______________________________________________
>> 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:
>> https://www.unidata.ucar.edu/mailing_lists/
>>
> _______________________________________________
> 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:
> https://www.unidata.ucar.edu/mailing_lists/
>


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@xxxxxxxx
  • 2025 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: