<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 "lat2d" / "lon2d" 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't determine if you have valid lat / lon coordinate variables, which can happen if your "units" attribute is not one of the recognized values, like "degrees_north" or "degrees_east", 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 "printVarSummary" 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"><<a href="mailto:littithomas@gmail.com" target="_blank">littithomas@gmail.com</a>></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 & 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't contain one at all.<br>(0) A valid latitude coordinate array should have a 'units' attribute equal to one of the following values: <br>(0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'<br>(0) check_for_lon_coord: Warning: Data either does not contain a valid longitude coordinate array or doesn't contain one at all.<br>(0) A valid longitude coordinate array should have a 'units' attribute equal to one of the following values: <br>(0) 'degrees_east' 'degrees-east' 'degree_east' 'degrees east' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'<br>(0) check_for_y_lat_coord: Warning: Data either does not contain a valid latitude coordinate array or doesn't contain one at all.<br>(0) A valid latitude coordinate array should have a 'units' attribute equal to one of the following values: <br>(0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'<br>(0) check_for_lon_coord: Warning: Data either does not contain a valid longitude coordinate array or doesn't contain one at all.<br>(0) A valid longitude coordinate array should have a 'units' attribute equal to one of the following values: <br>(0) 'degrees_east' 'degrees-east' 'degree_east' 'degrees east' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'<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>