<div dir="ltr">Andrew,<br><br>For 2-D coordinates, you can specify either the special data attributes lat2d and lon2d, or the resource attributes sfXArray and sfYArray.  Please see section 2 on this page.  There are several working examples listed:<div><br></div><div><a href="http://www.ncl.ucar.edu/Document/Graphics/overlays_on_map.shtml">http://www.ncl.ucar.edu/Document/Graphics/overlays_on_map.shtml</a><br><div><br></div><div>--Dave</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 27, 2015 at 9:48 AM, Andrew Kren - NOAA Affiliate <span dir="ltr">&lt;<a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am working to plot NAM grib2 output on a map. NAM is on a two dimensional latitude/longitude grid over the United States. When I run my script, I get this error:<div><br></div><div><div>Coordinates: </div><div>(0)     0</div><div>(0)     check_for_y_lat_coord: Warning: Data either does not contain a valid latitude coordinate array or doesn&#39;t contain one at all.</div><div>(0)     A valid latitude coordinate array should have a &#39;units&#39; attribute equal to one of the following values: </div><div>(0)         &#39;degrees_north&#39; &#39;degrees-north&#39; &#39;degree_north&#39; &#39;degrees north&#39; &#39;degrees_N&#39; &#39;Degrees_north&#39; &#39;degree_N&#39; &#39;degreeN&#39; &#39;degreesN&#39; &#39;deg north&#39;</div><div>(0)     check_for_lon_coord: Warning: Data either does not contain a valid longitude coordinate array or doesn&#39;t contain one at all.</div><div>(0)     A valid longitude coordinate array should have a &#39;units&#39; attribute equal to one of the following values: </div><div>(0)         &#39;degrees_east&#39; &#39;degrees-east&#39; &#39;degree_east&#39; &#39;degrees east&#39; &#39;degrees_E&#39; &#39;Degrees_east&#39; &#39;degree_E&#39; &#39;degreeE&#39; &#39;degreesE&#39; &#39;deg east&#39;</div><div>warning:ContourPlotDraw: out of range coordinates encountered; standard AreaFill rendering method may be unreliable;</div><div> consider setting the resource trGridType to &quot;TriangularMesh&quot; if coordinates contain missing values</div><div><br></div><div><br></div><div>I know what the error is but not sure how to rectify it. I have gotten this error before when trying to plot WRF output. I&#39;ve tried to add coordinates and attributes to the variables but it won&#39;t work.</div><div><br></div><div>This is a print var summary of one of the variables for reference:</div><div><br></div><div><div>Variable: array_variable_hgt</div><div>Type: float</div><div>Total Size: 1051168 bytes</div><div>            262792 values</div><div>Number of Dimensions: 2</div><div>Dimensions and sizes:   [ygrid_0 | 428] x [xgrid_0 | 614]</div><div>Coordinates: </div><div>Number Of Attributes: 13</div><div>  initial_time :        11/26/2015 (00:00)</div><div>  forecast_time_units : hours</div><div>  forecast_time :       0</div><div>  level_type :  Isobaric surface (Pa)</div><div>  parameter_template_discipline_category_number :       ( 0, 0, 3, 5 )</div><div>  parameter_discipline_and_category :   Meteorological products, Mass</div><div>  grid_type :   Lambert Conformal can be secant or tangent, conical or bipolar</div><div>  coordinates : gridlat_0 gridlon_0</div><div>  units :       gpm</div><div>  long_name :   Geopotential height</div><div>  production_status :   Operational products</div><div>  center :      US National Weather Service - NCEP (WMC)</div><div>  _FillValue :  1e+20</div></div><div><br></div><div>Thanks,</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Andrew Kren, PhD<br></div></div></div></div></div></div></div></font></span></div></div></blockquote></div></div></div>