Skip to content

Commit

Permalink
rename complex_backscatter to SLC (opera-adt#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangJYu authored Dec 7, 2022
1 parent b5e9341 commit f74e294
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/compass/s1_geocode_slc.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ def run(cfg: GeoRunConfig):
ctype = h5py.h5t.py_create(np.complex64)
ctype.commit(geo_burst_h5['/'].id, np.string_('complex64'))

backscatter_group = geo_burst_h5.require_group('complex_backscatter')
backscatter_group = geo_burst_h5.require_group('SLC')
init_geocoded_dataset(backscatter_group, pol, geo_grid,
'complex64', f'{pol} geocoded SLC image')

# access the HDF5 dataset for a given frequency and polarization
dataset_path = f'/complex_backscatter/{pol}'
dataset_path = f'/SLC/{pol}'
gslc_dataset = geo_burst_h5[dataset_path]

# Construct the output raster directly from HDF5 dataset
Expand Down
2 changes: 1 addition & 1 deletion src/compass/utils/h5_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def poly1d_to_h5(group, poly1d_name, poly1d):
str(burst.burst_id),
{'description': 'Unique burst identification string (ESA convention)'})

dataset_path_template = f'HDF5:%FILE_PATH%://complex_backscatter/{burst.polarization}'
dataset_path_template = f'HDF5:%FILE_PATH%://SLC/{burst.polarization}'
geo_boundary = get_boundary_polygon(processing_group.file.filename, np.nan,
dataset_path_template)
center = geo_boundary.centroid
Expand Down
2 changes: 1 addition & 1 deletion src/compass/utils/validate_cslc.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _gdal_nfo_retrieve(path_h5):
slc: np.array
Array holding geocoded complex backscatter
"""
raster_key = 'complex_backscatter'
raster_key = 'SLC'

# Extract polarization with h5py
with h5py.File(path_h5) as h:
Expand Down

0 comments on commit f74e294

Please sign in to comment.