<div dir="ltr">
<p class=""> system("/bin/rm -f myPDF.nc") ; remove any pre-existing file</p>
<p class=""> ncdf = addfile("myPDF.nc" ,"c") ; open output netCDF file</p>
<p class=""><br></p>
<p class=""> fAtt = True ; optional: assign file attributes</p>
<p class=""> fAtt@title = "My PDFs so I dont have to compute every time"</p>
<p class=""> fAtt@source_file = "<a href="http://original-file.nc">original-file.nc</a>"</p>
<p class=""> fAtt@creation_date = systemfunc ("date")</p>
<p class=""> fileattdef( ncdf, fAtt ) ; copy file attributes</p>
<p class=""><br></p>
<p class=""> ncdf->PDF_1 = pdf1 ; all meta data written</p>
<p class=""> ncdf->PDF_2 = pdf2</p></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 8:36 AM, Laura Fowler <span dir="ltr"><<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi:<br>
<br>
I am calculating a series of probability density functions that take<br>
quite some time to calculate. I would like to write the outputs to a<br>
file so that I can plot the PDFS without having to re-calculate them<br>
every time. What is the best way to do that. Is there a function that<br>
would keep all the metadata and data that I can read with a<br>
PrintVarSummary.<br>
<br>
Thanks,<br>
Laura<br>
<br>
--<br>
!-------------------------------------------------------------------------------------------------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu">laura@ucar.edu</a><br>
phone: <a href="tel:303-497-1628" value="+13034971628">303-497-1628</a><br>
<br>
!-------------------------------------------------------------------------------------------------------------<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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><br>
</blockquote></div><br></div>