Re: Question about lat2D and lonPivot

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 02 2011 - 09:51:57 MST

lonPivot and lonFlip can only be used on rectilinear grids.
Rectilinear grids are ones where the coordinate variables
are one dimensional: lat[*] and lon[*]

I addded comments to the documentation.

A curvilinear grid where grid points are specified
by two dimensional arrays: lat[*][*] and lon[*][*]

I think you will have to write custom code to reorder
the grids the way you want.

Good Luck

On 2/2/11 9:24 AM, Gina Henderson wrote:
> Hi there,
> I have gridded data and am trying to do some array comparisons between
> two grids of the same projection. Both are shape 721x721 and I assign
> coordinate variables using the lat2D and lon2D functions.
> One of the grids however, due to the manner it was converted is
> georeferenced slightly differently and it requires the lon dimension to
> be shifted by 180 (See below).
> SCE@lat2d = lat
> SCE@lon2d = lon - 180.
> I am trying to shift the data array itself (SCE) rather than just the
> coordinate variables in order to do an array comparison with the other
> variable, which does not need this lon shift.
> I have tried lonPivot but get the error message:
> warning:Dimension (1) has not been defined
> (0) contributed.ncl: lonPivot: lon coord var is msg
> or
> fatal:No coordinate variable exists for dimension (lon) in variable (x)
> fatal:Execute: Error occurred at or near line 5842 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
> when I tried to define the dimensiones of the variable x.
> Any suggestions or hints would be very appreciated.
> Thanks, Gina.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Feb 2 09:52:02 2011

This archive was generated by hypermail 2.1.8 : Fri Feb 04 2011 - 09:26:53 MST