<div dir="ltr"><div><div><div><div>hi Rick<br><br></div>I'm sorry forgot to say that the original script is setup as the following way as you comment:<br><br> xp = new((/5,4/),float) ; allocate memory<br> yp = new((/5,4/),float)<br><br></div>But how would you do if having two tracks with different lengths for example<br><br>;best track<br> yp(0,:) = (/ 29.1, 30.3, 31.7, 33.5/)<br> xp(0,:) = (/-94.6, -95.2, -95.3, -94.9/)<br>;da<br> yp(1,:) = (/ 29.12, 30.02, 31.29, 33.05, 34.20/)<br> xp(1,:) = (/-94.87, -95.08, -95.13, -94.65, -94.50/)<br><br></div>Regards<br><br></div>Henri<br><div><div><br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 September 2015 at 17:00, Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br>If I were to guess, you have this declaration of these two arrays:<br><br> xp = new((/6,5/),float) ; allocate memory<br> yp = new((/6,5/),float)<br><br>But then you have three instances were you attempt to assign the righthand side of the arrays to an array of dimension 4, not 5:<br><br>;best track<br> yp(0,:) = (/ 29.1, 30.3, 31.7, 33.5/)<br> xp(0,:) = (/-94.6, -95.2, -95.3, -94.9/)<br>;da<br><br><br></div>Hope that helps...<br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Sep 23, 2015 at 9:23 AM, Henri Rossi Pinheiro <span dir="ltr"><<a href="mailto:henrirpinheiro@gmail.com" target="_blank">henrirpinheiro@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>hi users<br><br></div>I have used the classic example to plot trajectories with the annotate_4.ncl script (attached) and it works. The problem is when one or more lat-lon points are added to a single trajectory, so would anyone know how to deal with this?<br><br></div>the error message is <div><br> fatal:Dimension size mismatch on subscript #1, left-hand and right-hand side dimensions do not match<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div>Henri<br></div></font></span></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>