[Thread Prev][Thread Next][Index]

Re: [ferret_users] 3 bad/missing values



Hi Ben,

You can use Ferret's if-then logic to define a new variable which has only one missing value, e.g.

let /title=`my_var, return=title` /units=`my_var, return=units` /bad=-9999 my_var2=if (my_var eq 0 or my_var eq -32768) then -9999 else my_var

Cheers, Ingo



Ben Burford wrote:

Hi,

I have data with 3 different bad/missing data values (i.e. 0, -9999, -32768)

My (LAS) system gets the data from a server as binary values and uses Ferret
to write the data into a netcdf file, with one of the three values declared
in the netcdf file as a missing data value.

A script then directs Ferret to read the netcdf file and plot the data. Whe
n all three missing values are present in the data then the plot is obviousl
y very strange and the color bar shows a range of (e.g.) 0 to -9999 or 0 to -32768.

Is there any way to handle this situation with 3 bad/missing data values?

A big thank you for any help you can give.

Ben










[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement