<div dir="ltr">Dear NCL-experts,<div><br></div><div><b>Details:</b></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I am extracting the dates from a netcdf file, when multiple conditions are met. I am using NCL 6.6.2.</div><div dir="ltr"><br></div><div dir="ltr">The file that I am working with can be accessed from this link:</div><div dir="ltr"><a href="https://www.dropbox.com/s/cycpbdgxdzsdnbh/test_file_olr_wind_deform.nc?dl=0">https://www.dropbox.com/s/cycpbdgxdzsdnbh/test_file_olr_wind_deform.nc?dl=0</a><br></div><div dir="ltr"><br></div><div>This file contains 3 variables: OLR (short); uwnd(float); stretch_sph(float), with 123 timesteps.</div><div dir="ltr"><br></div><div>Attached is the script that I am using (date_filter.ncl).</div><div>Also attached is the time series of OLR for verification.</div><div><br></div><div><b>Conditions:</b></div><div>1. OLR < 240</div><div>2. uwnd < 0 </div><div>3. stretch_sph > 0</div><div><br></div><div><b>Problem/What I have so far:</b></div><div>I am filtering these variables using these lines:</div><div><br></div><div>      <i>latS = 13.0<br>      latN = 22.0<br>      lonL = 120.0<br>      lonR = 122.5<br></i></div><div><i><br></i></div><div dir="ltr"><i>      olr_region=olr(:,{latS:latN},{lonL:lonR})  </i></div><div dir="ltr"><i>      u_region=u(:,{latS:latN},{lonL:lonR})<br>      stretch_region=stretch(:,{latS:latN},{lonL:lonR})</i></div><div dir="ltr"><br></div><div dir="ltr"><i>      olr_threshold = 240<br>      olr_thres  = dim_min_n(olr_region,(/1,2/))   ;min at each time step<br><br>      uwnd_threshold = 0<br>      uwnd_thres  = dim_min_n(u_region,(/1,2/))   ;min at each time step<br><br>      stretch_threshold = 0<br>      stretch_thres  = dim_max_n(stretch_region,(/1,2/))   ;max at each time step<br><br>       n_thres  = ind((olr_thres .le. olr_threshold) .and. (uwnd_thres .le. uwnd_threshold) .and. </i></div><div dir="ltr"><i>      (stretch_thres .ge. stretch_threshold))</i><br><div><br></div><div>When I print the dates, I am getting a value at <b>19810419</b>, but the time series shows that the OLR value at this period is above 240; hence, not satisfying condition 1. I would like to ask for help on how to implement this correctly in NCL.</div><div><br></div><div><b>Expected output:</b></div><div>Netcdf or csv file containing the dates that satisfied the 3 conditions.</div><div><br></div><div><br></div><div>I'll appreciate any suggestions. </div><div>--</div><div>Lyndz</div></div></div></div></div></div></div></div></div></div></div></div>