<div dir="ltr">It should work actually. Are you reading a variable in correct order of dimensions? You mention (lev, time) and your data looks (time, lev). please check.<div>Maybe some reading issue of file data...</div><div><br></div><div>-Anil</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 29, 2018 at 1:38 PM, Andrew Kren - NOAA Affiliate <span dir="ltr"><<a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</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">Thanks Anil. I tried a few additions from your code but still ran into issues. It is still giving me the same error.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 29, 2018 at 1:14 PM, Anil Kumar - NOAA Affiliate <span dir="ltr"><<a href="mailto:anil.kumar@noaa.gov" target="_blank">anil.kumar@noaa.gov</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">Andrew,<div>I did similar thing to regrid unstructed data on to wrf grid (<a href="http://geo_em_d01.nc" target="_blank">geo_em_d01.nc</a>)  here is the code and worked successfully with ncl 6.4 version. </div><div>Hope this help. </div><div><br></div><div>




<span></span>





<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures">src_file = "<a href="http://maxele.63.nc" target="_blank">maxele.63.nc</a>"</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space"> </span>sfile = addfile(src_file,"r")</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures">;printVarSummary(sfile)</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space"> </span>lat1D = sfile->y</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space"> </span>lon1D = sfile->x</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space"> </span>var = sfile->zeta_max(0,:)   ; zeta is function of time and variable. </span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space"> </span>dst_file = "<a href="http://geo_em.d01.nc" target="_blank">geo_em.d01.nc</a>"</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space"> </span>dfile<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>= addfile(dst_file,"r")</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures">;---Set up regridding options</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">                </span>= True</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures">;---"bilinear" is the default. "patch" and "conserve" are other options.</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@InterpMethod <span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>= "neareststod"<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">        </span>;;---Change (maybe)</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@WgtFileName<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">      </span>= "<a href="http://unstruct_to_rect.nc" target="_blank">unstruct_to_rect.nc</a>"</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@SrcGridLat <span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">      </span>= lat1D</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@SrcGridLon <span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">      </span>= lon1D</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@SrcRegional<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">      </span>= False<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">            </span>;;--Change (maybe)</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@SrcInputFileName = src_file<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">          </span>; optional, but good idea</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@SrcMask2D<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">        </span>= where(.not.ismissing(var),1,0) ; Necessary if has</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">                                                          </span>; missing values.</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>dst_lat<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">              </span>= dfile->XLAT_M(0,:,:)<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>; Be sure to use appropriate names</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>dst_lon<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">              </span>= dfile->XLONG_M(0,:,:) <span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">  </span>; here.</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@DstGridLon <span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">      </span>= dst_lon</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@DstGridLat <span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">      </span>= dst_lat</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@DstRegional<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">      </span>= True<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">            </span>;;--Change (maybe)</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures">;<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@DstMask2D = where(.not.ismissing(dst_lat).<wbr>and.\</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures">;<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">                          </span>.not.ismissing(dst_lon),1,0) ; Necessary if lat/lon</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">                                                      </span>; has missing values.</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">                                                      </span>; has missing values.</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@ForceOverwrite <span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">  </span>= True</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@Debug<span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">            </span>= True</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>Opt@PrintTimings <span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>= True</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>var_regrid = ESMF_regrid(var,Opt) <span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>; Do the regridding</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-4177365754719978128m_1178540729522149473gmail-Apple-converted-space">    </span>printVarSummary(var_regrid)</span></p>
<p class="m_-4177365754719978128m_1178540729522149473gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:16px"><span class="m_-4177365754719978128m_1178540729522149473gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>


<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-4177365754719978128h5">On Fri, Jun 29, 2018 at 11:56 AM, Andrew Kren - NOAA Affiliate <span dir="ltr"><<a href="mailto:andrew.kren@noaa.gov" target="_blank">andrew.kren@noaa.gov</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-4177365754719978128h5"><div dir="ltr">Dear ncl-talk,<div><br></div><div>I'm trying to regrid from an unstructured grid of temperature and moisture retrievals from an aircraft. The data are a function of (lev,time), with each time corresponding to a different lat/lon location. I wrote some code to regrid to a triangular mesh using ESMF, but ran into some issues. I got this error:</div><div><br></div><div>




<span></span>





<p class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-Apple-tab-span" style="white-space:pre-wrap">  </span>get_src_grid_info: source lat dims = (14398)</span></p>
<p class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-Apple-tab-span" style="white-space:pre-wrap">  </span>get_src_grid_info: source lon dims = (14398)</span></p>
<p class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-Apple-tab-span" style="white-space:pre-wrap">  </span>get_src_grid_info: SrcGridType and/or SrcGridLat/SrcGridLon were not set.</span></p>
<p class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-Apple-tab-span" style="white-space:pre-wrap">  </span><span class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail-Apple-converted-space">          </span>Cannot determine the source grid type.</span></p>


<div><br></div>I have attached my code and a sample file it reads. I am confused b/c I am setting the SrcGridLat and Lon explicitly. </div><div><br></div><div>Thanks,<span class="m_-4177365754719978128m_1178540729522149473HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div class="m_-4177365754719978128m_1178540729522149473m_-7136850941613557202gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren<br>Assistant Scientist<br>CIMAS - NOAA/AOML<br><span><font color="#888888">314-322-0867</font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div></div>
<br></div></div>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><span class="m_-4177365754719978128HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-4177365754719978128m_1178540729522149473gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Dr. Anil Kumar<div><span style="font-size:12.8px">NWS/NCEP/EMC, </span>Office# 2875</div><div><span style="font-size:12.8px">NOAA Center for Weather and Climate Prediction (NCWCP)</span></div><div><a href="https://maps.google.com/?q=5830+UNIVERSITY+RESEARCH+CT+College+Park,+MD+20740&entry=gmail&source=g" target="_blank">5830 UNIVERSITY RESEARCH CT</a></div><div><a href="https://maps.google.com/?q=5830+UNIVERSITY+RESEARCH+CT+College+Park,+MD+20740&entry=gmail&source=g" target="_blank">College Park, MD 20740</a>-3818</div><div>301-683-0494</div><div><a href="mailto:anil.kumar@noaa.gov" target="_blank">anil.kumar@noaa.gov</a></div><div><br></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-4177365754719978128gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>Andrew Kren<br>Assistant Scientist<br>CIMAS - NOAA/AOML<br><span><font color="#888888">314-322-0867</font></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Dr. Anil Kumar<div><span style="font-size:12.8px">NWS/NCEP/EMC, </span>Office# 2875</div><div><span style="font-size:12.8px">NOAA Center for Weather and Climate Prediction (NCWCP)</span></div><div>5830 UNIVERSITY RESEARCH CT</div><div>College Park, MD 20740-3818</div><div>301-683-0494</div><div><a href="mailto:anil.kumar@noaa.gov" target="_blank">anil.kumar@noaa.gov</a></div><div><br></div></div></div></div></div></div></div>
</div>