@@ -88,7 +88,7 @@ def get_window(win: Struct, msg=''):
88
88
89
89
90
90
def get_chirp (cfg : Struct , raw : Raw , frequency : str , tx : str ):
91
- if cfg .DynamicAncillaryFileGroup . Waveform :
91
+ if cfg .dynamic_ancillary_file_group . waveform :
92
92
log .warning ("Ignoring input waveform file. Using analytic chirp." )
93
93
chirp = raw .getChirp (frequency , tx )
94
94
log .info (f"Chirp length = { len (chirp )} " )
@@ -110,9 +110,9 @@ def parse_rangecomp_mode(mode: str):
110
110
111
111
def get_orbit (cfg : Struct ):
112
112
log .info ("Loading orbit" )
113
- if cfg .DynamicAncillaryFileGroup . Orbit :
113
+ if cfg .dynamic_ancillary_file_group . orbit :
114
114
log .warning ("Ignoring input orbit file. Using L0B orbits." )
115
- rawfiles = cfg .InputFileGroup . InputFilePath
115
+ rawfiles = cfg .input_file_group . input_file_path
116
116
if len (rawfiles ) > 1 :
117
117
raise NotImplementedError ("Can't concatenate orbit data." )
118
118
raw = open_rrsd (rawfiles [0 ])
@@ -121,9 +121,9 @@ def get_orbit(cfg: Struct):
121
121
122
122
def get_attitude (cfg : Struct ):
123
123
log .info ("Loading attitude" )
124
- if cfg .DynamicAncillaryFileGroup . Pointing :
124
+ if cfg .dynamic_ancillary_file_group . pointing :
125
125
log .warning ("Ignoring input pointing file. Using L0B attitude." )
126
- rawfiles = cfg .InputFileGroup . InputFilePath
126
+ rawfiles = cfg .input_file_group . input_file_path
127
127
if len (rawfiles ) > 1 :
128
128
raise NotImplementedError ("Can't concatenate attitude data." )
129
129
raw = open_rrsd (rawfiles [0 ])
@@ -194,7 +194,7 @@ def get_dem(cfg: Struct):
194
194
dem = isce3 .geometry .DEMInterpolator (
195
195
height = cfg .processing .dem .reference_height ,
196
196
method = cfg .processing .dem .interp_method )
197
- fn = cfg .DynamicAncillaryFileGroup . DEMFile
197
+ fn = cfg .dynamic_ancillary_file_group . dem_file
198
198
if fn :
199
199
log .info (f"Loading DEM { fn } " )
200
200
dem .load_dem (fn )
@@ -286,7 +286,7 @@ def make_doppler(cfg: Struct, frequency='A'):
286
286
dem = get_dem (cfg )
287
287
opt = cfg .processing .doppler
288
288
az = np .radians (opt .azimuth_boresight_deg )
289
- rawfiles = cfg .InputFileGroup . InputFilePath
289
+ rawfiles = cfg .input_file_group . input_file_path
290
290
291
291
fc , lut = make_doppler_lut (rawfiles ,
292
292
az = az , orbit = orbit , attitude = attitude ,
@@ -489,7 +489,7 @@ def get_range_deramp(grid: isce3.product.RadarGridParameters) -> np.ndarray:
489
489
def focus (runconfig ):
490
490
# Strip off two leading namespaces.
491
491
cfg = runconfig .runconfig .groups
492
- rawfiles = cfg .InputFileGroup . InputFilePath
492
+ rawfiles = cfg .input_file_group . input_file_path
493
493
if len (rawfiles ) <= 0 :
494
494
raise IOError ("need at least one raw data file" )
495
495
if len (rawfiles ) > 1 :
@@ -552,20 +552,20 @@ def focus(runconfig):
552
552
polygon = isce3 .geometry .get_geo_perimeter_wkt (ogrid ["A" ], orbit ,
553
553
zerodop , dem )
554
554
555
- output_slc_path = os .path .abspath (cfg .ProductPathGroup . SASOutputFile )
555
+ output_slc_path = os .path .abspath (cfg .product_path_group . sas_output_file )
556
556
557
557
output_dir = os .path .dirname (output_slc_path )
558
558
os .makedirs (output_dir , exist_ok = True )
559
559
560
- product = cfg .PrimaryExecutable . ProductType
560
+ product = cfg .primary_executable . product_type
561
561
log .info (f"Creating output { product } product { output_slc_path } " )
562
562
slc = SLC (output_slc_path , mode = "w" , product = product )
563
563
slc .set_orbit (orbit ) # TODO acceleration, orbitType
564
564
if attitude :
565
565
slc .set_attitude (attitude , orbit .reference_epoch )
566
566
slc .copy_identification (raw , polygon = polygon ,
567
- track = cfg .Geometry .RelativeOrbitNumber ,
568
- frame = cfg .Geometry .FrameNumber ,
567
+ track = cfg .Geometry .relative_orbit_number ,
568
+ frame = cfg .Geometry .frame_number ,
569
569
start_time = ogrid ["A" ].sensing_datetime (0 ),
570
570
end_time = ogrid ["A" ].sensing_datetime (ogrid ["A" ].length - 1 ))
571
571
@@ -592,7 +592,7 @@ def focus(runconfig):
592
592
** vars (cfg .processing .azcomp .geo2rdr ))
593
593
594
594
# Scratch directory for intermediate outputs
595
- scratch_dir = os .path .abspath (cfg .ProductPathGroup . ScratchPath )
595
+ scratch_dir = os .path .abspath (cfg .product_path_group . scratch_path )
596
596
os .makedirs (scratch_dir , exist_ok = True )
597
597
598
598
# main processing loop
@@ -724,7 +724,7 @@ def main(argv):
724
724
args = yaml_parser .parse ()
725
725
configure_logging ()
726
726
cfg = validate_config (load_config (args .run_config_path ))
727
- echofile = cfg .runconfig .groups .ProductPathGroup . SASConfigFile
727
+ echofile = cfg .runconfig .groups .product_path_group . sas_config_file
728
728
if echofile :
729
729
log .info (f"Logging configuration to file { echofile } ." )
730
730
dump_config (cfg , echofile )
0 commit comments