Re: dimension problem with rgrid2rcm

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Jul 21 2011 - 07:03:30 MDT

You do not have to name the dimensions. No harm done.
The & is for coordinate variables and, by definition,
these must be monotonically {in,de}creasing one dimensional
arrays.

Replace

   output&lat=lat2d
   output&lon=lon2d

with
   output@lat2d=lat2d
   output@lon2d=lon2d

Th attributes 'lat2d' and 'lon2d' are reserved attribute names.
NCL recognizes these and will plot the data correctly.

Please note the use of @ to assign attributes.

On 7/20/11 11:32 PM, Xin Xi wrote:
> Hello all,
> I encountered a plotting problem on the output from rgrid2rcm.
> Input to rgrid2rcm is a global gridded dataset at 5 min resolution; grid
> to interpolate on is a WRF domain (with coordinates lat2d, lon2d) with
> size nlat x nlon. What I got is an output matrix (double) with size nlat
> x nlon; Now I want to make a plot of the output, so I did:
> output!0="lat"
> output!1="lon"
> output&lat=lat2d
> output&lon=lon2d
>
> It reported error: Coordinate variables must have one dimension only.
>
> Then I tried
> output!0="time"
> output!1="lat"
> output!2="lon"
> output&lat=lat2d
> output&lon=lon2d
>
> It still didnot work since output only has two dimensions.
>
> I am wondering if there is an easy way to make plots of output in this
> case. Thanks.
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 21 07:03:37 2011

This archive was generated by hypermail 2.1.8 : Fri Jul 29 2011 - 08:44:18 MDT