[Thread Prev][Thread Next][Index]

Re: [ferret_users] Converting missing values to "NaN"



Hi,

| > Hello! I am trying to analyze a NetCDF file in MatLab, and
| > I would like to change all "missing" values in the dataset
| > to NaN for compatibility. This would probably be trivial
| > if the missing()
[. . .]
| Perhaps somebody can
| tell us whether the NCO operators will let you do this.

It seems to me that you may be able to trick ncap2 into
doing that.  I say this because I don't see a legitimate
way to generate a NaN in the ncap2 language.  If ncap2
passes values to its math backend without checking,
things like "sqrt(-1.0)" and "0.0/0.0" may generate NaNs.
I haven't tested this idea.

Regards,
Ryo


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement