<div dir="ltr">Hi:<div><br></div><div>I created a fresh directory/new, and here is the output.</div><div><br></div><div><div>wrf@mn03 NCL-TEST]$ ncl ./wrf_fgen.ncl </div><div> Copyright (C) 1995-2014 - All Rights Reserved</div><div> University Corporation for Atmospheric Research</div><div> NCAR Command Language Version 6.2.1</div><div> The use of this software is governed by a License Agreement.</div><div> See <a href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.</div><div><br></div><div><div>-rw-r--r--. 1 wrf games 47250732 Nov 9 02:36 <a href="http://source_grid_file.nc">source_grid_file.nc</a></div><div>-rw-r--r--. 1 wrf games 47250732 Nov 9 02:36 <a href="http://destination_grid_file.nc">destination_grid_file.nc</a></div><div>-rw-r--r--. 1 wrf games 231 Nov 9 02:36 PET0.RegridWeightGen.Log</div><div>-rw-r--r--. 1 wrf games 144591292 Nov 9 02:37 <a href="http://wrfout_temp_rect.nc">wrfout_temp_rect.nc</a></div></div><div><br></div><div>After I copied over the <a href="http://destination_grid_file.nc">destination_grid_file.nc</a> to the "suspect" directory, I was able to run this program -- I just couldn't create the file.</div><div><br></div><div>This is strange, as both the new and the old suspect directory are on the same disk and sub-directory.</div><div><br></div><div>Thank you for your help -- I'll let you know if this problem recurs.</div><div><br></div><div>Barry</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 8, 2016 at 10:06 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@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 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" target="_blank">source_grid_file.nc</a> by default)</li><li>a destination file (<a href="http://destination_grid_file.nc" target="_blank">destination_grid_file.nc</a>)</li><li>a weights file (<a href="http://wrfout_temp_rect.nc" target="_blank">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'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" target="_blank">destination_grid_file.nc</a> file, and not the <a href="http://source_grid_file.nc" target="_blank">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't be created, maybe because you don'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'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't have an NCL that is NetCDF4-enabled, but this doesn'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 "<a href="http://source_grid_file.nc" target="_blank">source_grid_file.nc</a>" 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/<wbr>nclscripts/esmf/ESMF_<wbr>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"><div><div class="h5">On Tue, Nov 8, 2016 at 1:03 AM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</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="h5"><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:["Execute.c":8578]:Execu<wbr>te: Error occurred at or near line 1363 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl</div><div><br></div><div>fatal:["Execute.c":8578]:Execu<wbr>te: Error occurred at or near line 1547 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl</div><div><br></div><div>fatal:["Execute.c":8578]:Execu<wbr>te: Error occurred at or near line 3564 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl</div><div><br></div><div>fatal:["Execute.c":8578]:Execu<wbr>te: Error occurred at or near line 3683 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl</div><div><br></div><div>fatal:["Execute.c":8578]:Execu<wbr>te: 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_-6897727860316668980m_-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></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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_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 914 432 3108<br></div></div></div>
</div>