marjolaine,
be aware that anytime you do something to a variable in NCL, like muliply
it by a constant or pass it through most of NCL's built in functions, you
loose all your meta data.
is this printVarSummary output from the line directly above the call to
gsn_csm_contour_map_ce?
also, since you are not plotting a global domain make sure you have
gsnAddCyclic set to false.
sylvia
On Wed, 27 Oct 2004, Marjolaine Krug wrote:
> Hi,
>
> I am trying to display some sea surface height data. After reading the
> netcdf file and selecting
> my domain of interest (between 5E-37E and 10S-45S), I created a variable
> named SSH with the following characteristics:
>
> Variable: SSH
> Type: double
> Total Size: 94672 bytes
> 11834 values
> Number of Dimensions: 2
> Dimensions and sizes: [lon | 97] x [lat | 122]
> Coordinates:
> lon: [4.999999999981497..36.9999999999
> lat: [-44.94717361016565..-10.03921300
> Number Of Attributes: 3
> units : cm
> long_name : Sea Surface Height
> _FillValue : -999
> (0,0) 154.9432401657104
> (0,1) 156.5235819816589
> (0,2) 157.7931829690933
> (0,3) 158.2195770740509
> (0,4) 158.3596502542496
> (0,5) 159.1470654010773
> (0,6) 160.468214392662
>
> After setting the plot resources, I try to visualise my variable SSH with
> the command
> plot = gsn_csm_contour_map_ce(wks,SSH,res) ; contour the variable
>
> and get prompted with the following message:
>
> (0) check_for_y_lat_coord: Warning: Data either does not contain a valid
> latitude coordinate array or doesn't contain one at all.
> (0) Valid latitude names include:
> (0) 'lat' 'Lat' 'Latitude' 'LAT' 'latitude' 'LATITUDE' 'hlat'
> 'lat_u' 'lat_t' 'lat_98' 'lat1' 'lat2' 'yc'
> (0) check_for_lon_coord: Warning: Data either does not contain a valid
> longitude coordinate array or doesn't contain one at all.
> (0) Valid longitude names include:
> (0) 'lon' 'Lon' 'Longitude' 'LON' 'longitude' 'LONGITUDE' 'hlon'
> 'long' 'lon_u' 'lon_t' 'lon_98' 'lon1' 'lon2' 'xc'
>
> I do not understand what went wrong. Can someone help?
>
>
>
>
******************************************************
Sylvia Murphy EML: murphys@ucar.edu
NCAR CGD/CSEG PHN: 303-497-1720
1850 Table Mesa Drive FAX: 303-497-1333
Boulder CO 80305
WEB: http://www.cgd.ucar.edu/csm/support/
http://www.cgd.ucar.edu/csm/support/CSM_Graphics/
******************************************************
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Thu Oct 28 2004 - 09:10:12 MDT