[ncl-talk] define group of variables of different size and type with NCL
franz
f.trotta at sincem.unibo.it
Mon Jul 11 03:22:44 MDT 2016
Dear ncl-team
I’m using the nil 6.3.0
In my NCL program, I define all file name of datasets that I use like
in the follow way:
file_extrapdataOce_temp_less1 = new((/nnest/),string,"")
file_extrapdataOce_temp = new((/nnest,ndays_max/),string,"")
file_extrapdataOce_temp_plus1 = new((/nnest/),string,"")
file_extrapdataOce_sal_less1 = new((/nnest/),string,"")
file_extrapdataOce_sal = new((/nnest,ndays_max/),string,"")
file_extrapdataOce_sal_plus1 = new((/nnest/),string,"")
file_extrapdataOce_ssh_less1 = new((/nnest/),string,"")
file_extrapdataOce_ssh = new((/nnest,ndays_max/),string,"")
file_extrapdataOce_ssh_plus1 = new((/nnest/),string,"")
file_extrapdataOce_curx_less1 = new((/nnest/),string,"")
file_extrapdataOce_curx = new((/nnest,ndays_max/),string,"")
file_extrapdataOce_curx_plus1 = new((/nnest/),string,"")
file_extrapdataOce_cury_less1 = new((/nnest/),string,"")
file_extrapdataOce_cury = new((/nnest,ndays_max/),string,"")
file_extrapdataOce_cury_plus1 = new((/nnest/),string,"")
set_files_extrapdataOce(nnest,ndays,runMan_date_less1,runMan_date_plus1,runMan_date,
\
file_extrapdataOce_temp_less1,file_extrapdataOce_temp,file_extrapdataOce_temp_plus1,
\
file_extrapdataOce_sal_less1,file_extrapdataOce_sal,file_extrapdataOce_sal_plus1,
\
file_extrapdataOce_ssh_less1,file_extrapdataOce_ssh,file_extrapdataOce_ssh_plus1,
\
file_extrapdataOce_curx_less1,file_extrapdataOce_curx,file_extrapdataOce_curx_plus1,
\
file_extrapdataOce_cury_less1,file_extrapdataOce_cury,file_extrapdataOce_cury_plus1)
All these file name belong to subgroup ‘file_extrapdataOce’ and I
would like to define something like ‘C language structures’
Is it possible to define in NCL groups of variables of different size
and type?
thanks
Francesco T.
More information about the ncl-talk
mailing list