[Thread Prev][Thread Next][Index]

[ferret_users] Re: How to save NetCDF data on curvilinear grid?



Hi,
Has anybody ever done it?
Is it possible to do it with Ferret?

2011/3/2 Szymon Roziewski <szymon.roziewski@xxxxxxxxx>
Hi Ferreters!
I'm trying to save some data in 660 colums and 750 rows matrix which is defined on curvilinear grid but I don't know how to do.

This is my ferret script:

DEFINE AXIS/x=1:660:1 xaxis
DEFINE AXIS/y=1:750:1 yaxis
DEFINE GRID/x=xaxis/y=yaxis gridlonlat
FILE/VARIABLES=rose/COLUMNS=660/GRID=gridlonlat warnTopography660x750_1space.dat
FILE/VARIABLES=clon_in/COLUMNS=660/GRID=gridlonlat LonIcmWarn660x750.dat
FILE/VARIABLES=clat_in/COLUMNS=660/GRID=gridlonlat LatIcmWarn660x750.dat
set var/title="LONGITUDE" clon_in[d=2]
set var/title="LATITUDE" clat_in[d=3]

save/clobber/file=Warn_in_ICM_Topography.nc rose[d=1],clon_in[d=2],clat_in[d=3]

First of all I read the data on some abstract grid (660x750) i.e. rose (main data), clon_in (matrix of curvilinear longitudes), clat_in (matrix of curvilinear latitudes).
Afterwards, I would like to save the rose data on curvilinear grid e.g. rose(clon_in, clat_in) as NetCDF file.
How could I manage to do that?

Kind regards,
Szymon Roziewski



--
Z wyrazami szacunku,
Szymon Roziewski

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

Privacy Policy | Disclaimer | Accessibility Statement