<div dir="ltr"><div class="gmail_default" style="font-size:small;display:inline">Hi Vanúcia,</div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline"></div>Just an FYI about what's going on here:<br><br>With the destination grid, if you provide one-dimensional arrays for lat and lon that are both the same length (let's called the length DLEN), the regridding code has no idea if your intention is to regrid the data to a rectilinear grid that is DLEN x DLEN, or to an unstructured set of random points of length DLEN. This is why you<div class="gmail_default" style="font-size:small;display:inline"> are</div> get the warning:<br><br><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><font face="monospace, monospace"> get_dst_grid_info: Error: the lat/lon arrays are both 1D and the same length.<br> This could be a rectilinear or unstructured grid. Please set 'grid_type'</font></blockquote><br>Since you <div class="gmail_default" style="font-size:small;display:inline">said you wanted</div> to regrid to a 1 degree grid, you did the right thing by setting:<br><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace, monospace">Opt@DstGridType = "rectilinear"</font></div></blockquote><div><div><br></div><div><div class="gmail_default" style="font-size:small">I should point out, however, that if you want to regrid to a 1 degree grid, you could have also just set:</div><div class="gmail_default" style="font-size:small"><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">Opt@DstGridType = "1deg"</font></div></div></blockquote><div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">and then you don't need to set:</div><div class="gmail_default" style="font-size:small"><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace, monospace">Opt@DstGridLat = latDst</font></div><div><font face="monospace, monospace">Opt@DstGridLon = lonDst</font></div></blockquote><div><div><br></div><div><div class="gmail_default" style="font-size:small">However, setting DstGridLat and DstGridLon yourself should be okay.</div><br>I'm not sure what you mean by "the out_file It's a mess, with the curvilinear grid."<div class="gmail_default" style="font-size:small;display:inline"> I am downloading the files you provided and will take a look.</div></div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div><div class="gmail_default" style="font-size:small;display:inline">--Mary</div></div><div><div class="gmail_default" style="font-size:small;display:inline"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 15, 2017 at 7:35 PM, Vanúcia Schumacher <span dir="ltr"><<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div id="m_8456417532397536156divtagdefaultwrapper" style="font-size:14pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Hi</p>
<p><br>
</p>
<p>I sent via ftp site the complete script, and</p>
<p>the 2_file and 3_file used. Sorry, but I can't to reduze the size of the 1_file (<span style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:18.6667px"><a href="http://shf_asr-2000-classic.nc" target="_blank">shf_asr-2000-classic.nc</a>)</span> to
send via ftp, but I attached in this e-mail (<a href="https://1drv.ms/f/s!AhH-sSGcLfkLj0WsaPkz5a_nbuo4" class="m_8456417532397536156OWAAutoLink" id="m_8456417532397536156LPlnk68483|2:odcLink" target="_blank">https://1drv.ms/f/s!AhH-<wbr>sSGcLfkLj0WsaPkz5a_nbuo4</a>)</p>
<div id="m_8456417532397536156LPBorder_GT|1:LPlnk68483[|2:odcLink|4:4]" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="m_8456417532397536156LPContainer_14948984890210.4336321949193218" cellspacing="0" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="m_8456417532397536156TextCell_14948984890240.3527320645603951" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="m_8456417532397536156LPRemovePreviewContainer_14948984890240.026493782592196258"></div>
<div id="m_8456417532397536156LPOptionsContainer_14948984890240.7488692912815953"></div>
<table>
<tbody>
<tr valign="top" style="border-spacing:0px">
<td><a href="https://1drv.ms/f/s!AhH-sSGcLfkLj0WsaPkz5a_nbuo4" style="margin-right:10px" target="_blank"><img id="m_8456417532397536156LPItemIcon_14948984890240.002944621808824044" class="m_8456417532397536156EmojiInsert" alt="imageData708542" src="cid:f5445bb4-fef0-4da4-b3eb-fe9594a0c160"></a></td>
<td>
<div id="m_8456417532397536156LPTitle_14948984890250.5858274858431733" style="color:rgb(0,120,215);font-weight:normal;font-size:21px;font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;line-height:21px">
<a id="m_8456417532397536156LPUrlAnchor_14948984890260.5216036797743036" href="https://1drv.ms/f/s!AhH-sSGcLfkLj0WsaPkz5a_nbuo4" style="text-decoration:none" target="_blank">help</a></div>
<div id="m_8456417532397536156LPMetadata_14948984890260.21960416836626395" style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:normal;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
Compartilhado via OneDrive</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<p><br>
</p>
<p>I<span> include the line <span>Opt@DstGridType = "rectilinear" and the script works, but the out_file
<span>It's a mess, with the curvilinear grid. </span></span></span></p>
<p><span><span><span>I would like to regress the file_1 <span style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:18.6667px">(</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:18.6667px"><a href="http://shf_asr-2000-classic.nc" target="_blank">shf_asr-2000-classic.<wbr>nc</a>)</span>
to resolution of 1ºx1º with the grid rectilinear. I can not do this correctly.</span></span></span></p>
<p><span><span><span><br>
</span></span></span></p>
<p><span><span><span>The names of the files:</span></span></span></p>
<p><span><span><span><br>
</span></span></span></p>
<p><span><span><span>file_1 used: <span><a href="http://shf_asr-2000-classic.nc" target="_blank">shf_asr-2000-classic.nc</a></span></span></span></span></p>
<p><span><span><span><span><br>
</span></span></span></span></p>
<p><span><span><span><span>file_2: <span><a href="http://asr15km.static.2d.2007070100.nc" target="_blank">asr15km.static.2d.<wbr>2007070100.nc</a></span></span></span></span></span></p>
<p><span><span><span><span>file_3: <span><a href="http://shf_era-1x1.nc" target="_blank">shf_era-1x1.nc</a></span></span></span></span></span></p>
<p><span><span><span><span><span><br>
</span></span></span></span></span></p>
<p><span><span><span><span><span>Thanks</span></span></span></span></span></p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_8456417532397536156divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> Kevin Hallock <<a href="mailto:hallock@ucar.edu" target="_blank">hallock@ucar.edu</a>><br>
<b>Enviado:</b> segunda-feira, 15 de maio de 2017 21:53:51<br>
<b>Para:</b> Vanúcia Schumacher<br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Assunto:</b> Re: [ncl-talk] error ESMF_regrid</font>
<div> </div>
</div><div><div class="h5">
<div>Hi,
<div><br>
</div>
<div>Could you please provide the complete script you are trying to run?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Kevin</div>
<div><br>
<div>
<blockquote type="cite">
<div>On May 15, 2017, at 10:57 AM, Vanúcia Schumacher <<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.<wbr>com</a>> wrote:</div>
<br class="m_8456417532397536156Apple-interchange-newline">
<div>
<div id="m_8456417532397536156divtagdefaultwrapper" dir="ltr" style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:14pt;font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="margin-top:0px;margin-bottom:0px"></p>
<div>Hi NCL users,</div>
<div><br>
</div>
<div>
<div>I am trying to interpolate a data to a resolution of 1x1, but it is returning the following error:</div>
<div><br>
</div>
<div>Thank you any collaboration</div>
</div>
<div><br>
</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>get_src_grid_info: source lat dims = (120,120)</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>get_src_grid_info: source lon dims = (120,120)</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>get_src_grid_info: source grid type is 'curvilinear'</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>curvilinear_to_SCRIP: calculating grid corners...</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>curvilinear_to_SCRIP: no lat values are at the poles, so</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> calculating grid corners using</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> calc_SCRIP_corners_<wbr>noboundaries...</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>calc_SCRIP_corners_<wbr>noboundaries</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> min/max original lat: 24.6335/89.8972</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> min/max original lon: -179.998/179.975</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>calc_SCRIP_corners_<wbr>noboundaries</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> min/max Extlat2d: 23.76/89.8972</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> min/max Extlon2d: -179.998/179.975</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>calc_SCRIP_corners_<wbr>noboundaries</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> min/max ExtGridCenter_lat: 24.1982/89.2938</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> min/max ExtGridCenter_lon: -179.399/179.417</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>get_dst_grid_info: destination lat dims = (360)</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>get_dst_grid_info: destination lon dims = (360)</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>get_dst_grid_info: Error: the lat/lon arrays are both 1D and the same length.</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> This could be a rectilinear or unstructured grid. Please set 'grid_type'</div>
<div>(0)<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span> to 'rectilinear' or 'unstructured'.</div>
<div><br>
</div>
<br>
<p style="margin-top:0px;margin-bottom:0px"></p>
<p style="margin-top:0px;margin-bottom:0px"></p>
<div>Variable: varSrc0</div>
<div>Type: float</div>
<div>Total Size: 323481600 bytes</div>
<div> 80870400 values</div>
<div>Number of Dimensions: 3</div>
<div>Dimensions and sizes:<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap">
</span><span class="m_8456417532397536156Apple-converted-space"> </span>[Time | 156] x [XLAT | 720] x [XLONG | 720]</div>
<div>Coordinates: </div>
<div> Time: [868188..981394.5]</div>
<div>Number Of Attributes: 6</div>
<div> FieldType :<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap">
</span>104</div>
<div> MemoryOrder :<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap">
</span><span class="m_8456417532397536156Apple-converted-space"> </span>XY </div>
<div> description :<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap">
</span><span class="m_8456417532397536156Apple-converted-space"> </span>LATENT HEAT FLUX AT THE SURFACE</div>
<div> units :<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>
W m-2</div>
<div> stagger :<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap"> </span>
</div>
<div> coordinates :<span class="m_8456417532397536156Apple-tab-span" style="white-space:pre-wrap">
</span><span class="m_8456417532397536156Apple-converted-space"> </span>XLONG XLAT</div>
<div><br>
</div>
<div>
<div>Opt = True</div>
<div>Opt@SrcGridLat = latSrc</div>
<div>Opt@SrcGridLon = lonSrc</div>
<div>Opt@DstGridLat = latDst</div>
<div>Opt@DstGridLon = lonDst</div>
<div>Opt@SrcRegional = True ; because the source grid (ASR) is a regional grid</div>
<div>Opt@DstRegional = False ; if regriddin to global; set to True if smoothing ASR</div>
<div>Opt@InterpMethod = "bilinear" ; this is the default method</div>
<div>Opt@NoPETLog = True</div>
<div>Opt@RemoveSrcFile = True</div>
<div>Opt@RemoveDstFile = True</div>
<div>Opt@RemoveWgtFile = True</div>
<div>Opt@Debug = True ; set this to False to make it less verbose</div>
<div>Opt@CopyVarCoords = True ; if True, the lat-lon data will be attached as</div>
<div>Opt@ForceOverwrite = True</div>
<div><br>
</div>
<div></div>
<div><br>
</div>
<div>; Regridding function</div>
<div><br>
</div>
<div>varDst0 = ESMF_regrid(varSrc0,Opt)</div>
<br>
</div>
<br>
<p style="margin-top:0px;margin-bottom:0px"></p>
</div>
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">______________________________<wbr>_________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">ncl-talk
mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="mailto:ncl-talk@ucar.edu" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">ncl-talk@ucar.edu</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">List
instructions, subscriber options, unsubscribe:</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a></div>
</blockquote>
</div>
<br>
</div>
</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></div></div>