[ncl-talk] problem with dimensions of a variable
Geeta Geeta
geetag54 at yahoo.com
Fri Apr 2 10:02:22 MDT 2021
Thank you sir for your mail.
I have done the same.
But the Latitude and Longitude in file have DIM of 3019,208
Latitude ( nscan, npixel )
units : degrees
hdf_name : Latitude
float Longitude ( nscan, npixel )
units : degrees
hdf_name : Longitude
whereas the variable Tbb has dim of 3019,104
So i am unable to attach the lat and Lon var to Tbb
thanks
Geeta.
On Friday, 2 April, 2021, 9:28:15 pm IST, Dennis Shea <shea at ucar.edu> wrote:
Latitude = f->LatitudeLongitude = f->Longitude;---------------------------
Tbb at lat2d = LatitudeTbb at lon2d = Longitude
On Fri, Apr 2, 2021 at 9:27 AM Geeta Geeta via ncl-talk <ncl-talk at mailman.ucar.edu> wrote:
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._______________________________________________
ncl-talk mailing list
ncl-talk at mailman.ucar.edu
List instructions, subscriber options, unsubscribe:
https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210402/bc8eadd7/attachment.html>
More information about the ncl-talk
mailing list