Dear all,
I know it is an old problem but I just couldn't fix it. The error message
is:
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'
My did add this unit and give it to my variable, but it didn't work. Here
is my scripts concerning the problem:
lat1 = fspan(-65,-75,201)
lat1@units = "degrees_north"
lat1!0 = "lat"
lat1@long_name = "latitude"
lat1@standard_name = "latitude"
lat1@axis = "Y"
print(lat1)
lon1 = fspan(0,359.95,7178)
lon1@units = "degrees_east"
lon1!0 = "lon"
lon1@long_name = "longitude"
lon1@standard_name = "longitude"
lon1@axis = "X"
c1&lat = lat1
c1&lon = lon1
printVarSummary(c1)
printVarSummary(c1&lat)
printVarSummary(c1&lon)
; plot
wks = gsn_open_wks("x11","plot_grid-reg.ncl_bsa_AA")
plot = gsn_csm_contour_map_ce(wks,c1,False)
I really appreciate it if anyone can give me a clue.
Thank you very much!
Merry Christmas!
Best,
Wenshan
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Dec 23 21:50:58 2012
This archive was generated by hypermail 2.1.8 : Fri Jan 04 2013 - 15:32:29 MST