<div dir="ltr"><div><div><div>Hi, <br></div>Please help me to select the same region from the two different files. <br></div>I want to have the region1 selection for both the files. I am not able to set the same region1 for Merra data. <br></div>Thanks<br><div><div><div><div><br>begin<br>;************************************************<br>; create pointer to file and read in temperature<br>;************************************************<br>   diri = "./"<br>   fili1 = "MERRA2_300.tavg1_2d_int_Nx.20040926.nc4"<br>   fili = "<a href="http://tmp2m.2012050218.time.nc">tmp2m.2012050218.time.nc</a>"<br>   in  = addfile(diri+fili,"r")<br>   in1  = addfile(diri+fili1,"r")<br>print(in1)<br>lat_min =-180;;wrong region selection<br>  lat_max =180<br>  lon_min = 0<br>  lon_max = 138<br>;;;;Region1;;;;;;;;;;;;<br>lat_min =15<br>lat_max =40<br> lon_min = 180     <br> lon_max =  255<br>   tmp1  = in1->SWNETTOA(:,lat_min:lat_max,lon_min:lon_max)<br>   tmp  = in->TMP_P0_L103_GGA0(:,lat_min:lat_max,lon_min:lon_max)<br>printVarSummary(tmp1)<br>;   ts   = tmp(time|0:0,lat|:,lon|:)               ; reorder variable<br>;printVarSummary(ts)<br> ts = dim_avg_n_Wrap(tmp, 0 )<br> ts1 = dim_avg_n_Wrap(tmp1, 0 )</div><div><br></div><div>Variable: tmp1<br>Type: float<br>Total Size: 19961856 bytes<br>            4990464 values<br>Number of Dimensions: 3<br>Dimensions and sizes:    [time | 24] x [lat | 361] x [lon | 576]<br>Coordinates: <br>            time: [0..1380]<br>            lat: [ -90..  90]<br>            lon: [-180..179.375]<br>Number Of Attributes: 11<br>  long_name :    toa_net_downward_shortwave_flux<br>  units :    W m-2<br>  _FillValue :    1e+15<br>  missing_value :    1e+15<br>  fmissing_value :    1e+15<br>  scale_factor :     1<br>  add_offset :     0<br>  standard_name :    toa_net_downward_shortwave_flux<br>  vmax :    1e+15<br>  vmin :    -1e+15<br>  valid_range :    ( -1e+15, 1e+15 )<br></div></div></div></div></div>