<div dir="ltr"><div><div><div><div><div><div><div><div>Well, almost all of NCL&#39;s examples would be CF-1.0 even if not listed with a &quot;Conventions&quot; attribute.<br>----<br>Offline you sent a sample GEOS file. You also sent a long script to regrid the GEOS5 (721,1152)  to a 1x1 grid (181,360).<br><br></div>You used bilinear interpolation ( linint2 ) to regrid. Then you did &#39;something&#39; with the time variable. To me it<br></div>looks like you tried to create a time coordinate variable that was yyyymmdd. This is not a CF conforming<br></div>time because the udunits package does not recognize these units. <br><br></div>I had a script I modified which does what (I think you want). It uses NCL&#39;s &#39;simple&#39; method of writing netCDF.<br></div>Yes, it may be a bit inefficient for large files with many variables but the simplicity is worth the time.<br></div><div>See attachment.<br><br>---<br></div><div><br></div>Also, given that the files contain aerosols, I think conservative regridding (specifically, ESMF conservative<br></div>regridding) would be a better choice. The 1st few examples are all rectilinear to rectilinear. <br></div><div>You could modify an choose the &#39;conserve&#39; method. <br></div><div><br>      <a href="http://www.ncl.ucar.edu/Applications/ESMF.shtml">http://www.ncl.ucar.edu/Applications/ESMF.shtml</a><br><br></div><div>Please *read* the assorted ESMF options. The examples may not be exactly what you need.<br></div><div>The weight file need be generated only once. You then use the weight file for all subsequent runcs.<br></div><div><br></div><div><br>---<br></div>Also, I think a good read of the Mini-Language Manual would be of use to you.<br><br>   <a href="http://www.ncl.ucar.edu/Document/Manuals/">http://www.ncl.ucar.edu/Document/Manuals/</a><br><br><div><div><div><div><br>---<br></div><div>Good luck<br></div><div><div><div><div><div><br><br><br></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 12, 2014 at 9:04 AM, Partha Bhattacharjee <span dir="ltr">&lt;<a href="mailto:pbhatta2@jhu.edu" target="_blank">pbhatta2@jhu.edu</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 style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span style="font-family:arial,helvetica,sans-serif;font-size:11pt"><span style="font-family:arial,helvetica,sans-serif"><br>
</span></span></p>
<p><span style="font-family:arial,helvetica,sans-serif;font-size:11pt"><span style="font-family:arial,helvetica,sans-serif">Are there any examples available to see how to write netcdf files in </span></span><span style="font-weight:bold;color:#545454;line-height:18.2000007629395px;font-family:arial,helvetica,sans-serif;font-size:11pt;background-color:#ffffff"><span style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,helvetica,sans-serif">CF
</span></span></span><span style="font-family:arial,helvetica,sans-serif;font-size:11pt"><span style="color:#222222;font-family:arial,helvetica,sans-serif;background-color:#ffffff"><span style="font-family:arial,helvetica,sans-serif">convention
 using NCL ? I am  reading a big GEOS-5 .nc4 file and trying to write some of the variables into netcdf file. Thanks.</span></span></span></p><span class="HOEnZb"><font color="#888888">
<p><font color="#222222" face="Arial, Helvetica, sans-serif"><br>
</font></p>
<p><span style="font-size:11pt"><span style="background-color:#ffffff"><span></span></span></span><font color="#222222" face="Arial, Helvetica, sans-serif"> Partha<br style="font-size:11pt">
</font><br>
</p>
</font></span></div>
</div>

<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>