Re: 'units' attribute of coordinate array

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Dec 24 2012 - 16:18:27 MST

Hi Wenshan,
I see you have 3 printVarSummary statements in your code. Please send ncl-talk the output from these statements. At first glance, I do not see anything wrong. As another ncl-talk contributor has posted, as it is Christmas Eve and tomorrow is Christmas, a reply from someone on the list is not likely until the 26th at the earliest.
Thanks, Adam

On Dec 23, 2012, at 21:50, Wenshan Wang <wenshanw@uci.edu> wrote:

> 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
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Dec 24 16:17:37 2012

This archive was generated by hypermail 2.1.8 : Fri Jan 04 2013 - 15:32:29 MST