<div dir="ltr">Hello,<div><br></div><div>I am trying to find corresponding ij for lat-lon pair from NARR data using <b>getind_latlon2d</b> command, but the values are wrong. </div><div><br></div><div>Please advise.</div><div><br></div><div>thanks,</div><div>Ashish</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> minlat = 37.37814</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> maxlat = 46.64286</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> minlon = -98.91251</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> maxlon = -73.89026</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">;=================================================;</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">f3 = addfile("<a href="http://land.nc">land.nc</a>","r")</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> lat2d_narr = f3->lat ; (277,349)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> lon2d_narr = f3->lon</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> printMinMax(lat2d_narr, 0)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> printMinMax(lon2d_narr, 0)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> lat = (/ minlat,maxlat /) ; user specified coordinate pairs</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> lon = (/minlon,maxlon /)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> nm = <b>getind_latlon2d</b> (lat2d_narr,lon2d_narr, lat, lon)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> print(nm)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> iStrt = nm(0,0)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> jStrt = nm(0,1)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> iLast = nm(1,0)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> jLast = nm(1,1)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p></div></div>