Error about NetCDF

From: <caoyan_at_nyahnyahspammersnyahnyah>
Date: Mon, 1 Sep 2008 16:04:43 +0800 (CST)

hello:
 
   I want display NetCDF file, but it occur such error:" check_for_y_lat_coord: Warning: Data either does not contain a valid latitude coordinate array or doesn't contain one at all.
(0)A valid latitude coordinate array should have a 'units' attribute equal to one of the following values:
(0)'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'"
 
the unit in My NetCDF file is "Meter"
 
following is the result of printVarSummary()
 
Variable: a
(0)
filename: province
path: province.nc
   file global attributes:
      Conventions : CF-1.0
      Source_Software : ESRI ArcGIS
   dimensions:
      ncl_scalar = 1
      x = 1222
      y = 1000
   variables:
      double x ( x )
         long_name : x coordinate of projection
         standard_name : projection_x_coordinate
         units : Meter
 
      double y ( y )
         long_name : y coordinate of projection
         standard_name : projection_y_coordinate
         units : Meter
 
      short Calculation ( y, x )
         long_name : Calculation
         esri_pe_string : PROJCS["Clarke_1866_Albers",GEOGCS["GCS_Clarke_1866",DATUM["D_Clarke_1866",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",110.0],PARAMETER["Standard_Parallel_1",25.0],PARAMETER["Standard_Parallel_2",47.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
         coordinates : x y
         grid_mapping : albers_conical_equal_area
         units : Meter
         missing_value : -128
         _FillValue : -128
 
      integer albers_conical_equal_area ( ncl_scalar )
         grid_mapping_name : albers_conical_equal_area
         longitude_of_central_meridian : 110
         latitude_of_projection_origin : 0
         false_easting : 0
         false_northing : 0
         standard_parallel : ( 25, 47 )
 
can NCL read and display my file correctly.
 
Cao Yan
 
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Sep 01 2008 - 02:04:43 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 03 2008 - 11:24:29 MDT