Re: adjusting irregular coordinate grids

From: Dennis Shea (shea AT cgd.ucar.edu)
Date: Tue Aug 02 2005 - 15:58:23 MDT


>I am trying to make a global plot displaying the mass concentration of
>dissolved aluminum. I am getting an error message saying that my data has
>non-monotonic coordinate variables. I used ncview to look up my lat, lon
>min and max values and they are.
> min max
>lat -89.5 89.5
>lon -180 180
>I am not sure if these are irregular or how I would go about adjusting
>them to fit onto a regular coordinate grid. Any help would be greatly
>appreciated. I have attached the data I am using
>

There is nothing wrong with your data.
The coordinate are monotonically increasing 1D arrays.

Most of it seems to be missing [_FillValue].

Note that your data does have the cyclic pt
included [lon=361 , -180 to +180]
                ^

The gsn_csm* suites of map functions assume that
there is no cyclic pt. It implicitly adds the
cyclic [wrap around] point.

Try:

   res@gsnAddCyclic = False ; data already has cyclic pt
   
Perhaps, u might want to turn on Raster mode

   res@cnFillMode = "RasterFill" ; Raster Mode

http://www.ncl.ucar.edu/Applications/raster.shtml
   
D

_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Wed Aug 03 2005 - 09:58:04 MDT