<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Tristan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Sorry I haven&#39;t responded sooner.  We&#39;re in the middle of an NCL workshop this week.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Without seeing your data, I&#39;m not exactly sure of the problem, but it looks like your lat/lon arrays are not two-dimensional. This error:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><em style="color:rgb(0,0,0);font-size:16px;font-family:&#39;Times New Roman&#39;,Times,serif">fatal:Number of dimensions in parameter (1) of (curvilinear_to_SCRIP) is (1), (2) dimensions were expected </em><br></div><div class="gmail_default" style="font-size:small"><em style="color:rgb(0,0,0);font-size:16px"><font face="arial, helvetica, sans-serif"><br></font></em></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif">is saying that the second argument to curvilinear_to_SCRIP (argument count starts at 0) is a 1D array, and a 2D array is expected. It looks like your data might be rectilinear and not curvilinear, so these two lines:</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">







<p class="">    thetao@lat2d = sfile-&gt;lat<br>    thetao@lon2d = sfile-&gt;lon</p></div><div class="gmail_default" style="font-size:small">may not be needed.</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">Can you either provide the data file, or else include some printVarSummary information on these variables:</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">printVarSummary(thetao)</font></div><div class="gmail_default" style="font-size:small"><font face="arial, helvetica, sans-serif">printVarSummary(sfile-&gt;lat)</font></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 12:49 AM, Tristan Ballard <span dir="ltr">&lt;<a href="mailto:tristan.ballard@duke.edu" target="_blank">tristan.ballard@duke.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 dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span style="font-family:&#39;Times New Roman&#39;,Times,serif">Hello,</span><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<span style="font-family:&#39;Times New Roman&#39;,Times,serif">I am trying to regrid various CMIP5 files onto identical 1x1 grids, ideally with identical time formats as well. I tried running the ESMF template (ESMF_regrid_6.ncl) on a file for precipitation instead
 of sea temperature as in the template but received multiple errors. The script attached is essentially the same as that template but with the &#39;conserve&#39; method for regridding removed. I have tried it on other precipitation CMIP5 model outputs as well and received
 the same error message. I am running NCL version 6.1.2 on Mac OS X Lion 10.7.5.<br>
</span></p>
<p><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
</p>
<p><span style="font-family:&#39;Times New Roman&#39;,Times,serif">This is the error I receive from the terminal window:</span><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">&quot;Copyright (C) 1995-2013 - All Rights Reserved</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
</p>
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif"> University Corporation for Atmospheric Research</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif"> NCAR Command Language Version 6.1.2</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif"> The use of this software is governed by a License Agreement.</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif"> See
</span></em><a href="http://www.ncl.ucar.edu/" target="_blank"><em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">http://www.ncl.ucar.edu/</span></em></a><em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">
 for more details.</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">(0)    Generating interpolation weights from CMIP5 to</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">(0)    World 1 degree grid using the bilinear method.</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">fatal:Number of dimensions in parameter (1) of (curvilinear_to_SCRIP) is (1), (2) dimensions were expected
</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">fatal:[&quot;Execute.c&quot;:8128]:</span></em>
<div dir="ltr"><u></u><em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">Execute: Error occurred at or near line 3011 in file $NCARG_ROOT/lib/ncarg/</span></em><u></u><em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">nclscripts/esmf/ESMF_</span></em><u></u><em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">regridding.ncl</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">fatal:[&quot;Execute.c&quot;:8128]:</span></em><u></u><em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">Execute:
 Error occurred at or near line 3122 in file $NCARG_ROOT/lib/ncarg/</span></em><u></u><em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">nclscripts/esmf/ESMF_</span></em><u></u><em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">regridding.ncl</span></em><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">fatal:[&quot;Execute.c&quot;:8128]:</span></em><u></u><em style="font-family:&#39;Times New Roman&#39;,Times,serif"><span style="font-family:&#39;Times New Roman&#39;,Times,serif">Execute:
 Error occurred at or near line 115 in file regrid_attempt2.ncl&quot;</span></em></div>
<p><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<span style="font-family:&#39;Times New Roman&#39;,Times,serif"></span></p>
<p><span style="font-family:&#39;Times New Roman&#39;,Times,serif">I&#39;ve attached the script here and sent the CMIP5 raw data file (pr_Amon_GFDL-ESM2G_rcp45_r1i1p1_200601-201012.nc) to NCL via ftp. Thank you for any help. I&#39;ve been trying to regrid the CMIP5 data into
 identical formats for months now.</span></p>
<p><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
</p>
<span style="font-family:&#39;Times New Roman&#39;,Times,serif">Cheers,</span><br style="font-family:&#39;Times New Roman&#39;,Times,serif">
<span style="font-family:&#39;Times New Roman&#39;,Times,serif">Tristan</span>
<p><br>
</p>
</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>