<div dir="ltr"><div>I assume you are processing multiple GRIB2 files using <b>addfiles.</b></div><div>This is appropriate<b> </b>if the same grid is applicable to all files. <br></div><div><b>addfiles </b>will concatenate all the file times. You only need to use one grid.<br></div><div>--- <br></div><div>In the case of the HWRF grids (possibly) changing at each time step, you will have to step through the files manually. This means you will have to do some book-keeping.<br></div><div><br></div><div>  dirHWRF = "..."</div><div>  filHWRF  = "..."</div><div>  pthHWRF = dirHWRF + filHWRF</div><div>  nfil = dimsizes(filHWRF)</div><div><br></div><div>  SLAT =    ; one or more Sonde lat</div><div>  SLON =<br></div><div><br></div><div>  do nf=0,nfil-1</div><div>       f = addfile(pthHWRF(nf),"r")</div><div>       x = f->X</div><div>       xsonde(nf.....) =  <strong>linint2_points</strong>(x&lon_0, x&lat_0, False,SLAT,SLON 0)</div><div><br></div><div>     end do</div><div><br></div><div>Good Luck<br></div><div><b></b></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 3, 2019 at 1:19 PM Andrew Kren - NOAA Affiliate via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear ncl-talk,<div><br></div><div>I am working to interpolate a high-resolution model dataset (HWRF) to the time and location of a dropsonde location. In the past for other datasets, I have used linint1_n and linint2_points to interpolate in time and space to the dropsonde position.</div><div><br></div><div>However, HWRF, which is 6-hour analysis output, has a varying grid every 6 hours as the domain "moves" with the tropical cyclone. Hence, the lat/lon locations are not fixed in time. They have the same dimension sizes but the points vary depending on the cyclone center. This led to an error in my linint2_poi<font style="background-color:rgb(255,255,255)" face="arial, sans-serif" color="#000000">nts function:</font></div><div><font style="background-color:rgb(255,255,255)" face="arial, sans-serif" color="#000000"><br></font></div><div>





<p class="gmail-m_2763483926837424257gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-m_2763483926837424257gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000">fatal:linint2_points: If xi is not one-dimensional, then it must have one less dimension than fi</font></span></p><p class="gmail-m_2763483926837424257gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-m_2763483926837424257gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><br></font></span></p><p class="gmail-m_2763483926837424257gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-m_2763483926837424257gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><br></font></span></p><p class="gmail-m_2763483926837424257gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-m_2763483926837424257gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000">I know why this is happening. I read in two HWRF files around the dropsonde time to do the interpolation. I used "join" to join the files and my lat/lon arrays are (time, lat) and (time, lon). So I get the error. </font></span></p><p class="gmail-m_2763483926837424257gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-m_2763483926837424257gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><br></font></span></p><p class="gmail-m_2763483926837424257gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-m_2763483926837424257gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000">But my question is how best to proceed? This is technically not an unstructured grid, but could be considered one. Should I use ESMF?</font></span></p><p class="gmail-m_2763483926837424257gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-m_2763483926837424257gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000"><br></font></span></p><p class="gmail-m_2763483926837424257gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal"><span class="gmail-m_2763483926837424257gmail-s1" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(255,255,255)"><font face="arial, sans-serif" color="#000000">Thanks,</font></span></p><div><font style="background-color:rgb(255,255,255)" face="arial, sans-serif" color="#000000"><br></font></div><font style="background-color:rgb(255,255,255)" face="arial, sans-serif" color="#000000">-- <br></font><div dir="ltr" class="gmail-m_2763483926837424257gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font style="background-color:rgb(255,255,255)" face="arial, sans-serif" color="#000000">Andrew Kren<br>Assistant Scientist</font><br>University of Miami CIMAS - NOAA/AOML</div><div dir="ltr"><div><font style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif" color="#000000">Global Observing Systems Analysis (GOSA) Group</font></div><div><font style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif" color="#000000">NOAA/AOML Quantitative Observing System Assessment Program (QOSAP)</font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<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/mailman/listinfo/ncl-talk</a></blockquote></div>