Hello,
I am trying to convert the variable x(nyear, nmon,kp,mjx,mix)
where nyear, nmon, kp, mjx, mix are all scalars, like
ua1 = fbinrecread (infile,2, (/nyear,nmon,kp,mjx,mix/),"float")
to a variable xNew = onedtond( ndtooned(X), (/ntim,nlev,nlat,mlon/))
where nlat = dimsizes(lat2d) and mlon= dimsizes(lon2d).
lat2d = fbinrecread (infile,0, (/mjx,mix/),"float")
lon2d = fbinrecread (infile,1, (/mjx,mix/),"float")
I shall appreciate any ideas on how to do that since
xNew = onedtond( ndtooned(X), (/ntim,nlev,nlat,mlon/)) is wrong
because nlat and mlon are 2D while ntim and nlev are 1D?
Note that I cannot read lat2d and lon2d into 1D variables because
they do not repeat themselves.
Thanks
Ben
--Benjamin L. Lamptey Phone: (814) 865-9911 (office) Pennstate (EMS Environment Institute) (814) 237-8193 (home) 2217 Earth-Engineering Sciences Bldg Fax : (814) 865-3191 University Park, PA 16802 WWW:http://www.essc.psu.edu/~lamptey
_______________________________________________ ncl-talk mailing list ncl-talk AT ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Mon Nov 01 2004 - 10:34:42 MST