<div dir="ltr">Dennis,<div>I can confirm that the code you gave me is exactly what I was looking for. Thank you very much, I appreciate your time and effort.</div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
        <tr>
        <td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 9, 2020 at 10:56 AM Zilore Mumba <<a href="mailto:zmumba@gmail.com">zmumba@gmail.com</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>Thanks! Dennis, I will try the code as soon as I have access to my computer.</div><div>For Rick, I want the output in text (txt) format. If I can have each grid point on a line, then I can run fortran on the data outside of the ncl script. I am assuming this is what the code from Dennis does. I will try it<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 9, 2020 at 4:24 AM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@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>   prc(time,lat,lon)</div><div>---------------------<br></div><div>   dimprc = dimsizes(prc)</div><div>   ntim = dimprc(0)</div><div>   nlat  = dimprc(1)</div><div>   mlon = dimprc(2)</div><div><br></div><div>; loop over each grid point</div><div><br></div><div>   do nl=0,nlat-1</div><div>      do ml=0,mlon-1</div><div>           prcts = prc(:,nl,ml)      ; prc(tim)   <=== time series</div><div>           :<br></div><div>          [use NCL or invoke fortran via a shared object]</div><div>           :<br></div><div>      end do    ; ml</div><div>   end do       ; nl<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 8, 2020 at 1:58 PM Zilore Mumba via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.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">I have a netcdf file containing daily precipitation data over 30 years on a grid of 96 points in x and 99 points in y. I would like to work with the data on a grid-point by grid-point basis. I think this would be best achieved by having a time series of the data at each grid point. I can then use, eg. fortran to make some computation, such as the start/end of the wet session.<div>I wonder if someone would have a script that can generate such time series. My search in the ncl documentation and archives achieves nothing.</div><div>I will appreciate any help or advice on this.</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>
</blockquote></div>