Closed gjustin40 closed 1 year ago
Replace the subset
sbas.intf_ra2ll(disps_cum.sel(x=slice(9000,12000), y=slice(1800,2700)))
by
sbas.intf_ra2ll(disps_cum).sel(lon=slice(...,...), lat=slice(...,...))
Multi-looking is already applied:
# SRTM3 DEM resolution 3 sec, 90 m but use 60 m instead to follow NetCDF chunks size 512x512
decimator = sbas.pixel_decimator(resolution_meters=60, debug=True)
sbas.intf_parallel(pairs, wavelength=400, func=decimator)
Here resolution_meters=60 is the multi-looking window and it's performed as `da.coarsen({'y': 4, 'x': 4}, boundary='trim').mean()` (the window is 4x4 pixels because x pixels are already aggregated).
Hello!
I've attempted SBAS with my dataset and would like to know how to create a subset based on lon/lat coordinates. I referred to the example S1A_Stack_CPGF_T173.ipynb, and fortunately, it worked well with my data. In the example code, they used range and azimuth coordinates for cropping. However, the information I have is in lon/lat format. Is there a way to crop using lon/lat coordinates?
unwraps_detrend_subset = unwraps_detrend.sel(x=slice(9000,12000), y=slice(1800,2700))
Thanks