<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi all,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Laura and I have been iterating offline about this and I wanted to update ncl-talk.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The issue is that when you regrid unstructured data, the internal regridding routine needs to have a mesh that defines the edges of a triangular or some mesh structure of each cell. If such a mesh is not provided by the user, then ESMF_regrid will call the Fortran-based "csstri" routine to generate a triangular mesh.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This routine can take hours if not days on large grids (this one was 6.5 million cells). </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It turns out that Laura's NetCDF file already had a triangular mesh on it, so she was able to read this mesh off the file and set it to the special "SrcTriangularMesh" option.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">With this option set, we were able to get the generation of the weights file down to 6 minutes. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Once you have the weights file, you can use this to regrid future variables, and this only took about 1 second on my Mac.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 8, 2015 at 11:24 AM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></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 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">I don't think I've tried regridding an MPAS grid of this size.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Can you point me to your script and file on geyser, and I'll have a look? You can send me this information offline if you like.</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 8, 2015 at 10:42 AM, Laura Fowler <span dir="ltr"><<a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello:<br>
<br>
I have been trying to regrid a MPAS unstructured variable-resolution<br>
grid that has a number of cells equal 6848514 to a rectangular 0.25<br>
deg latitude-longitude grid. I use the function ESMF_regrid to create<br>
generic source, destination, and weights files that I can use for my<br>
MPAS runs.<br>
<br>
The issue that I have is that it is really really slow and I cannot<br>
fit the regretting within the 12 hour limit on geyser. Is there<br>
anything else that I can do to speed up that process?<br>
<br>
Thanks,<br>
Laura<br>
<br>
<br>
--<br>
!-------------------------------------------------------------------------------------------------------------<br>
Laura D. Fowler<br>
Mesoscale and Microscale Meteorology Division (MMM)<br>
National Center for Atmospheric Research<br>
P.O. Box 3000, Boulder CO 80307-3000<br>
<br>
e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a><br>
phone: <a href="tel:303-497-1628" value="+13034971628" target="_blank">303-497-1628</a><br>
<br>
!-------------------------------------------------------------------------------------------------------------<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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>