Download this notebook from github.


illustration of the default Impulse Response (IR) files from xsarslc

[1]:
import xsarslc.get_config_infos
from importlib import reload
reload(xsarslc.get_config_infos)
import holoviews as hv
hv.extension('bokeh')
import xarray as xr
import os
[2]:
lst_nc = []
for unit in ['S1A','S1B']:
    for sw in ['IW1','IW2','IW3']:
        fileir = xsarslc.get_config_infos.get_IR_file(unit=unit, subswath=sw)
        lst_nc.append(fileir)
        print(fileir)
/home1/datahome/agrouaze/sources/git/xsar_slc/xsarslc/auxdata/S1A_IRs_IW1.nc
/home1/datahome/agrouaze/sources/git/xsar_slc/xsarslc/auxdata/S1A_IRs_IW2.nc
/home1/datahome/agrouaze/sources/git/xsar_slc/xsarslc/auxdata/S1A_IRs_IW3.nc
/home1/datahome/agrouaze/sources/git/xsar_slc/xsarslc/auxdata/S1B_IRs_IW1.nc
/home1/datahome/agrouaze/sources/git/xsar_slc/xsarslc/auxdata/S1B_IRs_IW2.nc
/home1/datahome/agrouaze/sources/git/xsar_slc/xsarslc/auxdata/S1B_IRs_IW3.nc

display IR in range dimension

[3]:
vari =  'range_IR'
all_cu = []
filter_out = ['HH','HV','VH']
for ff in lst_nc:
    go = True
    for fi in filter_out:
        if fi in ff:
            print(ff,'filtered out with',fi)
            go = False
        else:
            pass
    if go:
        ds = xr.open_dataset(ff)

        tmpcu = hv.Curve(ds[vari],label=os.path.basename(ff)).opts(tools=['hover'],show_legend=True)
        all_cu.append(tmpcu)
print(len(all_cu))
hv.Overlay(all_cu).opts(width=1000,height=750,tools=['hover'],show_grid=True,show_legend=True)
6
[3]:

display IR in azimuth dimension

[4]:

vari = 'azimuth_IR' all_cu = [] filter_out = ['HH','HV','VH'] for ff in lst_nc: go = True for fi in filter_out: if fi in ff: print(ff,'filtered out with',fi) go = False else: pass if go: ds = xr.open_dataset(ff) tmpcu = hv.Curve(ds[vari],label=os.path.basename(ff)).opts(tools=['hover'],show_legend=True) all_cu.append(tmpcu) print(len(all_cu)) hv.Overlay(all_cu).opts(width=1000,height=750,tools=['hover'],show_grid=True,show_legend=True)
6
[4]: