Skip to content

Commit 2336120

Browse files
gshiromaGitHub Enterprise
authored andcommitted
Quick PR updating GCOV memory option (#990)
* rename GCOV memory option `geogrid_radar_grid` to `geogrid_and_radar_grid` * raise an error if memory mode is invalid
1 parent bfed63d commit 2336120

14 files changed

+18
-15
lines changed

python/packages/nisar/workflows/gcov_runconfig.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ def load(self):
3838
geocode_dict['memory_mode'] = isce3.geocode.GeocodeMemoryMode.SINGLE_BLOCK
3939
elif geocode_dict['memory_mode'] == 'geogrid':
4040
geocode_dict['memory_mode'] = isce3.geocode.GeocodeMemoryMode.BLOCKS_GEOGRID
41-
elif geocode_dict['memory_mode'] == 'geogrid_radargrid':
41+
elif geocode_dict['memory_mode'] == 'geogrid_and_radargrid':
4242
geocode_dict['memory_mode'] = isce3.geocode.GeocodeMemoryMode.BLOCKS_GEOGRID_AND_RADARGRID
43-
else:
43+
elif geocode_dict['memory_mode'] == 'auto':
4444
geocode_dict['memory_mode'] = isce3.geocode.GeocodeMemoryMode.AUTO
45+
else:
46+
err_msg = f"ERROR memory_mode: {geocode_dict['memory_mode']}"
47+
raise ValueError(err_msg)
4548

4649
rtc_output_type = rtc_dict['output_type']
4750
if rtc_output_type == 'sigma0':

share/nisar/defaults/gcov.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ runconfig:
115115
# OPTIONAL - Apply RTC
116116
apply_rtc: True
117117

118-
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_radargrid", and "auto" (default)
118+
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_and_radargrid", and "auto" (default)
119119
memory_mode:
120120

121121
# OPTIONAL - Processing upsampling factor applied to input geogrid

tools/imagesets/runconfigs/end2end_pair_ALPSRP110160680_ALPSRP116870680_Rosamond_gcov_ref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runconfig:
8585
# OPTIONAL -
8686
algorithm_type: area_projection
8787

88-
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_radargrid", and "auto" (default)
88+
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_and_radargrid", and "auto" (default)
8989
memory_mode:
9090

9191
# OPTIONAL - Processing upsampling factor applied to input geogrid

tools/imagesets/runconfigs/end2end_pair_ALPSRP110160680_ALPSRP116870680_Rosamond_gcov_sec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runconfig:
8585
# OPTIONAL -
8686
algorithm_type: area_projection
8787

88-
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_radargrid", and "auto" (default)
88+
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_and_radargrid", and "auto" (default)
8989
memory_mode:
9090

9191
# OPTIONAL - Processing upsampling factor applied to input geogrid

tools/imagesets/runconfigs/end2end_pair_ALPSRP262866750_ALPSRP269576750_Chile_gcov_ref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runconfig:
8585
# OPTIONAL -
8686
algorithm_type: area_projection
8787

88-
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_radargrid", and "auto" (default)
88+
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_and_radargrid", and "auto" (default)
8989
memory_mode:
9090

9191
# OPTIONAL - Processing upsampling factor applied to input geogrid

tools/imagesets/runconfigs/end2end_pair_ALPSRP262866750_ALPSRP269576750_Chile_gcov_sec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runconfig:
8585
# OPTIONAL -
8686
algorithm_type: area_projection
8787

88-
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_radargrid", and "auto" (default)
88+
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_and_radargrid", and "auto" (default)
8989
memory_mode:
9090

9191
# OPTIONAL - Processing upsampling factor applied to input geogrid

tools/imagesets/runconfigs/gcov_S1B_IW_SLC__1SDV_20180504T104507_20180504T104535_010770_013AEE_919F.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runconfig:
8585
# OPTIONAL -
8686
algorithm_type: area_projection
8787

88-
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_radargrid", and "auto" (default)
88+
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_and_radargrid", and "auto" (default)
8989
memory_mode: auto
9090

9191
# OPTIONAL - Processing upsampling factor applied to input geogrid

tools/imagesets/runconfigs/gcov_UAVSAR_NISARP_32039_19049_005_190717_L090_CX_129_03.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ runconfig:
8686
# OPTIONAL -
8787
algorithm_type: area_projection
8888

89-
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_radargrid", and "auto" (default)
89+
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_and_radargrid", and "auto" (default)
9090
memory_mode:
9191

9292
# OPTIONAL - Processing upsampling factor applied to input geogrid

tools/imagesets/runconfigs/gcov_UAVSAR_NISARP_32039_19052_004_190726_L090_CX_129_02.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ runconfig:
8686
# OPTIONAL -
8787
algorithm_type: area_projection
8888

89-
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_radargrid", and "auto" (default)
89+
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_and_radargrid", and "auto" (default)
9090
memory_mode:
9191

9292
# OPTIONAL - Processing upsampling factor applied to input geogrid

tools/imagesets/runconfigs/gcov_UAVSAR_SanAnd_05024_18038_006_180730_L090_CX_129_05.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ runconfig:
8686
# OPTIONAL -
8787
algorithm_type: area_projection
8888

89-
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_radargrid", and "auto" (default)
89+
# OPTIONAL - Choices: "single_block", "geogrid", "geogrid_and_radargrid", and "auto" (default)
9090
memory_mode:
9191

9292
# OPTIONAL - Processing upsampling factor applied to input geogrid

0 commit comments

Comments
 (0)