[Thread Prev][Thread Next][Index]

Re: [ferret_users]append multiple slabs on X axis



Hi -
You'll find just the information you need if you look up

"append, slab to NetCDF, example"

in the Ferret Users' Guide index.  The example has you reading data from ascii files and appending but the SAVE commands show how to set it up.

Ansley

On 9/14/2011 1:32 PM, jean li wrote:
Hi All:
 
I am trying to compute the zonal integration of variable "data[i,j,t]" from longitude[i] to a fixed longitude, i.e. 290. The zonal integration, M, should have the same dimension as "data". But, I can only get one slab at each loop of i (total number of i is 600). The save/append or list/append command did not work on the X axis. Does anyone have any ideas to append the slabs on X axis? Below is the script.
 
-----------------------
let lon=x[g=data];
repeat/range=1:600/name=inx (let xstart=lon[i=`inx`];\
let M = data[x=`xstart`:290@din]/1.0e6;\
save/append/file=M_1998.nc M )
---------------------------------------------------
 
Thanks for your help!
 
Jean

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

Privacy Policy | Disclaimer | Accessibility Statement