<div dir="ltr"><div class="gmail_default" style="font-size:small">Barry,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The ESMF_regrid function creates three NetCDF files:</div><div class="gmail_default" style="font-size:small"><ul><li>a source file (called <a href="http://source_grid_file.nc">source_grid_file.nc</a> by default)</li><li>a destination file (<a href="http://destination_grid_file.nc">destination_grid_file.nc</a>)</li><li>a weights file (<a href="http://wrfout_temp_rect.nc">wrfout_temp_rect.nc</a> in this script)<br></li></ul></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The error message is likely coming from ESMF_regrid trying to create the file for writing, and not for reading. The error message is a little odd, however, because it seems to indicate it doesn&#39;t recognize NetCDF as a file format which is unlikely. Also, why did it give you an error on the <a href="http://destination_grid_file.nc">destination_grid_file.nc</a> file, and not the <a href="http://source_grid_file.nc">source_grid_file.nc</a>, which should have been created first?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">My first guess would be that the file can&#39;t be created, maybe because you don&#39;t have write permissions in the directory where the script is being executed, or maybe the file is too large.  But, the error message just doesn&#39;t quite match those scenarios.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The other possible issue is that it is trying to create a NetCDF4 file, and perhaps you don&#39;t have an NCL that is NetCDF4-enabled, but this doesn&#39;t seem likely either.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Do you have a &quot;<a href="http://source_grid_file.nc">source_grid_file.nc</a>&quot; in that directory that was created by that script?</div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">Can you tell me what version of NCL you have, so I can look up exactly what line in ESMF_regridding.ncl it is failing on? It would also help if you could email me the <span style="font-variant-ligatures:no-common-ligatures">$NCARG_ROOT/lib/ncarg/nclscripts/esmf/ESMF_regridding.ncl file.</span></font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-variant-ligatures:no-common-ligatures"><br></span></font></div>







<div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif">Thanks,</font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif">--Mary</font></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 8, 2016 at 1:03 AM, Barry Lynn <span dir="ltr">&lt;<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.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>Hi:</div><div><br></div><div>I am wondering how I open the <a href="http://destination_grid_file.nc" target="_blank">destination_grid_file.nc</a>.</div><div><br></div><div>At one point I must have opened it, but the current version of the code does not.</div><div><br></div><div>Thank you.</div><div><br></div><div>fatal:NetCDF: Unknown file format</div><div>fatal:Could not open (<a href="http://destination_grid_file.nc" target="_blank">destination_grid_file.nc</a>)</div><div>fatal:Could not create (<a href="http://destination_grid_file.nc" target="_blank">destination_grid_file.nc</a>)</div><div>warning:FileSetFileOption: invalid file or format</div><div>fatal:[&quot;Execute.c&quot;:8578]:<wbr>Execute: Error occurred at or near line 1363 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</div><div><br></div><div>fatal:[&quot;Execute.c&quot;:8578]:<wbr>Execute: Error occurred at or near line 1547 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</div><div><br></div><div>fatal:[&quot;Execute.c&quot;:8578]:<wbr>Execute: Error occurred at or near line 3564 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</div><div><br></div><div>fatal:[&quot;Execute.c&quot;:8578]:<wbr>Execute: Error occurred at or near line 3683 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</div><div><br></div><div>fatal:[&quot;Execute.c&quot;:8578]:<wbr>Execute: Error occurred at or near line 262 in file ./wrf_fgen.ncl</div><div><br></div><div>[</div><div><br></div>-- <br><div class="m_-7261416499231996443gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:914%20432%203108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>