help with variable coordinates

From: Marjolaine Krug (marjolaine AT XXXXXX)
Date: Wed Oct 27 2004 - 10:52:54 MDT

  • Next message: Sylvia Murphy: "Re: help with variable coordinates"

    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?




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



    This archive was generated by hypermail 2b29 : Thu Oct 28 2004 - 08:30:40 MDT