<div dir="ltr"><div><div><div>Please look at the function documantation. <br><br>  <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/linint2_points_Wrap.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/linint2_points_Wrap.shtml</a><br><br></div>See attached script<br><br></div>Output:<br><br>Variable: to<br>Type: float<br>Total Size: 384 bytes<br>            96 values<br>Number of Dimensions: 2<br>Dimensions and sizes:    [month | 12] x [pts | 8]<br>Coordinates: <br>            month: [0..11]<br>            pts: [0..7]<br></div>[SNIP]<br><div>  xcoord :    ( 237.7, 238.9, 241.6, 243.7, 247.3, 249, 253.7, 254.7 )<br>  ycoord :    ( 27.9, 29.7, 33.9, 37.8, 39, 43.2, 44.3, 45.6 )<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 14, 2015 at 9:25 AM, amit timilsina <span dir="ltr">&lt;<a href="mailto:timilsinaamit87@huskers.unl.edu" target="_blank">timilsinaamit87@huskers.unl.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
Here I am looking for getting variable (tasmin_diff) values for eight different locations. I was expecting 12 different month tasmin_diff values for each of these eight location. But with the syntax used, it resulted other latitude and longitude combination values as well. Since I have many locations, it would be difficult to look each index combination one by one. Is there any way to get only the value for specified location only or not in combination of provided latitude and longitude using NCL?<br>
<br>
ncl 0&gt; a=addfile(&quot;<a href="http://original_file.nc" rel="noreferrer" target="_blank">original_file.nc</a>&quot;,&quot;r&quot;)<br>
ncl 1&gt; lat=a&amp;lat<br>
ncl 2&gt; lon=a&amp;lon<br>
ncl 3&gt; b=a-&gt;tasmin_diff<br>
ncl 4&gt; rlat=(/27.9, 29.7, 33.9, 37.8, 39.0,43.2,44.3,45.6/)<br>
ncl 5&gt; rlon=(/ 237.7, 238.9, 241.6, 243.7, 247.3, 249.0,253.7, 254.7/)<br>
ncl 6&gt; i_rlat = ind_nearest_coord (rlat, lat, 0)<br>
ncl 7&gt; i_rlon= ind_nearest_coord (rlon, lon, 0)<br>
ncl 8&gt; m=i_rlat<br>
ncl 9&gt; n=i_rlon<br>
ncl 10&gt; c=a-&gt;tasmin_diff(:,m,n)<br>
ncl 11&gt; print(c)<br>
<br>
<br>
Variable: c<br>
Type: float<br>
Total Size: 3072 bytes<br>
            768 values<br>
Number of Dimensions: 3<br>
Dimensions and sizes:   [month | 12] x [lat | 8] x [lon | 8]<br>
Coordinates:<br>
            month: [0..11]<br>
            lat: [27.04623985290527..45.69869232177734]<br>
            lon: [238.125.. 255]<br>
Number Of Attributes: 13<br>
  missing_value :       1e+20<br>
  info :        function clmMonLLT: contributed.ncl<br>
  time_op_ncl : Climatology: 30 years<br>
  associated_files :    baseURL: <a href="http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation" rel="noreferrer" target="_blank">http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation</a> gridspecFile: gridspec_atmos_fx_MPI-ESM-LR_decadal1980_r0i0p0.nc areacella: areacella_fx_MPI-ESM-LR_decadal1980_r0i0p0.nc<br>
  coordinates : height<br>
  history :     2011-11-09T08:48:40Z altered by CMOR: Treated scalar dimension: &#39;height&#39;.<br>
  cell_measures :       area: areacella<br>
  cell_methods :        time: minimum within days time: mean over days<br>
  units :       K<br>
  comment :     monthly mean of the daily-minimum near-surface air temperature.<br>
  long_name :   Daily Minimum Near-Surface<br>
<br>
<br>
<br>
Regards,<br>
Amit Timilsina<br>
University of Nebraska Lincoln<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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><br>
<br></blockquote></div><br></div>