<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Thomas,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In order to plot data over a map, either as vectors or contours, you have to provide latitude and longitude locations for your data.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you have a rectilinear grid, where the lat / lon are attached directly to the data as 1-dimensional coordinate variables, then the plotting routines will use these automatically.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you have 2-dimensional lat / lon coordinate points, then you either need to attach these to your data as special &quot;lat2d&quot; / &quot;lon2d&quot; attributes, or set the sfYArray / sfXArray resources.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">From your description, it sounds like you have a rectilinear grid, but your data variable may not be constructed properly. The error message is saying that it can&#39;t determine if you have valid lat / lon coordinate variables, which can happen if your &quot;units&quot; attribute is not one of the recognized values, like &quot;degrees_north&quot; or &quot;degrees_east&quot;, and/or the coordinate variables somehow got stripped off your data variable.  This can happen if you do a calculation on your data and put it in a new array, causing the metadata to be stripped off.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please do a &quot;printVarSummary&quot; on the data variables you are trying to plot, and send it back to ncl-talk so we can see what it looks like.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 16, 2014 at 8:23 PM, tms_l <span dir="ltr">&lt;<a href="mailto:littithomas@gmail.com" target="_blank">littithomas@gmail.com</a>&gt;</span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Dear ncl users<br><br>I would like to plot u &amp; v components of wind along with mean sea level pressure data.The wind data (time,level,lat_1,lon_1) is 4 dimensional and mean sea level pressure data (time,lat,lon) 3 dimensional.<br><br>Also the number of grids points are arranged differently in each data sets.<br><br>For wind data latitude ,                        lat_1 = 144 points<br>                     longitude ,                     lon_1 =192 points<br><br>For mean sea level pressure latitude ,        lat =145<br>                                          longitude,       lon =192<br><br>I am getting the error message as follows and the mean sea level pressure data seems to plotted reversely..Is there any function to deal with data sets of different grid points or how can solve this issue? Any help will be appreciated.<br><br><br>error message :::::::<br>(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.<br>(0)     A valid latitude coordinate array should have a &#39;units&#39; attribute equal to one of the following values: <br>(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;<br>(0)     check_for_lon_coord: Warning: Data either does not contain a valid longitude coordinate array or doesn&#39;t contain one at all.<br>(0)     A valid longitude coordinate array should have a &#39;units&#39; attribute equal to one of the following values: <br>(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;<br>(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.<br>(0)     A valid latitude coordinate array should have a &#39;units&#39; attribute equal to one of the following values: <br>(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;<br>(0)     check_for_lon_coord: Warning: Data either does not contain a valid longitude coordinate array or doesn&#39;t contain one at all.<br>(0)     A valid longitude coordinate array should have a &#39;units&#39; attribute equal to one of the following values: <br>(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;<br><br><br><br></div>Regards<br><br></div>Thomas<br></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div></div>