Re: Summer average

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 06 2011 - 10:30:46 MDT

Cecille,

The error message is telling you that the "units" attribute of your
lat/lon coordinate arrays either don't have a "units" attribute, or
the "units" attribute is not a recognizable one by gsn_csm_contour_map.
This plotting functon wants a "units" attribute of something like
"degrees_east" for longitude, and "degrees_north" for latitude.

It looks like from your script that the coordinate information is
coming from "tt", so you should check the lat/lon coordinate arrays to
see what the units are:

   printVarSummary(tt&lat)
   printVarSummary(tt&lon)

If you don't see a "units" attribute, you can add one:

    tt&lat@units = "degrees_north"
    tt&lon@units = "degrees_east"

and this should fix your problem.

If you do see a "units" attribute, then you can change it using the
above two lines But, you want to make sure that these lat/lon arrays
are in units of "degrees", otherwise your data won't be overlaid
correctly on the map.

--Mary

On Jun 6, 2011, at 8:25 AM, Cecille M. Villanueva Birriel wrote:

> Hello,
>
> I am trying to make an annual average of some variables for the
> summer months (june, July, AUgust) with the meanfields_NARR.ncl
> script. When i run it I get the following errors:
>
> 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'
> (0) check_for_lon_coord: Warning: Data either does not contain a
> valid longitude coordinate array or doesn't contain one at all.
> (0) A valid longitude coordinate array should have a 'units'
> attribute equal to one of the following values:
> (0) 'degrees_east' 'degrees-east' 'degree_east' 'degrees
> east' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE'
> 'deg east'
> (0) 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'
> (0) check_for_lon_coord: Warning: Data either does not contain a
> valid longitude coordinate array or doesn't contain one at all.
>
> I get several of these. I have been trying to fix it but nothing has
> worked. Can somebody point me in the right direction as to why this
> is happening?
>
> Thank you!
>
>
>
>
> --
> ********************************************************
> Cecille M. Villanueva Birriel
> Ph.D. Student
> Cloud Microphysics Research Group
> Purdue University
> Department of Earth and Atmospheric Sciences
> 550 Stadium Mall Drive, West Lafayette, IN 47907-2051
> email: cvillanu@purdue.edu
> ********************************************************
> <
> meanfields_NARR
> .ncl
> ><xmiss.f><xmiss.so>_______________________________________________
> 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 Jun 6 10:30:59 2011

This archive was generated by hypermail 2.1.8 : Thu Jun 09 2011 - 14:56:48 MDT