Question about lat2D and lonPivot

From: Gina Henderson <ginah_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 02 2011 - 09:24:12 MST

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


fatal:No coordinate variable exists for dimension (lon) in variable (x)
fatal:Execute: Error occurred at or near line 5842 in file

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:
Received on Wed Feb 2 09:24:19 2011

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