[ncl-talk] check_for_y_lat_coord: Warning:

Mary Haley haley at ucar.edu
Thu Sep 18 17:07:05 MDT 2014


Noelia,

When you continue to have problems with a script, it helps to include any
new error messages you are getting.

Also, your "printVarSummary" of "oz" seems to indicate that you have
coordinate arrays and the appropriate metadata, so I'm not sure why you are
reattaching all of it.

Please look at your data right before you plot it, and not right before you
start adding metadata to it. Also, look at your lat/lon arrays to make sure
they look okay.

To look at your data more thoroughly, add these three lines right before
you call gsn_csm_contour_plot:

printVarSummary(oz)
printVarSummary(oz&lat)
printVarSummary(oz&lon)

Make sure the "units" for the lat/lon arrays are correct, and that "oz" has
all the correct coordinate information attached.

--Mary


On Thu, Sep 18, 2014 at 12:43 PM, Noelia otero <noeli1680 at gmail.com> wrote:

> Hi,
>
> Thanks karin, but even with this setting I can't plot. I don't know if
> this problem might be due to the data..actually, I don't know why this
> warning..
> Thanks again!
>
> Noelia.
>
> 2014-09-18 11:29 GMT+02:00 Karin Meier-Fleischer <meier-fleischer at dkrz.de>
> :
>
>>  Hi Noelia,
>>
>> maybe you have missed the setting
>>
>>  oz&lat = lat
>>
>> Hope this helps,
>> Karin
>>
>> Am 18.09.14 10:50, schrieb Noelia otero:
>>
>> 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.
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>> --
>> Dipl. Geophys. Karin Meier-Fleischer
>> Visualization
>> Application Support
>>
>> Deutsches Klimarechenzentrum GmbH (DKRZ)
>> Bundesstrasse 45a - D20146 Hamburg - Germany
>>
>> Phone:    +49 (0)40 460094 126
>> Fax:      +49 (0)40 460094 270
>> E-Mail:   meier-fleischer at dkrz.de
>> URL:      www.dkrz.de
>>
>> Geschäftsführer: Prof. Dr. Thomas Ludwig
>> Sitz der Gesellschaft: Hamburg
>> Amtsgericht Hamburg HRB 39784
>>
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140918/f49c5a02/attachment.html 


More information about the ncl-talk mailing list