Marjolaine,
For this plotting function, the data array has to be dimensioned lat x lon, so
you need to reorder the array:
plot = gsn_csm_contour_map_ce(wks,SSH(lat|:,lon|:),res) ; contour the variable
Also, make sure you are setting res@gsnAddCyclic = False, since your data does
not span 360 degrees longitude. (This didn't cause the error messages though...)
Adam
>Delivered-To: asphilli@ucar.edu
>Delivered-To: ncl-talk@ucar.edu
>From: "Marjolaine Krug" <marjolaine@absamail.co.za>
>To: <ncl-talk@ucar.edu>
>Date: Wed, 27 Oct 2004 18:52:54 +0200
>MIME-Version: 1.0
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>Importance: Normal
>X-MS-TNEF-Correlator: <MDBBLMBBKKAENIPOBLLKOEHOCAAA.marjolaine@absamail.co.za>
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
>X-Mailman-Approved-At: Thu, 28 Oct 2004 08:02:08 -0600
>Subject: help with variable coordinates
>X-BeenThere: ncl-talk@ucar.edu
>X-Mailman-Version: 2.1.1
>List-Id: NCAR Command Language User Group <ncl-talk.ucar.edu>
>List-Unsubscribe: <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>,
<mailto:ncl-talk-request@ucar.edu?subject=unsubscribe>
>List-Post: <mailto:ncl-talk@ucar.edu>
>List-Help: <mailto:ncl-talk-request@ucar.edu?subject=help>
>List-Subscribe: <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>,
<mailto:ncl-talk-request@ucar.edu?subject=subscribe>
>X-Spam-Status: No, hits=-2.7 required=5.0 tests=BAYES_20,MSGID_GOOD_EXCHANGE
version=2.55
>X-Spam-Level:
>X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
>
>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?
>
>
>
-------------------------------------------------------------
Adam Phillips email: asphilli@ucar.edu
Climate and Global Dynamics Division tel: (303) 497-1726
National Center for Atmospheric Research fax: (303) 497-1333
P.O. Box 3000
Boulder, CO 80307-3000 http://www.cgd.ucar.edu/~asphilli
_______________________________________________
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:27:51 MDT