<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">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>