Skip to content

Commit

Permalink
Merge pull request #208 from umr-lops/preserveNoisehistory
Browse files Browse the repository at this point in the history
make sure history for noise lut range and azimuth are not overwritten
  • Loading branch information
agrouaze authored May 16, 2024
2 parents 11cbec2 + 682063a commit 42b9ae1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/xsar/sentinel1_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ def __init__(self, dataset_id, resolution=None,

# noise levels LUTs
ds_noise_range = self.sar_meta.get_noise_range_raw
ds_noise_range.attrs['history'] = 'noise'
ds_noise_azi = self.sar_meta.get_noise_azi_raw

# antenna pattern
Expand All @@ -182,7 +181,6 @@ def __init__(self, dataset_id, resolution=None,
# 'noise_lut']) # patch applied here is distinct to same patch applied on interpolated noise LUT
ds_noise_range['noise_lut'] = self._patch_lut(ds_noise_range[
'noise_lut']) # patch applied here is distinct to same patch applied on interpolated noise LUT
ds_noise_azi.attrs['history'] = 'noise'

self.datatree = datatree.DataTree.from_dict({'measurement': DN_tmp, 'geolocation_annotation': geoloc,
'bursts': bu, 'FMrate': FM, 'doppler_estimate': dop,
Expand Down

0 comments on commit 42b9ae1

Please sign in to comment.