Skip to content

Commit 64ffe40

Browse files
authored
Add individual correction metadata to CSLC-S1 (#156)
* Allocate flattening flags to true * Avoid mixing camel and snake case * Add individual correction flag to indicate which correction have been applied * Discriminate between wet and dry tropo corrections * Add azimuth SET flag placeholder
1 parent d4c8328 commit 64ffe40

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

src/compass/utils/h5_helpers.py

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,13 +567,34 @@ def metadata_to_h5group(parent_group, burst, cfg):
567567
add_dataset_and_attrs(burst_meta_group, meta_item)
568568

569569
# Add parameters group in processing information
570+
dry_tropo_corr = True if (cfg.weather_model_file is not None) and \
571+
('dry' in cfg.tropo_params.delay_type) else False
572+
wet_tropo_corr = True if (cfg.weather_model_file is not None) and \
573+
('wet' in cfg.tropo_params.delay_type) else False
574+
tec_corr = True if cfg.tec_file is not None else False
570575
par_meta_items = [
571-
Meta('ellipsoidalFlatteningApplied', cfg.geocoding_params.flatten,
572-
"If True, CSLC-S1 phase has been flatten with respect to a zero height ellipsoid",
573-
{'units':'unitless'}),
574-
Meta('topographicFlatteningApplied', cfg.geocoding_params.flatten,
575-
"If True, CSLC-S1 phase has been flatten with respect to topographic height using a DEM",
576-
{'units': 'unitless'}),
576+
Meta('ellipsoidal_flattening_applied', bool(cfg.geocoding_params.flatten),
577+
"If True, CSLC-S1 phase has been flatten with respect to a zero height ellipsoid"),
578+
Meta('topographic_flattening_applied', bool(cfg.geocoding_params.flatten),
579+
"If True, CSLC-S1 phase has been flatten with respect to topographic height using a DEM"),
580+
Meta('bistatic_delay_applied', bool(cfg.lut_params.enabled),
581+
"If True, bistatic delay timing correction has been applied"),
582+
Meta('azimuth_fm_rate_applied', bool(cfg.lut_params.enabled),
583+
"If True, azimuth FM-rate mismatch timing correction has been applied"),
584+
Meta('geometry_doppler_applied', bool(cfg.lut_params.enabled),
585+
"If True, geometry steering doppler timing correction has been applied"),
586+
Meta('los_solid_earth_tides_applied', bool(cfg.lut_params.enabled),
587+
"If True, solid Earth tides correction has been applied in slant range direction"),
588+
Meta('azimuth_solid_earth_tides_applied', False,
589+
"If True, solid Earth tides correction has been applied in azimuth direction"),
590+
Meta('static_troposphere_applied', bool(cfg.lut_params.enabled),
591+
"If True, troposphere correction based on a static model has been applied"),
592+
Meta('ionosphere_tec_applied', tec_corr,
593+
"If True, ionosphere correction based on TEC data has been applied"),
594+
Meta('dry_troposphere_weather_model_applied', dry_tropo_corr,
595+
"If True, dry troposphere correction based on weather model has been applied"),
596+
Meta('wet_troposphere_weather_model_applied', wet_tropo_corr,
597+
"If True, wet troposphere correction based on weather model has been applied")
577598
]
578599
par_meta_group = processing_group.require_group('parameters')
579600
for meta_item in par_meta_items:

0 commit comments

Comments
 (0)