Re: Zoom Error

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 18 2013 - 12:40:23 MDT

Hi Brittany,

Thanks for providing more information, I see now that the problem is that gridlat_221 and gridlon_221 are not 1D coordinate arrays, but actually 2D *coordinates*.

To correctly plot this data, you need to attach special "lat2d" and "lon2d" attributes to u_wind:

  u_wind@lat2d = gridlat_221
  u_wind@lon2d = gridlon_221

You also need to set:

   res@gsnAddCyclic = False

if your data is not global.

For more information on this topic, please see:

http://www.ncl.ucar.edu/Document/Graphics/overlays_on_map.shtml

--Mary

On Mar 18, 2013, at 12:28 PM, brittany.hailey wrote:

> u_wind has coordinates gridlat_221 and gridlon_221. We are able to generate a plot, however, we are still getting error messages as mentioned below:
>
> Variable: u_wind
> Type: float
> Total Size: 7733840 bytes
> 1933460 values
> Number of Dimensions: 3
> Dimensions and sizes: [lv_ISBL2 | 20] x [gridx_221 | 277] x [gridy_221 | 349]
> Coordinates:
> lv_ISBL2: [150..1000]
> Number Of Attributes: 14
> sub_center : The North American Regional Reanalysis (NARR) Project
> center : US National Weather Service - NCEP (WMC)
> long_name : u-component of wind
> units : m/s
> _FillValue : 1e+20
> coordinates : gridlat_221 gridlon_221
> level_indicator : 100
> grid_number : 221
> parameter_table_version : 131
> parameter_number : 33
> model : North American Regional Reanalysis (NARR)
> forecast_time : 0
> forecast_time_units : hours
> initial_time : 12/31/2001 (00:00)
>
> float gridlat_221 ( gridx_221, gridy_221 )
> corners : ( 1, 0.8972797, 46.35283, 46.63458 )
> long_name : latitude
> grid_description : AWIPS - Regional - NOAMHI - High Resolution North American Master Grid (Lambert Conformal)
> units : degrees_north
> mpLambertMeridianF : 253
> mpLambertParallel2F : 50
> mpLambertParallel1F : 50
> mpProjection : LAMBERTCONFORMAL
> Dy : 32463.41
> Dx : 32463.41
> Lov : 253
> Lo1 : 214.5
> La1 : 1
>
> float gridlon_221 ( gridx_221, gridy_221 )
> corners : ( -145.5, -68.31888, -2.567342, 148.6397 )
> long_name : longitude
> grid_description : AWIPS - Regional - NOAMHI - High Resolution North American Master Grid (Lambert Conformal)
> units : degrees_east
> mpLambertMeridianF : 253
> mpLambertParallel2F : 50
> mpLambertParallel1F : 50
> mpProjection : LAMBERTCONFORMAL
> Latin2 : 50
> Latin1 : 50
> Dy : 32463.41
> Dx : 32463.41
> Lov : 253
> Lo1 : 214.5
> La1 : 1
>
> ERROR MESSAGE
> (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.
> (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'
>
> _______________________________________________
> 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 Mar 18 12:40:34 2013

This archive was generated by hypermail 2.1.8 : Tue Mar 19 2013 - 16:31:18 MDT