<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Diana,</p>
<p>I haven't done your specific regridding. But using the ESMF
regridding routines is the best way to go. You can save the
regridding in a special netCDF file that only you requires the
regridding weights to be calculated once and then reloaded for
future needs. There are some examples that deal with
non-rectilinear grids sending in 2-d lat and lon grids, rather
than 1-d.<br>
</p>
<p><a class="moz-txt-link-freetext" href="http://www.ncl.ucar.edu/Applications/ESMF.shtml">http://www.ncl.ucar.edu/Applications/ESMF.shtml</a></p>
<p><a class="moz-txt-link-freetext" href="http://www.ncl.ucar.edu/Document/Functions/ESMF.shtml">http://www.ncl.ucar.edu/Document/Functions/ESMF.shtml</a></p>
<p>Cheers,</p>
<p>Bill</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 4/29/2020 3:17 PM, Diana Stovern -
NOAA Affiliate via ncl-talk wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALx3_SbLRPMm_W4ET+8EPquboV_o0BZaPtT6q7x7Vu+q-p2Nsw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p style="text-align:center"><font color="red"><strong>External
Email</strong><br>
</font></p>
<div dir="ltr">Hello,
<div><br>
</div>
<div>I need to regrid rainfall data from a lambert conformal
grid to a polar sterographic grid. The lat and lon data in
both grids are 2D arrays (see filedump output below). Is
there a regridding routine in NCL that allows for both the
input and output lat and lon to be 2D arrays? I see most of
the routines require lat and lon to be 1D arrays.</div>
<div><br>
</div>
<div>Thanks! </div>
<div><br>
</div>
<div>Diana Stovern </div>
<div><br>
</div>
<div><br>
</div>
<div><b>Grid 1:</b> </div>
<div> float gridlat_0 ( ygrid_0, xgrid_0 )<br>
corners : ( 23.117, 19.80368, 45.61871, 53.51192
)<br>
long_name : latitude<br>
grid_type : Polar Sterographic Projection (North
or South)<br>
units : degrees_north<br>
Dy : 4.763<br>
Dx : 4.763<br>
Lov : 255<br>
Lo1 : 240.977<br>
La1 : 23.117<br>
<br>
float gridlon_0 ( ygrid_0, xgrid_0 )<br>
corners : ( -119.023, -80.74672, -59.95137,
-134.043 )<br>
long_name : longitude<br>
grid_type : Polar Sterographic Projection (North
or South)<br>
units : degrees_east<br>
Dy : 4.763<br>
Dx : 4.763<br>
Lov : 255<br>
Lo1 : 240.977<br>
La1 : 23.117 <br>
</div>
<div><br>
</div>
<div><b>Grid 2:</b> </div>
<div> float gridlat_0 ( ygrid_0, xgrid_0 )<br>
corners : ( 20.192, 20.33182, 54.37271, 54.20572
)<br>
long_name : latitude<br>
grid_type : Lambert Conformal (secant, tangent,
conical or bipolar)<br>
units : degrees_north<br>
Latin2 : 25<br>
Latin1 : 25<br>
Dy : 2.539702<br>
Dx : 2.539703<br>
Lov : 265<br>
Lo1 : 238.446<br>
La1 : 20.192<br>
<br>
float gridlon_0 ( ygrid_0, xgrid_0 )<br>
corners : ( -121.554, -69.20839, -59.04248,
-131.9951 )<br>
long_name : longitude<br>
grid_type : Lambert Conformal (secant, tangent,
conical or bipolar)<br>
units : degrees_east<br>
Latin2 : 25<br>
Latin1 : 25<br>
Dy : 2.539702<br>
Dx : 2.539703<br>
Lov : 265<br>
Lo1 : 238.446<br>
La1 : 20.192<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></pre>
</blockquote>
</body>
</html>