<div dir="ltr">Dear all,<div><br></div><div>I need to calculate <span style="background-color:rgb(255,255,255)"><font color="#9900ff"><b style="">hourly precipitation</b> </font></span>from WRF-Chem output files. In order, to do this I used the below equation:</div><div><span style="background-color:rgb(255,217,102)">(rainTot(nt,:,:) - rainTot(nt-1,:,:))</span><br></div><div><span style="background-color:rgb(255,217,102)"><br></span></div><div><span style="background-color:rgb(255,255,255)">However, I received these error messages: </span></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(180,167,214)">fatal:Subscript out of range, error in subscript #0</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(180,167,214)">fatal:An error occurred reading rainTot</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(180,167,214)">fatal:["Execute.c":8637]:Execute: Error occurred at or near line 70 in file precip</span></p></div><div><div><br></div><div>Would you please advise me on how to remove these error messages? (the script is attached).</div><div><br></div><div>I have also another question, how can I calculate the <font color="#9900ff">daily average precipitation,</font> please?</div><div><br></div><div>Many thanks in advance.</div><div><br></div><div>Best wishes,</div><div><br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">S.Rahimi<br><br></div></div></div>