<div dir="ltr">Hi Vanucia,<div><br></div><div>So by NetCDF, you really mean NetCDF CF (Climate and Forecast) format.  The original WRF files are in NetCDF format, but they aren&#39;t NetCDF CF compliant.  You are correct, there is nothing in NCL that will convert WRF output to NetCDF CF for you, but all of the tools that you would need to do it are in NCL.  However, I would try wrfout_to_cf.ncl first and see if the result is good enough.  If not, you can always modify that script to do what you need.  It&#39;s not a particularly complicated script, but it is lengthy.</div><div><br></div><div>Best of luck,</div><div><br></div><div>Bill</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 7, 2017 at 12:46 PM, Vanúcia Schumacher <span dir="ltr">&lt;<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>

<div id="m_-5957800596923782321divtagdefaultwrapper" style="font-size:14pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p><span style="font-family:Cambria,serif;font-size:12pt;color:rgb(0,0,0)">So, I understand that WRF </span><span style="font-family:Cambria,serif;font-size:12pt;color:rgb(0,0,0)">coordinates are two dimensional, but
</span><span><span style="font-family:Cambria,serif;font-size:12pt;color:rgb(0,0,0)">I would like to translate the original WRF files into the format compatible with netCDF. I saw that there is </span><span style="color:rgb(0,0,0);font-family:Cambria,serif;font-size:12pt">an
 NCL script (</span><a href="http://www2.mmm.ucar.edu/wrf/src/utils/wrfout_to_cf.ncl" style="margin:0px;padding:0px;text-decoration-line:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px" target="_blank"><span style="font-family:Cambria,serif;font-size:12pt;color:rgb(0,0,0)">wrfout_to_cf.ncl</span></a><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px"><span style="font-family:Cambria,serif;font-size:12pt;color:rgb(0,0,0)">),
 but like this </span><span style="color:rgb(0,0,0);font-family:Cambria,serif;font-size:12pt">script is </span><span style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px"><span style="font-family:Cambria,serif;font-size:12pt;color:rgb(0,0,0)">not</span></span><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px"><span style="font-family:Cambria,serif;font-size:12pt;color:rgb(0,0,0)"> supported
 by the NCL team </span><span style="font-family:Cambria,serif;font-size:12pt;color:rgb(0,0,0)">I am in doubt if I can do something similar using NCL.</span></span></span></span></p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-5957800596923782321divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> Bill Ladwig &lt;<a href="mailto:ladwig@ucar.edu" target="_blank">ladwig@ucar.edu</a>&gt;<br>
<b>Enviado:</b> quarta-feira, 7 de junho de 2017 14:19:58<br>
<b>Para:</b> Vanúcia Schumacher<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Assunto:</b> Re: [ncl-talk] wrfout coordinate</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Hi Vanucia,
<div><br>
</div>
<div>I&#39;m not sure I understand what you are wanting to do.  In WRF, the latitude and longitude coordinates are two-dimensional, since WRF uses curvilinear coordinates.  Unless you are using a staggered variable, the coordinates are stored in the XLAT and XLONG
 variables in the WRF output file.  (For plotting in NCL, you can set the special lat2d and lon2d coordinate variables to point to XLAT and XLONG, and NCL will know what to do).</div>
<div><br>
</div>
<div>As for creating the lat/lon coordinates, are you wanting to create the coordinate variables from scratch, rather than just writing out the XLAT and XLONG variables?  The NCL WRF routines have a wrf_ij_to_ll (<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_ij_to_ll.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Functions/Built-in/<wbr>wrf_ij_to_ll.shtml</a>)
 that you could use to generate the lat/lon arrays if you supply the WRF map projection parameters.  Another way to create the lat/lon arrays is to use geogrid from WRF itself.  You would need to set the map projection that you want, run geogrid, and grab the
 latitude and longitude arrays from the <a href="http://geo_em.d01.nc" target="_blank">geo_em.d01.nc</a> file.  </div>
<div><br>
</div>
<div>If this doesn&#39;t answer your question, can you clarify what you want to do, and I&#39;ll try again.</div>
<div><br>
</div>
<div>Hope this helps,</div>
<div><br>
</div>
<div>Bill</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jun 7, 2017 at 9:05 AM, Vanúcia Schumacher <span dir="ltr">
&lt;<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.<wbr>com</a>&gt;</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 id="m_-5957800596923782321m_-7793470089923091021divtagdefaultwrapper" style="font-size:14pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;font-size:18.6667px">
<span style="font-size:12pt">Hi users,</span></p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;font-size:18.6667px">
<br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;font-size:18.6667px">
<span style="font-size:12pt">I would like to know if there is a way to create lat and lon coordinates like </span><span style="font-size:12pt">netCDF</span><span style="font-size:12pt"> file </span><span style="font-size:12pt">with the
<a href="http://wrfout.nc" target="_blank">wrfout.nc</a> </span><span style="font-size:12pt">data in NCL? I need to input into other model with time level lat and lon informations. </span><br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;font-size:18.6667px">
<br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;font-size:18.6667px">
<br>
</p>
<p style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont;font-size:18.6667px">
<span style="font-size:12pt">Thanks for any hep on this question</span></p>
<br>
<p></p>
</div>
</div>
<br>
______________________________<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>
</div>
</div></div></div>

</blockquote></div><br></div>