<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Dear Dennis,</p>
    <p>Thanks for you response. I'll check your comments.</p>
    <p>Guilherme.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">Em 20/10/2016 17:49, Dennis Shea
      escreveu:<br>
    </div>
    <blockquote
cite="mid:CAOF1d_4nTHYHdWssjQHqVcQGFssi2RMB0k9i6bd+4sD9FVuE7Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>  <br>
                  </div>
                  <div>
                    <div>[1]<br>
                    </div>
                  </div>
                  The 'tems' and 'umrs'  variables have the attribute
                  'gaussian' on input.<br>
                  <br>
                         float tems(time, lat, lon) ;<br>
                                  tems:code = 188 ;<br>
                                  tems:table = 254 ;<br>
                                  tems:grid_type = "gaussian" ;<br>
                          float umrs(time, lat, lon) ;<br>
                                  umrs:code = 226 ;<br>
                                  umrs:table = 254 ;<br>
                                  umrs:grid_type = "gaussian" ;<br>
                  <br>
                </div>
                I suggest deleting this upon input. This is
                *informational only*.<br>
                <br>
              </div>
                  tems = f-&gt;tems<br>
            </div>
                delete(tems@grid_type)<br>
          </div>
              umrs = f-&gt;umrs<br>
        </div>
            delete(umrs@grid_type)<br>
        <div>
          <div>
            <div>
              <div>    <br>
              </div>
              <div>+++++=====&gt;  prevents a *_Wrap from copying it
                over.<br>
                <br>
                ===<br>
                <br>
                Note:  I would suspect that area_conserve_remap_Wrap is
                *not* recommended for this application.<br>
              </div>
              <div>This function was written by a model developer who
                created it for global gaussian grids with no _FillValue.<br>
              </div>
              <div>It was modified to handle regional grids. <br>
              </div>
              <div><br>
              </div>
              <div>However, I'll offer a few comments:<br>
              </div>
              <div>area_conserve_remap_Wrap(in_<wbr>lon,in_lat,in_wyearmean,g_lon,<wbr>g_lat,False)<br>
                <br>
              </div>
              <div>Your last argument is 'False'. You have regional
                grids. Hence, 'False' is *not* appropriate. To use this
                function, I think you must have:<br>
              </div>
              <div>    opt = True<br>
              </div>
              <div>    opt@nlat  = 320<br>
              </div>
              <div>    opt@mlon= 640<br>
                area_conserve_remap_Wrap(in_<wbr>lon,in_lat,in_wyearmean,g_lon,<wbr>g_lat,
                opt)<br>
                <br>
                <br>
                ====<br>
              </div>
              <div>I suggest using ESMF regridding<br>
                <br>
                <a moz-do-not-send="true"
                  href="http://www.ncl.ucar.edu/Applications/ESMF.shtml"
                  target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/ESMF.shtml</a><br>
                <br>
              </div>
              I have slightly modified e the examples. See attached. <br>
              <br>
            </div>
            <div>[1] regrid.esmf_01.ncl:<br>
              Generate the weight file using one variable. This plots
              'before'-and-'after' pics<br>
              <br>
            </div>
            <div>[2] regrid.esmf_02.ncl<br>
              Use the weight file generated in [1] to regrid all
              specified variables. Create netCDF<br>
              <br>
            </div>
            <div>Dood luc;<br>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Oct 19, 2016 at 11:01 AM,
          Guilherme Martins <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:jgmsantos@gmail.com"
              target="_blank">jgmsantos@gmail.com</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 dir="ltr" class="m_4864269015603889677gmail_msg">Hi
                users,
                <div class="m_4864269015603889677gmail_msg"><br
                    class="m_4864269015603889677gmail_msg">
                </div>
                <div class="m_4864269015603889677gmail_msg">I have the
                  files <a moz-do-not-send="true" href="http://mcga.nc"
                    class="m_4864269015603889677gmail_msg"
                    target="_blank">mcga.nc</a> (variables: tems and
                  umrs) and <a moz-do-not-send="true"
                    href="http://REF_25km.AS.nc"
                    class="m_4864269015603889677gmail_msg"
                    target="_blank">REF_25km.AS.nc</a> (vegetation map).
                  I'd like to interpolate the <a moz-do-not-send="true"
                    href="http://mcga.nc"
                    class="m_4864269015603889677gmail_msg"
                    target="_blank">mcga.nc</a> file (gaussian grid) to
                  the same spatial resolution <a moz-do-not-send="true"
                    href="http://REF_25km.AS.nc"
                    class="m_4864269015603889677gmail_msg"
                    target="_blank">REF_25km.AS.nc</a> (regular grid)
                  file. I wrote a script but the result (netcdf file)
                  show me that the new variables still are in a gaussian
                  grid and I want a regular grid equal to the <a
                    moz-do-not-send="true" href="http://REF_25km.AS.nc"
                    class="m_4864269015603889677gmail_msg"
                    target="_blank">REF_25km.AS.nc</a> file.<br
                    class="m_4864269015603889677gmail_msg">
                </div>
                <div class="m_4864269015603889677gmail_msg"><br
                    class="m_4864269015603889677gmail_msg">
                </div>
                <div class="m_4864269015603889677gmail_msg">The script
                  and dataset can be downloaded at:</div>
                <div class="m_4864269015603889677gmail_msg"><br
                    class="m_4864269015603889677gmail_msg">
                </div>
                <div class="m_4864269015603889677gmail_msg"><a
                    moz-do-not-send="true"
                    href="http://ftp-supercomputacao.inpe.br/public/jose.martins/regrid/"
                    class="m_4864269015603889677gmail_msg"
                    target="_blank">http://ftp-supercomputacao.<wbr>inpe.br/public/jose.martins/<wbr>regrid/</a><br
                    class="m_4864269015603889677gmail_msg">
                </div>
                <div class="m_4864269015603889677gmail_msg"><br
                    class="m_4864269015603889677gmail_msg">
                </div>
                <div class="m_4864269015603889677gmail_msg">Thanks,</div>
                <div class="m_4864269015603889677gmail_msg"><br
                    class="m_4864269015603889677gmail_msg">
                </div>
                <div class="m_4864269015603889677gmail_msg">Guilherme
                  Martins.</div>
              </div>
              <span class="HOEnZb"><font color="#888888">
                  <div dir="ltr" class="m_4864269015603889677gmail_msg">--
                    <br class="m_4864269015603889677gmail_msg">
                  </div>
                  <div data-smartmail="gmail_signature"
                    class="m_4864269015603889677gmail_msg">
                    <div dir="ltr"
                      class="m_4864269015603889677gmail_msg">
                      <div class="m_4864269015603889677gmail_msg">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------</div>
                      <div class="m_4864269015603889677gmail_msg">
                        <div class="m_4864269015603889677gmail_msg">Instituto
                          Nacional de Pesquisas Espaciais (INPE)</div>
                        <div class="m_4864269015603889677gmail_msg">Centro
                          de Previsão de Tempo e Estudos Climáticos
                          (CPTEC)</div>
                        <div class="m_4864269015603889677gmail_msg">Divisão
                          de Satélites e Sistemas Ambientais (DSA)</div>
                        <div class="m_4864269015603889677gmail_msg">Programa
                          de Monitoramento de Queimadas</div>
                        <div class="m_4864269015603889677gmail_msg">Telefone
                          (INPE/CP): <a moz-do-not-send="true"
                            href="tel:%2812%29%203186-9205"
                            value="+551231869205"
                            class="m_4864269015603889677gmail_msg"
                            target="_blank">+55 12 3186-9205</a> ||
                          Celular (TIM): <a moz-do-not-send="true"
                            href="tel:%2812%29%2098152-8580"
                            value="+5512981528580"
                            class="m_4864269015603889677gmail_msg"
                            target="_blank">+55 12 98152-8580</a></div>
                        <div class="m_4864269015603889677gmail_msg">E-mail:
                          <a moz-do-not-send="true"
                            href="mailto:guilherme.martins@inpe.br"
                            class="m_4864269015603889677gmail_msg"
                            target="_blank">guilherme.martins@inpe.br</a>
                          || <a moz-do-not-send="true"
                            href="mailto:jgmsantos@gmail.com"
                            class="m_4864269015603889677gmail_msg"
                            target="_blank">jgmsantos@gmail.com</a></div>
                        <div class="m_4864269015603889677gmail_msg">Skype:
                          guilherme.martins.</div>
                        <div class="m_4864269015603889677gmail_msg">Homepage:
                          <a moz-do-not-send="true"
                            href="https://sites.google.com/site/jgmsantos"
                            class="m_4864269015603889677gmail_msg"
                            target="_blank">https://sites.google.com/site/<wbr>jgmsantos</a></div>
                        <div class="m_4864269015603889677gmail_msg">Currículo
                          Lattes: <a moz-do-not-send="true"
                            href="http://lattes.cnpq.br/5997657584785803"
                            class="m_4864269015603889677gmail_msg"
                            target="_blank">http://lattes.cnpq.br/<wbr>5997657584785803</a></div>
                      </div>
                      <div class="m_4864269015603889677gmail_msg"><span
                          style="font-family:&quot;helvetica
                          neue&quot;,helvetica,arial,sans-serif"
                          class="m_4864269015603889677gmail_msg">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>------</span><br
                          class="m_4864269015603889677gmail_msg">
                      </div>
                    </div>
                  </div>
                </font></span></div>
            <br>
            ______________________________<wbr>_________________<br>
            ncl-talk mailing list<br>
            <a moz-do-not-send="true" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
            List instructions, subscriber options, unsubscribe:<br>
            <a moz-do-not-send="true"
              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>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
------------------------------------------------------------------------------------------
Instituto Nacional de Pesquisas Espaciais (INPE)
Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)
Divisão de Satélites Ambientais (DSA)
Programa de Monitoramento de Queimadas 
Telefone (INPE/CP): +55 12 3208-9205 || Celular (TIM): +55 12 98152-8580
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:guilherme.martins@inpe.br">guilherme.martins@inpe.br</a> || <a class="moz-txt-link-abbreviated" href="mailto:jgmsantos@gmail.com">jgmsantos@gmail.com</a>
Skype: guilherme.martins.
Homepage: <a class="moz-txt-link-freetext" href="https://sites.google.com/site/jgmsantos">https://sites.google.com/site/jgmsantos</a>
Currículo Lattes: <a class="moz-txt-link-freetext" href="http://lattes.cnpq.br/5997657584785803">http://lattes.cnpq.br/5997657584785803</a>
------------------------------------------------------------------------------------------</pre>
  </body>
</html>