Skip to content

Commit

Permalink
Fixing typos for s1_cslc_radar and s1_resample (#224)
Browse files Browse the repository at this point in the history
* Fixing typo

* Removing unwanted parameter in get_ref_radar_grid_info function

* Adding some options to rdr2geo

* Adding options in the defaults yaml
  • Loading branch information
mfangaritav authored Dec 16, 2024
1 parent 16a3c1d commit 743fe6d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/compass/defaults/s1_cslc_radar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ runconfig:
compute_local_incidence_angle: False
# Enable/disable azimuth angle output
compute_azimuth_angle: False
compute_ground_to_sat_east: False
compute_ground_to_sat_north: False
geo2rdr:
lines_per_block: 1000
threshold: 1.0e-8
Expand Down
2 changes: 1 addition & 1 deletion src/compass/s1_resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run(cfg: dict):
az_off_raster = isce3.io.Raster(f'{offset_path}/azimuth.off')

# Get original SLC as raster object
sec_burst_path = f'{out_paths.scratch_directory}/{out_paths.fname_pol}.slc.vrt'
sec_burst_path = f'{out_paths.scratch_directory}/{out_paths.file_name_pol}.slc.vrt'
burst.slc_to_vrt_file(sec_burst_path)
original_raster = isce3.io.Raster(sec_burst_path)

Expand Down
2 changes: 2 additions & 0 deletions src/compass/schemas/s1_cslc_radar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ rdr2geo_options:
compute_local_incidence_angle: bool(required=False)
# Enable/disable azimuth angle output
compute_azimuth_angle: bool(required=False)
compute_ground_to_sat_east: bool(required=False)
compute_ground_to_sat_north: bool(required=False)

resample_options:
# Lines per block to process in batch
Expand Down
3 changes: 1 addition & 2 deletions src/compass/utils/runconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,7 @@ def load_from_yaml(cls, yaml_runconfig: str,
ref_rdr_grid_info = None
if not sns.input_file_group.reference_burst.is_reference:
ref_rdr_grid_info = get_ref_radar_grid_info(
sns.input_file_group.reference_burst.file_path,
sns.input_file_group.burst_id)
sns.input_file_group.reference_burst.file_path)

# For saving entire file with defaults filled-in as string to metadata.
# Stop gap for writing dict to individual elements to HDF5 metadata
Expand Down

0 comments on commit 743fe6d

Please sign in to comment.