[ncl-talk] Unable to generate plot from Lambert_conformal grid data

Adam Phillips asphilli at ucar.edu
Mon Nov 7 14:28:08 MST 2022


Hi Debasish,
I do not have any experience working with lambert_conformal gridded data,
but looking at your ncdump output there are variables named lat and lon
that are 2D variables that I think you can use to plot the data directly
using the lat2d/lon2d assignment method.
I would try this:

dustsfc = flt2dble(a1->dust)
lev = a1->pfull
dustsfc2 at lat2d = a1->lat
dustsfc2 at lon2d = a1->lon
labes = (/"Dust conc(ug/kg) at surface : 00FH"/)

 wks_type = "png"
..... (continue using the rest of your script)

If that does not work I would recommend creating a new netCDF file that
only contains a single 3D variable, along with the first 8 variables shown
in your ncdump output (pfull->lat), and send that new file to the ncl-talk
email list. Include your most recent script and any error messages that you
are getting as well.
Good luck,
Adam

On Mon, Nov 7, 2022 at 12:35 PM Debasish Hazra via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

> Hi,
> I am trying to plot variable which is in lambert_conformal grid, but I am
> not able to generate the plot. Attached is ncl_filedump and ncl script.Can
> anyone point out how to do it. Thanks
>
> Debasish.
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


-- 
Adam Phillips
Associate Scientist IV, Climate Analysis Section
Climate and Global Dynamics Laboratory
National Center for Atmospheric Research
www.cgd.ucar.edu/staff/asphilli/

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20221107/a26fadb0/attachment.htm>


More information about the ncl-talk mailing list