Hi Agnes,
For 2-dimensional latitudes/longitudes, NCL will only recognize the
array attributes lat2d and lon2d.
Thus, change this:
GHGT_eta_at_lat2d_eta=eta->gridlat_212
GHGT_eta_at_lon2d_eta=eta->gridlon_212
to this:
GHGT_eta_at_lat2d=eta->gridlat_212
GHGT_eta_at_lon2d=eta->gridlon_212
Let us know if that doesn't fix the problem..
Adam
Agnes Lim wrote:
> Hi
>
> I had the following code segment to read the geopotential data from an
> ETA model grib file.
> GHGT_eta=eta->HGT_212_ISBL(it_eta,:,:,:)
> GHGT_eta = GHGT_eta(::-1,:, :)
> GHGT_eta_at_lat2d_eta=eta->gridlat_212
> GHGT_eta_at_lon2d_eta=eta->gridlon_212
> When I tried plotting the data, I get the following complaints
> (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'
>
> (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 ea
>
> Wonder why is that so? I encoutered that for wrf data after some
> processing but doing what i did above remove that problem.
>
> Agnes
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Nov 12 2008 - 10:40:35 MST
This archive was generated by hypermail 2.2.0 : Fri Nov 14 2008 - 16:42:12 MST