[ncl-talk] problem with dimensions of a variable

Dennis Shea shea at ucar.edu
Fri Apr 2 09:58:02 MDT 2021


Latitude    = f->Latitude
Longitude = f->Longitude
;---------------------------
Tbb at lat2d = Latitude
Tbb 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/0f6a0ba5/attachment.html>


More information about the ncl-talk mailing list