Re: Plotting non-uniform gridded netCDF data

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 20 Aug 2007 09:30:03 -0600 (MDT)

Hi lAll,

We are working with Sarav offline. However, I wanted to provide a
quick update: it appears that in this case, the 2D lat/lon arrays are
not very "regular" and hence the usual method of attaching the
lat2d/lon2d arrays to your data may not work.

Instead, we are trying the triangular mesh method, where we
convert the data and the lat/lon arrays to 1D, which causes
NCL to automatically go into triangular mesh mode.

To do this, you need to set the sfXArray and sfYArray resources
to the 1D lon/lat arrays, and the data array must also be a
1D array of the same length.

I'll report back if we have any new information. See:

    http://www.ncl.ucar.edu/Applications/trimesh.shtml

--Mary

On Fri, 17 Aug 2007, Saravanan Arunachalam wrote:

>
> Hi,
>
> I am trying to plot terrain from a gridded netCDF file which contains
> non-uniform grid-spacing. The grid resolution varies from coarse at the
> outer-edge to fine at the interiors. But something is not right
> with my output plot. You can see the streaks as well as a lot of white color
> (off the chart from the given range).
>
> The NCL script I am using and the problem plot are at:
> ftp://ftp.unc.edu/pub/empd/sarav/NCL/vgrid_HT.ncl
> ftp://ftp.unc.edu/pub/empd/sarav/NCL/vgrid_HT.gif
>
> The same script works fine when I use it to visualize another comparable file
> where the grid resolution is uniform across the entire domain.
>
> Any suggestions for a fix would be appreciated. Dennis, you helped me with
> this issue sometime back, and I had it working. But unsure what may be the
> problem now.
>
> Also, is it possible to draw the grid-lines (horizontal and vertical) that
> correspond to my domain?
>
> Thanks.
>
> Sarav Arunachalam
>
> ps: I am using NCL Version 4.3.0
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Aug 20 2007 - 09:30:03 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 20 2007 - 09:30:37 MDT