<div dir="ltr"><div>Hi,</div><div><br></div><div>Its hard to tell from just visual inspection of your script, but that error message always means what it says -- trying to index into an array beyond its bounds. By my measure, line 165 is this:</div><div><br></div><div> arain_point = rain(:,locY,locX)</div><div><br></div><div>Perhaps print the variables rain, locY, locX for insight into the bug.</div><div><br></div><div>Hope that helps...</div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2019 at 6:44 AM Carina V. Barca via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif;background-color:rgb(255,255,255)">
Hello I have trouble with ncl script.</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif;background-color:rgb(255,255,255)">
I'm trying to draw a meteogram with rain</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif;background-color:rgb(255,255,255)">
<span><b>ncl -V</b><br>
</span>
<div>6.6.2<br>
</div>
<span></span><br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif;background-color:rgb(255,255,255)">
</div>
<span style="margin:0px;font-size:15px;color:rgb(32,31,30);background-color:rgb(255,255,255)"><b>ncdump
-h<span> </span><a href="http://wrfout_d01.nc/" rel="noopener noreferrer" style="margin:0px" target="_blank">wrfout_d01.nc</a></b><span> (attach file ncdump.txt) </span></span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;font-size:15px;color:rgb(32,31,30);background-color:rgb(255,255,255)"><span>Attach
file meteo_abrapampa_b.ncl</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;font-size:15px;color:rgb(32,31,30);background-color:rgb(255,255,255)"><span><br>
</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;font-size:15px;color:rgb(32,31,30);background-color:rgb(255,255,255)"><span>The
error I get is..</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;font-size:15px;color:rgb(32,31,30);background-color:rgb(255,255,255)"><span><br>
</span></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>Copyright (C) 1995-2019 - All Rights Reserved<br>
</span>
<div> University Corporation for Atmospheric Research<br>
</div>
<div> NCAR Command Language Version 6.6.2<br>
</div>
<div> The use of this software is governed by a License Agreement.<br>
</div>
<div> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Variable: locY<br>
</div>
<div>Type: integer<br>
</div>
<div>Total Size: 4 bytes<br>
</div>
<div> 1 values<br>
</div>
<div>Number of Dimensions: 1<br>
</div>
<div>Dimensions and sizes: [1]<br>
</div>
<div>Coordinates:<br>
</div>
<div>Number Of Attributes: 1<br>
</div>
<div> _FillValue : -2147483647<br>
</div>
<div>(0) 53<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Variable: locX<br>
</div>
<div>Type: integer<br>
</div>
<div>Total Size: 4 bytes<br>
</div>
<div> 1 values<br>
</div>
<div>Number of Dimensions: 1<br>
</div>
<div>Dimensions and sizes: [1]<br>
</div>
<div>Coordinates:<br>
</div>
<div>Number Of Attributes: 1<br>
</div>
<div> _FillValue : -2147483647<br>
</div>
<div>(0) 0<br>
</div>
<div>(0) LATITUDE, SOUTH IS NEGATIVE (degree_north) : min=-27.42 max=-24.0203<br>
</div>
<div>(0) LONGITUDE, WEST IS NEGATIVE (degree_east) : min=-65.6508 max=-62.762<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Variable: temp<br>
</div>
<div>Type: integer<br>
</div>
<div>Total Size: 12 bytes<br>
</div>
<div> 3 values<br>
</div>
<div>Number of Dimensions: 1<br>
</div>
<div>Dimensions and sizes: [3]<br>
</div>
<div>Coordinates:<br>
</div>
<div>(0) 97<br>
</div>
<div>(1) 39<br>
</div>
<div>(2) 30<br>
</div>
<div><br>
</div>
<div>Variable: t2<br>
</div>
<div>Type: float<br>
</div>
<div>Total Size: 453960 bytes<br>
</div>
<div> 113490 values<br>
</div>
<div>Number of Dimensions: 3<br>
</div>
<div>Dimensions and sizes: [Time | 97] x [south_north | 39] x [west_east | 30]<br>
</div>
<div>Coordinates:<br>
</div>
<div>Number Of Attributes: 6<br>
</div>
<div> FieldType : 104<br>
</div>
<div> MemoryOrder : XY<br>
</div>
<div> description : Temp.(C)<br>
</div>
<div> units : K<br>
</div>
<div> stagger :<br>
</div>
<div> coordinates : XLONG XLAT XTIME<br>
</div>
<div><br>
</div>
<div>Variable: hr<br>
</div>
<div>Type: float<br>
</div>
<div>Total Size: 453960 bytes<br>
</div>
<div> 113490 values<br>
</div>
<div>Number of Dimensions: 3<br>
</div>
<div>Dimensions and sizes: [Time | 97] x [south_north | 39] x [west_east | 30]<br>
</div>
<div>Coordinates:<br>
</div>
<div>Number Of Attributes: 6<br>
</div>
<div> description : Hum. (%)<br>
</div>
<div> units : %<br>
</div>
<div> coordinates : XLONG XLAT XTIME<br>
</div>
<div> stagger :<br>
</div>
<div> MemoryOrder : XY<br>
</div>
<div> FieldType : 104<br>
</div>
<div>fatal:Subscript out of range, error in subscript #1<br>
</div>
<div>fatal:An error occurred reading rain<br>
</div>
<div>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 165 in file meteo_abrapampa_b.ncl<br>
</div>
<span></span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Someone can help me with this?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Best Regards</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Carina</div>
<div id="gmail-m_-3057581744847618597Signature">
<p><br>
</p>
<p>Enviado desde <a href="http://aka.ms/weboutlook" target="_blank">Outlook</a><br>
</p>
</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></blockquote></div>