[Git][debian-gis-team/xarray-safe-s1][upstream] New upstream version 2024.05.16
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Fri May 17 06:32:58 BST 2024
Antonio Valentino pushed to branch upstream at Debian GIS Project / xarray-safe-s1
Commits:
2b6065e9 by Antonio Valentino at 2024-05-17T05:23:00+00:00
New upstream version 2024.05.16
- - - - -
1 changed file:
- safe_s1/reader.py
Changes:
=====================================
safe_s1/reader.py
=====================================
@@ -112,7 +112,7 @@ class Sentinel1Reader:
assert self.dt==self.datatree
else:
print('multidataset')
- # raise Exception()
+ # there is no error raised here, because we want to let the user access the metadata for multidatasets
def load_digital_number(self, resolution=None, chunks=None, resampling=rasterio.enums.Resampling.rms):
"""
@@ -646,6 +646,7 @@ class Sentinel1Reader:
"""
tmp = []
pols = []
+ history = []
for pol_code, xml_file in self.files['noise'].items():
#pol = self.files['polarization'].cat.categories[pol_code - 1]
pol = os.path.basename(xml_file).split('-')[4].upper()
@@ -657,8 +658,10 @@ class Sentinel1Reader:
hihi = self.xml_parser.get_var(self.files['noise'].iloc[0], 'noise.range.%s' % varitmp,
describe=True)
noise_lut_range_raw_ds[vari].attrs['description'] = hihi
+ history.append(self.xml_parser.get_compound_var(xml_file, 'noise_lut_range_raw', describe=True))
tmp.append(noise_lut_range_raw_ds)
ds = xr.concat(tmp, pd.Index(pols, name="pol"))
+ ds.attrs['history'] = '\n'.join(history)
return ds
def get_noise_azi_initial_parameters(self, pol):
View it on GitLab: https://salsa.debian.org/debian-gis-team/xarray-safe-s1/-/commit/2b6065e9e2ac396f67877b62bc080ad52c4e6bdc
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/xarray-safe-s1/-/commit/2b6065e9e2ac396f67877b62bc080ad52c4e6bdc
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240517/63a250cc/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list