Skip to content

Commit be423af

Browse files
gshiromaGitHub Enterprise
authored andcommitted
Update remaining runconfig parameters from camel case to snake case (#959)
* update remaining runconfig parameters from camel case to snake case * update the struct names in focus.py to match Geometry to geometry
1 parent ef8c25e commit be423af

15 files changed

+76
-76
lines changed

python/packages/nisar/workflows/focus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,8 @@ def focus(runconfig):
564564
if attitude:
565565
slc.set_attitude(attitude, orbit.reference_epoch)
566566
slc.copy_identification(raw, polygon=polygon,
567-
track=cfg.Geometry.relative_orbit_number,
568-
frame=cfg.Geometry.frame_number,
567+
track=cfg.geometry.relative_orbit_number,
568+
frame=cfg.geometry.frame_number,
569569
start_time=ogrid["A"].sensing_datetime(0),
570570
end_time=ogrid["A"].sensing_datetime(ogrid["A"].length - 1))
571571

share/nisar/defaults/focus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ runconfig:
5656
# Handy to set to "SLC" until other ISCE tools updated.
5757
product_type: RSLC
5858

59-
Geometry:
59+
geometry:
6060
relative_orbit_number: 1
6161
frame_number: 1
6262

share/nisar/examples/slc_workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ runconfig:
5555
primary_executable:
5656
product_type: RSLC
5757

58-
Geometry:
58+
geometry:
5959
relative_orbit_number: 1
6060
frame_number: 150
6161

share/nisar/schemas/focus.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ runconfig:
5454
product_type: str()
5555
composite_release_id: regex(r'\w\d\d\d\d\d', name='CRID')
5656
processing_type: enum('PR', 'UR') # production, urgent response
57-
MissionId: enum('NISAR')
57+
mission_id: enum('NISAR')
5858
product_accuracy: enum('P', 'M', 'N', 'F', 'T')
5959
debug_level_group:
6060
debug_switch: bool()
61-
Geometry:
62-
CycleNumber: int(min=1, max=999)
61+
geometry:
62+
cycle_number: int(min=1, max=999)
6363
relative_orbit_number: int(min=1, max=173)
6464
frame_number: int(min=1, max=176)
65-
OrbitDirection: enum('Descending', 'Ascending')
66-
TrackFramePolygon: str(required=False)
67-
FullCoverageThresholdPercent: num(min=0.0, required=False)
65+
orbit_direction: enum('Descending', 'Ascending')
66+
track_frame_polygon: str(required=False)
67+
full_coverage_threshold_percent: num(min=0.0, required=False)
6868
worker:
6969
# Whether or not to use GPU, optional. Defaults to True if available.
7070
gpu_enabled: bool(required=False)

tools/imagesets/runconfigs/end2end_pair_ALPSRP110160680_ALPSRP116870680_Rosamond_rslc_ref.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ runconfig:
2525
primary_executable:
2626
product_type: RSLC
2727
composite_release_id: D00200
28-
MissionId: NISAR
28+
mission_id: NISAR
2929
processing_type: PR
3030
product_accuracy: P
3131
debug_level_group:
3232
debug_switch: false
33-
Geometry:
34-
CycleNumber: 1
33+
geometry:
34+
cycle_number: 1
3535
relative_orbit_number: 1
3636
frame_number: 1
37-
OrbitDirection: Ascending
38-
TrackFramePolygon: '{"type": "Polygon", "coordinates" : [[
37+
orbit_direction: Ascending
38+
track_frame_polygon: '{"type": "Polygon", "coordinates" : [[
3939
[-118.497451142052, 34.1199112182309],
4040
[-118.411141237238, 34.1328931495463],
4141
[-118.325806245573, 34.1456651751558],
@@ -78,7 +78,7 @@ runconfig:
7878
[-118.519274986419, 34.218647029132],
7979
[-118.497451142052, 34.1199112182309]]]
8080
}'
81-
FullCoverageThresholdPercent: 75.0
81+
full_coverage_threshold_percent: 75.0
8282
worker:
8383
gpu_enabled: true
8484
gpu_id: 0

tools/imagesets/runconfigs/end2end_pair_ALPSRP110160680_ALPSRP116870680_Rosamond_rslc_sec.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ runconfig:
2525
primary_executable:
2626
product_type: RSLC
2727
composite_release_id: D00200
28-
MissionId: NISAR
28+
mission_id: NISAR
2929
processing_type: PR
3030
product_accuracy: P
3131
debug_level_group:
3232
debug_switch: false
33-
Geometry:
34-
CycleNumber: 1
33+
geometry:
34+
cycle_number: 1
3535
relative_orbit_number: 1
3636
frame_number: 1
37-
OrbitDirection: Ascending
38-
TrackFramePolygon: '{"type": "Polygon", "coordinates" : [[
37+
orbit_direction: Ascending
38+
track_frame_polygon: '{"type": "Polygon", "coordinates" : [[
3939
[-118.494045678471, 34.1198833322943],
4040
[-118.407721743711, 34.1328597142333],
4141
[-118.322373469636, 34.1456261493881],
@@ -78,7 +78,7 @@ runconfig:
7878
[-118.515854392186, 34.2186509505216],
7979
[-118.494045678471, 34.1198833322943]]]
8080
}'
81-
FullCoverageThresholdPercent: 75.0
81+
full_coverage_threshold_percent: 75.0
8282
worker:
8383
gpu_enabled: true
8484
gpu_id: 0

