<div dir="ltr"><div><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/getind_latlon2d.shtml"><b>getind_latlon2d </b></a></div><div><br></div><div>A modification of Example 1</div><div><br></div><div><pre> f     = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml"><strong>addfile</strong></a>("<a href="http://Yazd-2019_DUST01.2019010100.nc">Yazd-2019_DUST01.2019010100.nc</a>" , "r")
  lat2d = f->xlat
  lon2d = f->xlon

  <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/printVarSummary.shtml"><strong>printVarSummary</strong></a>(lat2d)
  <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/printMinMax.shtml"><strong>printMinMax</strong></a>(lat2d, 0)
  <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/printMinMax.shtml"><strong>printMinMax</strong></a>(lon2d, 0)

  lat   = (/  31.0 ,  17.31, 24.05   /)   ; user specified coordinate pairs
  lon   = (/ -86.45,-101.00,-92.46   /)
                                          ; return 2d subscripts
  nm = <strong>getind_latlon2d</strong> (lat2d,lon2d, lat, lon)

  <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/print.shtml"><strong>print</strong></a>(nm)<br><br></pre><pre>  X = f->mixrat              ; (time, kz, iy, jx)<br>  Y = d->ddflx               ; (time, iy, jx)<br><br></pre><pre>  nt =     .... the index some specified time<br></pre><pre>  kl =     ... index<br></pre><pre> do k=0,<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dimsizes.shtml"><strong>dimsizes</strong></a>(lat)-1
     n = nm(k,0)
     m = nm(k,1)<br></pre><pre>     x = X(nt,kl,n,m)<br>     y = Y(nt,n,m)<br></pre><pre>     <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/print.shtml"><strong>print</strong></a>(lat2d(n,m)+"   "+lon2d(n,m)+"  "+x+"   "+y)
  end do<br><br></pre><pre>  <br></pre></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 28, 2020 at 10:16 AM Setareh Rahimi via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.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 all,<div><br></div><div>I need to extract data (it could be any variable like temperature, wind ...) for a specific point (say synoptic stations) at a specific day and time </div><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/105vU4Hx2sRjvWlsmRBKOxa97kXp8Cx1_/view?usp=drive_web" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration-line:none;padding:1px 0px;border:medium none" target="_blank"><img style="vertical-align: bottom; border: medium none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="vertical-align:bottom;text-decoration:none">Yazd-2019_DUST01.2019010100.nc</span></a><img style="opacity: 0.55; float: right; display: none;"></div><div>( Jan-03- 00:00 UTC), from a model output (file attached).  I wonder how it could be achieved using NCL (any example...) .</div><div><br clear="all"><div>I appreciate any suggestion,</div><div>Best wishes,</div>-- <br><div dir="ltr">S.Rahimi<br><br></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>