Re: Re, warning:ScalarFieldSetValues: irregular coordinate array.

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri, 20 Jan 2006 14:25:50 -0700 (MST)

>
>On Fri, 20 Jan 2006, Yi Wang wrote:
>
>> Hi All:
>>
>> I have this kind problem again. The data comes in at 2.5x2.5 grid level.
>> Lon. goes from 0 to 357.5. I reorder the Lon. to be from -177.5 to 180. Then,
>> I process it and want to plot the Africa region (-30 to 60 in Lon.). I use
>> res@gsnAddCyclic = False. The following error message comes out:
>>
>> " warning:ScalarFieldSetValues: irregular coordinate array sfXArray
>> non-monotonic: defaulting sfXArray"
>>
>> Thank you in advance.
>
>Dear Yi Wang,
>
>I'm not sure how you tried reordering your longitude values, but we
>have nice function called "lonFlip" for doing this. This function will
>reorder both your longitude coordinate array and the data
>appropriately.
>
>If your data is 2-dimensinal and the rightmost dimension is the
>longitude dimension, then this function could be useful for
>you. Please see:
>
>http://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml
>
>for more information. You will need to load the contributed.ncl script
>to have access to this function:
>
>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
=====

lonFlip can handle (almost) any dimensionality

see:

http://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml

D

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jan 20 2006 - 14:25:50 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 20 2006 - 15:26:27 MST