<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello I have trouble with ncl script.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I{m trying to draw a meteogram with rain</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</div>
<span> ncdump -h wrfout_d01.nc | grep RAIN<br>
</span>
<div>        float QRAIN(Time, bottom_top, south_north, west_east) ;<br>
</div>
<div>                QRAIN:FieldType = 104 ;<br>
</div>
<div>                QRAIN:MemoryOrder = "XYZ" ;<br>
</div>
<div>                QRAIN:description = "Rain water mixing ratio" ;<br>
</div>
<div>                QRAIN:units = "kg kg-1" ;<br>
</div>
<div>                QRAIN:stagger = "" ;<br>
</div>
<div>                QRAIN:coordinates = "XLONG XLAT XTIME" ;<br>
</div>
<div>        float RAINC(Time, south_north, west_east) ;<br>
</div>
<div>                RAINC:FieldType = 104 ;<br>
</div>
<div>                RAINC:MemoryOrder = "XY " ;<br>
</div>
<div>                RAINC:description = "ACCUMULATED TOTAL CUMULUS PRECIPITATION" ;<br>
</div>
<div>                RAINC:units = "mm" ;<br>
</div>
<div>                RAINC:stagger = "" ;<br>
</div>
<div>                RAINC:coordinates = "XLONG XLAT XTIME" ;<br>
</div>
<div>        float RAINSH(Time, south_north, west_east) ;<br>
</div>
<div>                RAINSH:FieldType = 104 ;<br>
</div>
<div>                RAINSH:MemoryOrder = "XY " ;<br>
</div>
<div>                RAINSH:description = "ACCUMULATED SHALLOW CUMULUS PRECIPITATION" ;<br>
</div>
<div>                RAINSH:units = "mm" ;<br>
</div>
<div>                RAINSH:stagger = "" ;<br>
</div>
<div>                RAINSH:coordinates = "XLONG XLAT XTIME" ;<br>
</div>
<div>        float RAINNC(Time, south_north, west_east) ;<br>
</div>
<div>                RAINNC:FieldType = 104 ;<br>
</div>
<div>                RAINNC:MemoryOrder = "XY " ;<br>
</div>
<div>                RAINNC:description = "ACCUMULATED TOTAL GRID SCALE PRECIPITATION" ;<br>
</div>
<div>                RAINNC:units = "mm" ;<br>
</div>
<div>                RAINNC:stagger = "" ;<br>
</div>
<div>                RAINNC:coordinates = "XLONG XLAT XTIME" ;<br>
</div>
<span></span>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div><br>
</div>
<div>And I get this error:</div>
<div><span>fatal:Subscript out of range, error in subscript #1<br>
</span>
<div>fatal:An error occurred reading new_rain<br>
</div>
<div>fatal:["Execute.c":8637]:Execute: Error occurred at or near line 158 in file meteo_abrapampa_b.ncl<br>
</div>
<div><br>
</div>
<span></span>line 157 is this...</div>
<div>arain_point  = rain(:,locY,locX)<br>
</div>
<span></span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I attach the file.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Ho´pe you can help me out 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)">
Carina</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="Signature">
<p style="margin-top: 0px; margin-bottom: 0px;">Enviado desde <a href="http://aka.ms/weboutlook">
Outlook</a><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
</div>
<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #D3D4DE">
<tbody>
<tr>
<td style="width:55px; padding-top:18px"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img alt="" width="46" height="29" style="width:46px; height:29px" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png"></a></td>
<td style="width:470px; padding-top:17px; color:#41424e; font-size:13px; font-family:Arial,Helvetica,sans-serif; line-height:18px">
Libre de virus. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">
www.avg.com</a> </td>
</tr>
</tbody>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
</div>
</div>
</body>
</html>