[Thread Prev][Thread Next][Index]

Re: [ferret_users] medatlas fig....



Hi all,
One should be able to do this in Ferret; see NaN in the Users Guide index.

yes? set var/bad=NAN a

however that wasn't enough to be able to use this particular file as is in Ferret -- thanks to others who have suggested other ways to handle it.

Ansley

Hella Riede wrote:
Hi Mahesh,

I believe the not-a-numbers (nan) cause the problem. Replacing them by -1.E+34 (typical 'missing value' for ferret) seems to yield reasonable results.

I did the following

1) make it human-readable
ncdump -bc <your file> > <your file>.cdl

2) replace nan by the 'missing value' (assuming there are are no important 'nan'-containing strings in the header since they would be replaced as well)
sed 's|nan|-1.E+34|g' <your file>.cdl > <your file>_mod.cdl

3) create new netCDF file
ncgen -o <your file>_mod.nc <your file>_mod.cdl


Cheers,
Hella



Mahesh Shinde wrote:
Dear Ferret users,

I am new to ferret. I want to plot clim of metatlas. But it does not plot properly.
here i am sending a clim_temp_medi.nc<http://clim_temp_medi.nc>

please help.

Thanks

Mahesh

--
---------------------------------------------------------------------------------------------------------------------
(Current Affiliation)
Mahesh Shinde
Climate Research Lab(IC3),
Barcelona Science Park,
University of Barcelona,
Barcelona-08028,Spain
email: mshinde@xxxxxxx<mailto:mshinde@xxxxxxx>
----------------------------------------------------------------------------------------------------------------------
(Permanent Affiliation)
Mahesh Shinde
Climate and Global Modeling Division,
Indian Institute of Tropical Meteorology,
(Under the Ministry of Earth Sciences, Govt. Of India)
NCL POST, Dr. Homi Bhabha Road,
Pashan,Pune-411008, INDIA
email: samurai@xxxxxxxxxxxxxx<mailto:samurai@xxxxxxxxxxxxxx>
cell: +91-9822050959
----------------------------------------------------------------------------------------------------------------------





[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement