<div dir="ltr"><div class="gmail_default" style="font-size:small">Jiande,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You may also want to look at some ESMF regridding templates we have:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/Templates/#ESMFRegriddingTemplates">http://www.ncl.ucar.edu/Applications/Templates/#ESMFRegriddingTemplates</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">In particular, the &quot;ESMF_curv_to_curv.ncl&quot; one, which is a generic one for going from one curvilinear grid to another.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 10, 2017 at 9:40 AM, Jiande Wang <span dir="ltr">&lt;<a href="mailto:jiande.wang@noaa.gov" target="_blank">jiande.wang@noaa.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Mary:</p>
    <p>  Thanks for your information. <br>
    </p>
    <p>  I realized that I should post my question on ncl-talk instead
      of ncard-talk later. This is my first time to use ncl forum.</p>
    <p>  The source and destination data are all represented in 2D
      lat/lon. I will take a close look on the example and take a try.</p>
    <p><br>
    </p>
    <p>Cheers,</p>
    <p>Jiande<br>
    </p><div><div class="h5">
    <p>  <br>
    </p>
    <br>
    <div class="m_-7936449566598872546moz-cite-prefix">On 7/10/2017 9:19 AM, Mary Haley wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div style="font-size:small">Dear Jiande,</div>
        <div style="font-size:small"><br>
        </div>
        <div style="font-size:small">ncarg-talk is
          for people with NCAR Graphics questions.</div>
        <div style="font-size:small"><br>
        </div>
        <div style="font-size:small">For NCL
          questions, please post to <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>:</div>
        <div style="font-size:small"><br>
        </div>
        <div><a href="http://www.ncl.ucar.edu/Support/email_lists.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Support/email_lists.shtml</a><br>
        </div>
        <div><br>
        </div>
        <div>I think you should be able to regrid
          the tripolar directly to a tripolar grid. Both tripolar grids
          are curvilinear, correct? That is, they are represented by 2D
          lat/lon grids?</div>
        <div><br>
        </div>
        <div>If so, see example #11 at:</div>
        <div><br>
        </div>
        <div><a href="http://www.ncl.ucar.edu/Applications/ESMF.shtml#ex11" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/ESMF.shtml#ex11</a><br>
        </div>
        <div><br>
        </div>
        <div>This example goes from a tripolar to
          MPAS grid, but I believe you could modify these lines:</div>
        <div><br>
        </div>
        <div>
          <div>    Opt@DstGridLat        = latCell
                       ; Destination grid</div>
          <div>    Opt@DstGridLon        = lonCell</div>
          <div>    Opt@DstGridType       =
            &quot;unstructured&quot;</div>
          <div><br>
          </div>
          <div>to:</div>
          <div><br>
          </div>
          <div>
            <div>    Opt@DstGridLat        =
              dst_lat            ; Destination grid</div>
            <div>    Opt@DstGridLon        =
              dst_lon</div>
            <div>    Opt@DstGridType       =
              &quot;curvilinear&quot;    <br>
            </div>
            <div><br>
            </div>
            <div>Where dst_lat and dst_lon are the
              2D lat/lon grid for the destination tripolar grid.</div>
            <div><br>
            </div>
            <div>You may also want to change this
              to whatever interpolation method you want (&quot;bilinear&quot; is
              the default):</div>
            <div><br>
            </div>
            <div>    Opt@InterpMethod      =
              &quot;patch&quot;    ; bilinear, conserve, neareststod, nearestdtos</div>
            <div><br>
            </div>
            <div>If you use &quot;conserve&quot;, then you
              should also provide the grid corners. The ESMF examples
              page explains some of this.</div>
            <div><br>
            </div>
            <div>Finally, if your source and/or
              destination grids are regional, you should also set:</div>
            <div><br>
            </div>
            <div>Opt@SrcRegional = True   ; if
              source tripolar is regional</div>
            <div>Opt@DstRegional = True   ; if
              destination tripolar is regional</div>
            <div><br>
            </div>
            <div>--Mary</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Jul 6, 2017 at 2:57 PM, Jiande
          Wang - NOAA Affiliate <span dir="ltr">&lt;<a href="mailto:jiande.wang@noaa.gov" target="_blank">jiande.wang@noaa.gov</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>Hi,</div>
              <div>  I am new to NCL.</div>
              <div> I have a tripolar grid ocean data and want to regrid
                it to another tripolar grid.</div>
              <div>  What I plan to do is first regrid the original
                tripolar grid data to regular lat/lon data. Then I will
                regrid the regular data to new tripolar grid.</div>
              <div>  I know what to do in the first step, but not clear
                on how to do in the second step.</div>
              <div>  Has any one have experience or script on my task?</div>
              <div><br>
              </div>
              <div> Your suggestion will be appreciated.</div>
              <div><br>
              </div>
              <div>Thanks</div>
              <span class="m_-7936449566598872546HOEnZb"><font color="#888888">
                  <div>Jiande</div>
                </font></span></div>
            <br>
            ______________________________<wbr>_________________<br>
            ncarg-talk mailing list<br>
            <a href="mailto:ncarg-talk@ucar.edu" target="_blank">ncarg-talk@ucar.edu</a><br>
            <a href="http://mailman.ucar.edu/mailman/listinfo/ncarg-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncarg-talk</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div></div>