tools/imagesets/runconfigs/end2end_pair_ALPSRP262866750_ALPSRP269576750_Chile_rslc_ref.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ runconfig:
2525
primary_executable:
2626
product_type: RSLC
2727
composite_release_id: D00200
28-
MissionId: NISAR
28+
mission_id: NISAR
2929
processing_type: PR
3030
product_accuracy: P
3131
debug_level_group:
3232
debug_switch: false
33-
Geometry:
34-
CycleNumber: 1
33+
geometry:
34+
cycle_number: 1
3535
relative_orbit_number: 1
3636
frame_number: 1
37-
OrbitDirection: Ascending
38-
TrackFramePolygon: '{"type": "Polygon", "coordinates" : [[
37+
orbit_direction: Ascending
38+
track_frame_polygon: '{"type": "Polygon", "coordinates" : [[
3939
[-68.1893955973867, -21.943952177674],
4040
[-68.113591144119, -21.9262772692904],
4141
[-68.0386718155604, -21.9087702941051],
@@ -78,7 +78,7 @@ runconfig:
7878
[-68.215251992181, -21.8455674476941],
7979
[-68.1893955973867, -21.943952177674]]]
8080
}'
81-
FullCoverageThresholdPercent: 75.0
81+
full_coverage_threshold_percent: 75.0
8282
worker:
8383
gpu_enabled: true
8484
gpu_id: 0

tools/imagesets/runconfigs/end2end_pair_ALPSRP262866750_ALPSRP269576750_Chile_rslc_sec.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ runconfig:
2525
primary_executable:
2626
product_type: RSLC
2727
composite_release_id: D00200
28-
MissionId: NISAR
28+
mission_id: NISAR
2929
processing_type: PR
3030
product_accuracy: P
3131
debug_level_group:
3232
debug_switch: false
33-
Geometry:
34-
CycleNumber: 1
33+
geometry:
34+
cycle_number: 1
3535
relative_orbit_number: 1
3636
frame_number: 1
37-
OrbitDirection: Ascending
38-
TrackFramePolygon: '{"type": "Polygon", "coordinates" : [[
37+
orbit_direction: Ascending
38+
track_frame_polygon: '{"type": "Polygon", "coordinates" : [[
3939
[-68.1914812891183, -21.9450716883908],
4040
[-68.1156573726063, -21.9274132197719],
4141
[-68.0407192606459, -21.9099225763898],
@@ -78,7 +78,7 @@ runconfig:
7878
[-68.2173368757781, -21.8466248657298],
7979
[-68.1914812891183, -21.9450716883908]]]
8080
}'
81-
FullCoverageThresholdPercent: 75.0
81+
full_coverage_threshold_percent: 75.0
8282
worker:
8383
gpu_enabled: true
8484
gpu_id: 0

tools/imagesets/runconfigs/rslc_ALPSRP037370690.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ runconfig:
4949
# Handy to set to "SLC" until other ISCE tools updated.
5050
product_type: RSLC
5151
composite_release_id: D00200
52-
MissionId: NISAR
52+
mission_id: NISAR
5353
processing_type: PR
5454
product_accuracy: P
5555
debug_level_group:
5656
debug_switch: false
57-
Geometry:
58-
CycleNumber: 1
57+
geometry:
58+
cycle_number: 1
5959
relative_orbit_number: 2
6060
frame_number: 4
61-
OrbitDirection: Ascending
62-
TrackFramePolygon: '{"type": "Polygon", "coordinates": []}'
63-
FullCoverageThresholdPercent: 75.0
61+
orbit_direction: Ascending
62+
track_frame_polygon: '{"type": "Polygon", "coordinates": []}'
63+
full_coverage_threshold_percent: 75.0
6464
# Whether or not to use GPU, optional. Defaults to True if available.
6565
worker:
6666
gpu_enabled: True

tools/imagesets/runconfigs/rslc_ALPSRP271200680.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ runconfig:
4949
# Handy to set to "SLC" until other ISCE tools updated.
5050
product_type: RSLC
5151
composite_release_id: D00200
52-
MissionId: NISAR
52+
mission_id: NISAR
5353
processing_type: PR
5454
product_accuracy: P
5555
debug_level_group:
5656
debug_switch: false
57-
Geometry:
58-
CycleNumber: 1
57+
geometry:
58+
cycle_number: 1
5959
relative_orbit_number: 2
6060
frame_number: 4
61-
OrbitDirection: Ascending
62-
TrackFramePolygon: '{"type": "Polygon", "coordinates": []}'
63-
FullCoverageThresholdPercent: 75.0
61+
orbit_direction: Ascending
62+
track_frame_polygon: '{"type": "Polygon", "coordinates": []}'
63+
full_coverage_threshold_percent: 75.0
6464
# Whether or not to use GPU, optional. Defaults to True if available.
6565
worker:
6666
gpu_enabled: True

0 commit comments

Comments
 (0)