[ncl-talk] check_for_y_lat_coord: Warning:
Noelia otero
noeli1680 at gmail.com
Thu Sep 18 02:50:27 MDT 2014
Hi,
I have problems to plot one field, and although I have already dealt with
this error, I tried to fix it now in different ways..but I don't know what
I am missing, and I have no idea what I am doing wrong. The error is always:
*"check_for_y_lat_coord: Warning: Data either does not contain a valid
latitude coordinate array or doesn't contain one at all......"*
I would appreciate any suggestion:
;Variable
oz = ozfil->MDA8_SurfO3
printVarSummary(oz)
; Summary of variable: oz
;***Type: double
Total Size: 13777920 bytes
1722240 values
Number of Dimensions: 3
Dimensions and sizes: [time | 920] x [lon | 48] x [lat | 39]
Coordinates:
time: [20000601..20090831]
lon: [ 347.. 34]
lat: [ 34.. 72]
;change lon values into -180 180
lon = ozfil ->lon
lon = where((lon.gt.180).and.(lon.lt.360),lon-360,lon)
lat = ozfil ->lat
lon at long_name = "longitude"
lon at units = "degrees_east"
lat at long_name = "latitude"
lat at units = "degrees_north"
oz&lon = lon
printVarSummary(oz)
Now the summary of oz is:
Variable: oz
Type: double
Total Size: 13777920 bytes
1722240 values
Number of Dimensions: 3
Dimensions and sizes: [time | 920] x [lon | 48] x [lat | 39]
Coordinates:
time: [20000601..20090831]
lon: [ -13.. 34]
lat: [ 34.. 72]
Number Of Attributes: 2
ISo, am trying to plot:
plot = gsn_csm_contour_map(wks,oz(0,:,:),res)
Any idea about how can I solve this???
Thank you in advance,
Cheers,
Noelia.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140918/bed6c1e0/attachment.html
More information about the ncl-talk
mailing list