Skip to content

S1 RTC Local Resolution Weighting #234

Discussion options

You must be logged in to vote

Dear @alexisahedo,
pyroSAR and S1_NRB do not directly offer an implementation but it is not too hard to achieve. With S1_NRB output it is pretty easy using STAC and xarray:

import stackstac
import rioxarray
import numpy as np
from S1_NRB.metadata.stac import make_catalog

# create a STAC catalog from a directory with S1-NRB products
target = '/path/to/s1-nrb/products'
nrb_catalog = make_catalog(directory=target, silent=True)

# load the STAC items into an xarray object
ds = stackstac.stack(items=nrb_catalog,
                     dtype=np.dtype('float32'),
                     chunksize=(-1, 1, 1024, 1024),
                     xy_coords='center')

# get the linear-scaled gamma nought RTC …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alexisahedo
Comment options

@johntruckenbrodt
Comment options

Answer selected by alexisahedo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants