<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Jonathan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The issue might be with these lines:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><span style="font-size:12.8px">        Opt@SrcLargeFile     = "True"</span><br style="font-size:12.8px"><span style="font-size:12.8px">        Opt@DstLargeFile     = "True"</span><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_default" style="font-size:small">​You don't want to use quotes when you are using logicals. Try:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">​<span style="font-size:12.8px">        Opt@SrcLargeFile     = True</span></div><div class="gmail_default"><span style="font-size:12.8px">        Opt@DstLargeFile     = True</span><br></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">You will also need:</span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">        Opt@WgtLargeFile     = True</span><br></div><div class="gmail_default"><span style="font-size:12.8px">      </span></div><div class="gmail_default"><span style="font-size:12.8px">I believe these should be the default in NCL V6.4.0. If you are using 6.4.0 and still seeing these errors, then would it be possible for you to provide the data and your latest script?  If your data file is large, then perhaps you can write just a subset of it to a new file. You can email me offline if you want help with this.</span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px">--Mary</span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><div class="gmail_default"><span style="font-size:12.8px"><br></span></div><br><div class="gmail_quote">On Thu, Sep 21, 2017 at 2:00 PM, David Brown <span dir="ltr"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You need to set the option to write out the files as NetCDF4 instead of NetCDF3.<br>
<br>
>From ESMF_regrid doc page:<br>
<br>
The NetCDF files created by this function are written with "large file<br>
support" turned on. This creates a "64-bit offset" NetCDF file under<br>
the hood and allows you to write variables > 2 GB but less than 4 GB.<br>
<br>
If you are working with large data files that require more than 4 GB,<br>
you may need to set one or more of the NetCDFType options to<br>
"netcdf4". This will force a NetCDF4 file to be written under the hood<br>
and will allow you to write variables that are > 4 GB.<br>
<br>
<br>
Hope this helps.<br>
 -dave<br>
<div class="gmail-m_8952984802521315115HOEnZb"><div class="gmail-m_8952984802521315115h5"><br>
On Thu, Sep 21, 2017 at 1:38 PM, Buzan, Jonathan R <<a href="mailto:jbuzan@purdue.edu" target="_blank">jbuzan@purdue.edu</a>> wrote:<br>
> Thanks Marston Ward,<br>
><br>
> I rewrote the script, and I am using a proper domain file that does not have the -90.25/90.25.<br>
> I still receive the same error:<br>
><br>
> (0)     get_src_grid_info: source lat dims = (17400)<br>
> (0)     get_src_grid_info: source lon dims = (43200)<br>
> (0)     get_src_grid_info: source grid type is 'rectilinear'<br>
> ncendef: ncid 196608: NetCDF: One or more variable sizes violate format constraints<br>
> fatal:NetCDF: Operation not allowed in define mode: error attempting to write variable (grid_dims) to file (<a href="http://source_grid_file.nc" rel="noreferrer" target="_blank">source_grid_file.nc</a>)<br>
> fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 1704 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl<br>
><br>
> fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 1840 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl<br>
><br>
> fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 3869 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl<br>
><br>
> fatal:["Execute.c":8575]:Execu<wbr>te: Error occurred at or near line 4001 in file $NCARG_ROOT/lib/ncarg/nclscrip<wbr>ts/esmf/ESMF_regridding.ncl<br>
><br>
> fatal:["Execute.c":8573]:Execu<wbr>te: Error occurred at or near line 106<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
>> On Sep 21, 2017, at 3:33 PM, Marston Johnston <<a href="mailto:shejo284@gmail.com" target="_blank">shejo284@gmail.com</a>> wrote:<br>
>><br>
>> If you read the output error you can see that:<br>
>><br>
>>  min/max Extlat2d: -90.25/90.25<br>
>><br>
>> is clearly wrong as there can be no such points.<br>
>><br>
>> It good practice to read the error messages carefully. They often times tell you what’s wrong.<br>
>><br>
>> /M<br>
>><br>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
>> Marston S. Ward, PhD<br>
>> Department of Earth Sciences<br>
>> University of Gothenburg, Sweden<br>
>> Email: <a href="mailto:marston.johnston@gu.se" target="_blank">marston.johnston@gu.se</a><br>
>> SkypeID: marston.johnston<br>
>> Phone: <a href="tel:%2B46-31-7864901" value="+46317864901" target="_blank">+46-31-7864901</a><br>
>> Only the fruitful thing is true!<br>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
>><br>
>><br>
>> On 2017-09-21, 20:32, "ncl-talk on behalf of Buzan, Jonathan R" <<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> on behalf of <a href="mailto:jbuzan@purdue.edu" target="_blank">jbuzan@purdue.edu</a>> wrote:<br>
>><br>
>>      min/max Extlat2d: -90.25/90.25<br>
>><br>
>><br>
><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>
______________________________<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>
</div></div></blockquote></div><br></div></div>