Skip to content

Commit 1e9f2e4

Browse files
committed
simplify parameter names
1 parent 1adb321 commit 1e9f2e4

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

python/packages/nisar/workflows/static.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ def run_static_layers_workflow(config_file: os.PathLike | str) -> None:
117117
radar_grid_spacing_params = radar_grid_params["spacing"]
118118
az_spacing = radar_grid_spacing_params["az_spacing"]
119119
rg_spacing = radar_grid_spacing_params["rg_spacing"]
120-
az_decimation_to_compute_layover_shadow_mask = \
120+
layover_shadow_mask_az_decimation = \
121121
radar_grid_spacing_params[
122-
'az_decimation_to_compute_layover_shadow_mask']
123-
rg_decimation_to_compute_layover_shadow_mask = \
122+
'layover_shadow_mask_az_decimation']
123+
layover_shadow_mask_rg_decimation = \
124124
radar_grid_spacing_params[
125-
'rg_decimation_to_compute_layover_shadow_mask']
125+
'layover_shadow_mask_rg_decimation']
126126

127127
pts_per_side = radar_grid_spacing_params["pts_per_side"]
128128

@@ -300,8 +300,8 @@ def run_static_layers_workflow(config_file: os.PathLike | str) -> None:
300300
# Results are stored as GeoTIFF files in the scratch directory.
301301
logger.info("Compute geocoded layover/shadow mask layer")
302302
radar_grid_multilooked = radar_grid.multilook(
303-
az_decimation_to_compute_layover_shadow_mask,
304-
rg_decimation_to_compute_layover_shadow_mask
303+
layover_shadow_mask_az_decimation,
304+
layover_shadow_mask_rg_decimation
305305
)
306306
geocode_params = processing_params["geocode"]
307307
with log_elapsed_time(logger.info,

share/nisar/defaults/static.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ runconfig:
250250
# Defaults to 5.
251251
pts_per_side: 5
252252
# [OPTIONAL] Azimuth decimation factor to compute the layover shadow mask.
253-
az_decimation_to_compute_layover_shadow_mask: 1
253+
layover_shadow_mask_az_decimation: 1
254254
# [OPTIONAL] Range decimation factor to compute the layover shadow mask.
255-
rg_decimation_to_compute_layover_shadow_mask: 1
255+
layover_shadow_mask_rg_decimation: 1
256256
bounding_box:
257257
# [OPTIONAL] Azimuth start UTC date and time of the start of the radar
258258
# observation, as a string in ISO 8601 format with up to nanosecond precision.

share/nisar/schemas/static.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ radar_grid_spacing_options:
9999
az_spacing: num(min=0.0, required=False)
100100
rg_spacing: num(min=0.0, required=False)
101101
pts_per_side: int(min=2, required=False)
102-
az_decimation_to_compute_layover_shadow_mask: int(min=1, required=False)
103-
rg_decimation_to_compute_layover_shadow_mask: int(min=1, required=False)
102+
layover_shadow_mask_az_decimation: int(min=1, required=False)
103+
layover_shadow_mask_rg_decimation: int(min=1, required=False)
104104

105105
radar_grid_bounding_box_options:
106106
start_time: any(

0 commit comments

Comments
 (0)