[Thread Prev][Thread Next][Index]

Re: [ferret_users] create a multidimensional data file



As I remember me and Ansley told you in your earlier post about clobber and append.

append ---> If file exists then append, otherwise create and write to it
clobber ---> If the file exists then overwrite it, otherwise create and write to it

in first glance I could find some errors here..

if `yy eq 1` then ;\
list/file=daytime8_ma21.nc/format=cdf/clob/l=`yy`/llimits=1:2398 lat11,lat12,lon11,lon12,alt,month1,day1,lct1,edmax1;\
else ;\
list/app/file=daytime8_ma21.nc/format=cdf/clob/l=`yy` lat11,lat12,lon11,lon12,alt,month1,day1,lct1,edmax1;\
endif ;\



Thanks and Regards,
Akshay Hegde
CSIR-National Institute of Oceanography,
Dona Paula, Panjim, Goa -403004




On Sun, Oct 27, 2013 at 3:31 PM, Gopal Mondal <gopalmondal18@xxxxxxxxx> wrote:
I have almost 2400 data file.I want to create a data file of one parameter edmax(lat,lon,alt,time).I have  writen a .jnl script as follows.With this script lat11,lat12,lon11,lon12,alt,month1,day1,lct1,edmax1 parameters are in 1D with 1:2400 index in t-axis only.But I want to create it like above i.e. edmax(lat,lon,alt,time).Please help any one...

*******************

def symb start=1
def symb end=2398
def axis/t0=15-May-2009/t=1:2398:1/unit=hours tax
repeat/range=($start):($end)/name=yy (;\
use daytime8.`yy`.nc;\
let lat1=..botlat;\
let lat2=..edmaxlat;\
let lon1=..botlon;\
let lon2=..edmaxlon;\
let alt1=..edmaxalt;\
let month=..month;\
let edmax=..edmax;\
let lct=..botlct;\
let day=..day;\
let lat11=lat1+0*t[gt=tax];\
let lat12=lat2+0*t[gt=tax];\
let lon11=lon1+0*t[gt=tax];\
let lon12=lon2+0*t[gt=tax];\
let alt=alt1+0*t[gt=tax];\
let month1=month+0*t[gt=tax];\
let edmax1=edmax+0*t[gt=tax];\
let lct1=lct+0*t[gt=tax];\
let day1=day+0*t[gt=tax];\
if `yy eq 1` then ;\
list/file=daytime8_ma21.nc/format=cdf/clob/l=`yy`/llimits=1:2398 lat11,lat12,lon11,lon12,alt,month1,day1,lct1,edmax1;\
else ;\
list/app/file=daytime8_ma21.nc/format=cdf/clob/l=`yy` lat11,lat12,lon11,lon12,alt,month1,day1,lct1,edmax1;\
endif ;\
can da/all ;\
)

****
next what to do I don't know..
please help me
Thanks in advance

Gopal Mondal


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

Privacy Policy | Disclaimer | Accessibility Statement