<div dir="ltr"><div dir="ltr"><div>Hi Sarah,</div><div><br></div><div>I'm not expert at this, but it sounds like you might be writing a variable larger than 2GB?  This FAQ from Unidata specifically mentions the error message you are getting:</div><div><br></div><div>    <a href="https://www.unidata.ucar.edu/software/netcdf/faq-lfs.html">https://www.unidata.ucar.edu/software/netcdf/faq-lfs.html</a></div><div><br></div><div>I see you are using "NetCDF4Classic" in your setfileoption calls, and I *think* that has the 2GB limit that NetCDF3 has -- it may be the case you need to use either "NetCDF4" or "<i>64BitOffset</i>" instead to write large variables.</div><div><br></div><div>Hope that helps...</div><div>Rick<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 20, 2018 at 8:37 AM, Sarah Bradley - CITG <span dir="ltr"><<a href="mailto:S.L.Bradley-1@tudelft.nl" target="_blank">S.L.Bradley-1@tudelft.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div style="word-wrap:break-word;line-break:after-white-space">Hello
<div><br>
</div>
<div>I am trying to map a 10min global file to a 30 sec grid using the ESMF mapping software</div>
<div><br>
</div>
<div>I have attached my ncl script</div>
<div><br>
</div>
<div>The error message I receive is: </div>
<div><br>
</div>
<div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span>Copyright (C) 1995-2017 - All Rights Reserved</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span> University Corporation for Atmospheric Research</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span> NCAR Command Language Version 6.4.0</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span> The use of this software is governed by a License Agreement.</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> <wbr>for more details.</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span>(0)<span class="m_2300714720052394082x_Apple-tab-span" style="white-space:pre-wrap">
</span>=====> CPU Elapsed Time: rectilinear_to_SCRIP: 1.408 seconds <=====</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span>ncendef: ncid 196608: NetCDF: One or more variable sizes violate format constraints</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span>fatal:NetCDF: Operation not allowed in define mode: error attempting to write variable (grid_dims) to file (<a href="http://destination_grid_file.nc" target="_blank">destination_grid_file.nc</a>)</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 1711 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255);min-height:19px">
<span></span><br>
</div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 1847 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255);min-height:19px">
<span></span><br>
</div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 3910 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255);min-height:19px">
<span></span><br>
</div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 4051 in file $NCARG_ROOT/lib/ncarg/<wbr>nclscripts/esmf/ESMF_<wbr>regridding.ncl</span></div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255);min-height:19px">
<span></span><br>
</div>
<div style="margin:0px;font-size:16px;line-height:normal;font-family:Courier;background-color:rgb(255,255,255)">
<span>fatal:["Execute.c":8640]:<wbr>Execute: Error occurred at or near line 90 in file remap_10min-30sec_ESMF.ncl</span></div>
</div>
<div><span><br>
</span></div>
<div><span>I found that as the 30sec file was large, I needed to specify this in the script.</span></div>
<div><span><br>
</span></div>
<div><span>I hope you can help,</span></div>
<div><span><br>
</span></div>
<div>Sarah Bradley </div>
<div><br>
</div>
<div></div>
</div>
<div style="word-wrap:break-word;line-break:after-white-space">
<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>