<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Laura,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Sorry about the confusion. This was an undocumented feature because it hasn't been well-tested.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You did the right thing providing SrcTriangularMesh for the source MPAS grid.</div><div class="gmail_default" style="font-size:small"><br></div>You need to do the same thing for the destination MPAS grid, however, by setting DstTriangularMesh. This should be different than the source one. <div><br></div><div><span class="gmail_default" style="font-size:small">Assuming "fDst" refers to the opened destination file, and assuming it also has a cellsOnVertex variable, it would look like this:</span></div><div><br></div><div><p class="gmail-m_8525845433839525026gmail-p1" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;margin:0px;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@<span class="gmail_default" style="font-size:small">Dst</span>TriangularMesh = f<span class="gmail_default" style="font-size:small">Dst</span>->cellsOnVertex-1</span></p><div><br></div><div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jan 14, 2019 at 9:41 AM Laura Fowler <<a href="mailto:laura@ucar.edu">laura@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello:<div><br></div><div>I would like to use EMSF_regrid to regrid a MPAS unstructured mesh (with 655362 cells) to another MPAS unstructured mesh (with 1622018 cells). Below are the options I use to do so:</div><div><br></div><div>





<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt = True</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@Debug = True</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@ForceOverwrite = True</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@SrcGridLon = lonCellSrc ; source grid longitude input.</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@SrcGridLat = latCellSrc ; source grid latitude input.</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@SrcTriangularMesh = fSrc->cellsOnVertex-1</span></p>
<p class="gmail-m_8525845433839525026gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);min-height:17px"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@DstGridLon = lonCellDst ; destination grid longitude input.</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@DstGridLat = latCellDst ; destination grid latitutde input.</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@DstGridType<span class="gmail-m_8525845433839525026gmail-Apple-converted-space">  </span>= "unstructured"</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@SrcFileName<span class="gmail-m_8525845433839525026gmail-Apple-converted-space">  </span>= "<a href="http://source.grid_onCells.655362.to_1622018.nc" target="_blank">source.grid_onCells.655362.to_1622018.nc</a>"</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@DstFileName<span class="gmail-m_8525845433839525026gmail-Apple-converted-space">  </span>= "<a href="http://destination.grid_onCells.655362.to_1622018.nc" target="_blank">destination.grid_onCells.655362.to_1622018.nc</a>"</span></p>
<p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">   </span>opt@WgtFileName<span class="gmail-m_8525845433839525026gmail-Apple-converted-space">  </span>= "<a href="http://weights.grid_onCells.655362.to_1622018.nc" target="_blank">weights.grid_onCells.655362.to_1622018.nc</a>"</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><br></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)">When I run my script, I get the following message:</p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><br></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 0</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>get_src_grid_info: source lat dims = (655362)</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">    </span>get_src_grid_info: source lon dims = (655362)</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">    </span>get_src_grid_info: source grid type is 'unstructured'</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">    </span>unstructured_to_ESMF: using triangular mesh provided by the user</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>min/max ElementVertices = 0/655361</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">       </span>unstructured_to_ESMF: total number of elements created: 1310720</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">  </span>unstructured_to_ESMF: Element Area: min:6.114026940950978e-06 max:9.902497945857291e-06</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">  </span>write_grid_description_file: writing unstructured 'Src' grid to an ESMF description file</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>get_dst_grid_info: destination lat dims = (1622018)</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>get_dst_grid_info: destination lon dims = (1622018)</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">      </span>unstructured_to_ESMF: triangulating the data to create the edges for your unstructured data.</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">     </span><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">                      </span>This can be VERY slow if you have a large array.</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font:14px Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">      </span><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">                      </span>To speed up code, provide your own edge vertices via the</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)">



















</p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="gmail-m_8525845433839525026gmail-Apple-tab-span" style="white-space:pre-wrap">  </span><span class="gmail-m_8525845433839525026gmail-Apple-converted-space">                      </span>'ElementVertices' option.</span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-m_8525845433839525026gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="gmail-m_8525845433839525026gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p></div><div><div>How do I use the ElementVertices option to speed up the interpolation. Do I use that option for the Source file or the Destination file. I did not see any documentation related to that option?</div><div><br></div><div>Thanks,</div><div>Laura</div><div><br></div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_8525845433839525026gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler                                                                                       </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM)         </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><br></div></div></div></div></div>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>