<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Starry,<br>
Your data file didn't come through so I filled your data array with
random values and ran your script. <br>
<br>
In the future when writing to ncl-talk, please mention any errors
you are getting from NCL. In your case you are getting the following
error when you try to set the tmXBLabels:<br>
<br>
warning:_NhlCreateSplineCoordApprox: Attempt to create spline
approximation for X axis failed: consider adjusting trXTensionF
value<br>
^Mwarning:IrTransInitialize: error creating spline approximation for
trXCoordPoints; defaulting to linear<br>
<br>
What this error means is that NCL is having trouble figuring out how
to handle your x-axis coordinate values. So I started to focus on
your input latitudes.<br>
<br>
(This turns out not to be the cause of your issue, but you were
setting this:<br>
lat@units="degrees North"<br>
lon@units="degrees East"<br>
You were right to set the units attribute of your lat/lon arrays,
but NCL expects them to be one of a few possibilities, the most
common one being:<br>
lat@units="degrees_north"<br>
lon@units="degrees_east"<br>
<br>
(See this page for more information:
<a class="moz-txt-link-freetext" href="http://www.ncl.ucar.edu/Document/Graphics/error_msg.shtml">http://www.ncl.ucar.edu/Document/Graphics/error_msg.shtml</a>)<br>
<br>
I changed the units attribute and I started getting this warning:<br>
get_lat_values: Warning: Your latitude values do not fall between
-90 and 90 inclusive.<br>
You will not get 'nice' latitude labels.<br>
<br>
This of course made me really zero in on your latitudes..)<br>
<br>
So I printed out your latitudes and longitudes to see what they
looked like:<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0068N 76.9888E<br>
15.0516N 76.9788E<br>
15.0516N 76.9788E<br>
15.0516N 76.9788E<br>
15.0516N 76.9788E<br>
15.0516N 76.9788E<br>
15.0516N 76.9788E<br>
15.0516N 76.9788E<br>
15.0516N 76.9788E<br>
<br>
You're plotting latitude vs. height, so the longitudes aren't the
issue. However, as you can see, you have multiple instances of the
same latitude, all with different data values. When you tell NCL to
draw a tickmark at 15.0068N, it doesn't know which point to draw
them at, the 1st instance or the 15th instance of 15.0068N... That
is definitely the cause of your X-axis labeling problems, and points
to a possible issue with your data. I'm not sure if the data is the
same for each instance of the same latitude value as I don't have
your data. You can get an idea of that by inserting:<br>
print(lat+"N "+lon+"E "+vfm_swap(0,:))<br>
Good luck,<br>
Adam<br>
<br>
On 01/26/2012 08:44 AM, Manoharan, Vani Starry wrote:
<blockquote
cite="mid:53A26D9080464E46A38E98BDF7C99AB0771669AEFD@OZZY.anl.gov"
type="cite">
<pre wrap="">Hi Adam,
I tried runnning the program by not specifying the XBValues/XBLabels. But it generates numbers on the x-axis. I am attaching my program and the data files used in the program with this mail and the following mail (as the files are quite big).
Thank you.
Starry</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
______________________________________________________________
Adam Phillips <a class="moz-txt-link-abbreviated" href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>
NCAR/Climate and Global Dynamics Division (303) 497-1726
P.O. Box 3000                                
Boulder, CO 80307-3000 <a class="moz-txt-link-freetext" href="http://www.cgd.ucar.edu/cas/asphilli">http://www.cgd.ucar.edu/cas/asphilli</a>
</pre>
</body>
</html>