comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Creating netCDF file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Creating netCDF file [message #79984] Fri, 20 April 2012 04:03
shambhu is currently offline  shambhu
Messages: 41
Registered: December 2011
Member
Hi all,

I have a .pro which takes 5(t,q,m,h,p) input and gives 7(p, z, d, r,
s, t, a) output parameters. please tell me how to make netCDF file for
this. For me its working for 4 variables. When i define 5th parameter
its giving error " NC_UNLIMITED dimension already in use". Please tell
me, how to resolve this.

id = NCDF_CREATE(file_name, CLOBBER = clobber) ;Create
netCDF output file

tid = NCDF_DIMDEF(id, 'time', t)
qid = NCDF_DIMDEF(id, 'q', q)
mid = NCDF_DIMDEF(id, 'Md', Md)
hid = NCDF_DIMDEF(id, 'H', h)
pid = NCDF_DIMDEF(id, 'hplus', hplus)

vid = NCDF_VARDEF(id, 'data', [tid, qid, Mdid, hid, pid], /
LONG) ;Define data variable
NCDF_CONTROL, id, /ENDEF
NCDF_VARPUT, id, 'data', data
NCDF_CLOSE,
id ;Close
netCDF output file
[Message index]
 
Read Message
Previous Topic: Keyword DIMENSION not allowed in call to: MOMENT
Next Topic: Keyword DIMENSION not allowed in call to: MOMENT

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:32:59 PDT 2025

Total time taken to generate the page: 0.00565 seconds