[ncl-talk] problem with dimensions of a variable
Geeta Geeta
geetag54 at yahoo.com
Fri Apr 2 09:27:11 MDT 2021
Hi
I am trying to read a file which is Orbital data (TRMM 1B11) which has following dimensions.
ScanType=CONICAL;
dimensions:
nscan = 3019
npixel = 208
fakeDim2 = 3
fakeDim3 = 3
nchan = 9
fakeDim5 = 3
fakeDim6 = 2
fakeDim7 = 16
npixlo = 104
nchanlo = 7
nchanhi = 2
The latitude and Longitude Variables have dimensions of 3019 and 208 each
float Latitude ( nscan, npixel ) units : degrees
hdf_name : Latitude
float Longitude ( nscan, npixel )
units : degrees
hdf_name : Longitude
Now I wish to Plot following variable short lowResCh ( nscan, npixlo, nchanlo )
scale_factor : 100
scale_factor_err : 0
add_offset : 100
add_offset_err : 0
calibrated_nt : 22
units : K
hdf_name : lowResCh
Tb = short2flt(f->lowResCh)
Tbb = (Tb+100)/100
copy_VarCoords(Tb,Tbb)
My problem is How do I attach the Latitude and Longitude arrays to the variable Tbb (has dimensions of 3019, 104,7)
I am attaching the code with this mail.
Thanks
Geeta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210402/2d5407fc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 21may2009.tb.ncl
Type: application/octet-stream
Size: 1954 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210402/2d5407fc/attachment.obj>
More information about the ncl-talk
mailing list