<div dir="ltr">Great, thanks for the help!  I'll give that a try!</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 6, 2018 at 5:05 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Actually, I created some good' netCDF files and a script<br><br></div><div>%> gzip -d meteo*nc.gz<br></div><div>%> ncl meteo_3.ncl<br><br></div><div>WRF data has different dimensionality<br><br>A3(Time, south_north, west_east)<br>A4(Time, bottom_top, south_north, west_east)<br></div><div><br></div><div>The meteogram script wants 'Time' to be the 'x-axis' and 'Pressure' to be the y-axis.<br></div><div><br></div><div>  a4 = A4( bottom_top|:,  Time|:, south_north|j , west_east|i)    <br></div><div>  printVarSummary(a4) ;   a4(bottom_top,  Time)  ===> a4(Y,X)<br><br></div><div>You would have to interpolate to pressure.<br><br></div><div>Good luck<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 5, 2018 at 10:01 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><b>re: "how is this file created"</b><br><br></div>The file and script were donated 15 years ago.<br><br></div>[snp]<br><div>// global attributes:<br>        :title = "<b>Meteogram data from John Ertl</b>" ;<br>        :date = "Tue Sep 14 11:22:51 MDT <b>2004</b>" ;<br><br></div><div>The file is a poorly created netCDF file.<br><br>====<br></div><div>re: "<b>I would like to make those meteograms from my simulations, the format of <a href="http://meteo_data.nc" target="_blank">meteo_data.nc</a> seems different?</b><div><br></div></div><div>Not sure what you mean by "different". Here is a translation of the file.<br><br>netcdf meteo_data.new {<br>dimensions:<br>    levels = 8 ;<br>    time = 25 ;<br>variables:<br>    float rh(levels, time) ;<br>        rh:_FillValue = -999.f ;<br>        rh:long_name = "relative humidity" ;<br>        rh:units = "%" ;<br>    float levels(levels) ;<br>        levels:_FillValue = -999.f ;<br>        levels:units = "hPa" ;<br>        levels:long_name = "pressure" ;<br>    float time(time) ;<br>        time:_FillValue = -999.f ;<br>        time:units = "hours" ;<br>    float ugrid(levels, time) ;<br>        ugrid:_FillValue = -999.f ;<br>        ugrid:long_name = "zonal wind" ;<br>        ugrid:units = "???" ;<br>    float vgrid(levels, time) ;<br>        vgrid:_FillValue = -999.f ;<br>        vgrid:long_name = "meridional wind" ;<br>        vgrid:units = "???" ;<br>    float tempisobar(levels, time) ;<br>        tempisobar:_FillValue = -999.f ;<br>        tempisobar:long_name = "temperature" ;<br>        tempisobar:units = "degF" ;<br>    float rain03(time) ;<br>        rain03:_FillValue = -999.f ;<br>        rain03:long_name = "<b>3hr rain total</b>" ;<br>        rain03:units = "inches" ;<br>    float tempht(time) ;<br>        tempht:_FillValue = -999.f ;<br>        tempht:long_name = "temperature at 2m" ;<br>        tempht:units = "degF" ;<br><br>=====<br></div><div>If you have (say)<br><br></div><div>    RH(time,levels)<br><br></div><div>your can reorder using named dimension reordering.<br><br></div><div>    rh = RH(levels|:,time|:)<br></div><div>    printVarSummary(rh)<br><br>=====<br><br></div><div>If you want to basically copy that code you must cahnge the units, etc<br><br>=======<br><br></div><div>Please respond *only* to nal-talk,<br><br></div><div>Good luck<br></div></div><div class="m_1980238006279291298HOEnZb"><div class="m_1980238006279291298h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 5, 2018 at 8:31 PM, Ronald Stenz <span dir="ltr"><<a href="mailto:rds238@cornell.edu" target="_blank">rds238@cornell.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks, but how is this file created?  I would like to make those meteograms from my simulations, the format of <a href="http://meteo_data.nc" target="_blank">meteo_data.nc</a> seems different?<div><br></div><div>Thanks</div></div><div class="m_1980238006279291298m_-5551849283499266652HOEnZb"><div class="m_1980238006279291298m_-5551849283499266652h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 5, 2018 at 9:24 PM, Dennis Shea <span dir="ltr"><<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"> The file <b><a href="http://meteo_data.nc" target="_blank">meteo_data.nc</a></b> is distributed with NCL.<br><br><pre>%> ncdump -h $NCARG_ROOT/lib/ncarg/data/cdf<wbr>/<a href="http://meteo_data.nc" target="_blank">meteo_data.nc</a><br></pre><pre>or<br><br>%> ncl_filedump -h $NCARG_ROOT/lib/ncarg/data/cdf<wbr>/<a href="http://meteo_data.nc" target="_blank">meteo_data.nc</a></pre></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_1980238006279291298m_-5551849283499266652m_-5871602558312063737h5">On Sun, Aug 5, 2018 at 5:33 PM, Ronald Stenz <span dir="ltr"><<a href="mailto:rds238@cornell.edu" target="_blank">rds238@cornell.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_1980238006279291298m_-5551849283499266652m_-5871602558312063737h5"><div dir="ltr">I'm looking at meteo_1.ncl and meteo_2.ncl and am wondering where the file <a href="http://meteo_data.nc" target="_blank">meteo_data.nc</a> comes from?  Is there a separate program to generate this file from the wrfout files?  The wrfout files will not work for these programs, but do in meteo_5.ncl (which uses wrfout files).<div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/Scripts/meteo_2.ncl" target="_blank">https://www.ncl.ucar.edu/Appli<wbr>cations/Scripts/meteo_2.ncl</a><br></div><div><br></div><div>Here is the code I am referring to for reference.</div><div><br></div><div>Thanks</div></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>