[Git][debian-gis-team/xarray-safe-s1][master] 5 commits: New upstream version 2023.12.07
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Dec 9 11:20:57 GMT 2023
Antonio Valentino pushed to branch master at Debian GIS Project / xarray-safe-s1
Commits:
b7c587c2 by Antonio Valentino at 2023-12-09T11:16:22+00:00
New upstream version 2023.12.07
- - - - -
755eda2b by Antonio Valentino at 2023-12-09T11:16:22+00:00
Update upstream source from tag 'upstream/2023.12.07'
Update to upstream version '2023.12.07'
with Debian dir ee5695186426665b9edde1c0118de8790a49b66f
- - - - -
b084f27c by Antonio Valentino at 2023-12-09T11:17:06+00:00
New upstream release
- - - - -
13d95709 by Antonio Valentino at 2023-12-09T11:19:55+00:00
New d/python3-xarray-safe-s1.lintian-overrides file
- - - - -
2bc80342 by Antonio Valentino at 2023-12-09T11:20:27+00:00
Set distribution to unstable
- - - - -
3 changed files:
- .github/workflows/publish.yml
- debian/changelog
- safe_s1/sentinel1_xml_mappings.py
Changes:
=====================================
.github/workflows/publish.yml
=====================================
@@ -12,7 +12,7 @@ jobs:
contents: 'read'
id-token: 'write'
steps:
- - uses: actions/checkout at v3
+ - uses: actions/checkout at v4
- name: Set up Python
uses: actions/setup-python at v4
with:
@@ -28,7 +28,7 @@ jobs:
twine check dist/*
pip install dist/*.whl
- name: Publish to PyPI
- uses: pypa/gh-action-pypi-publish at a56da0b891b3dc519c7ee3284aff1fad93cc8598
+ uses: pypa/gh-action-pypi-publish at 2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
with:
password: ${{ secrets.pypi_token }}
repository_url: https://upload.pypi.org/legacy/
=====================================
debian/changelog
=====================================
@@ -1,9 +1,13 @@
-xarray-safe-s1 (2023.06.13-3) UNRELEASED; urgency=medium
+xarray-safe-s1 (2023.12.07-1) unstable; urgency=medium
- * Team upload.
+ [ Bas Couwenberg ]
* Switch to dh-sequence-*.
- -- Bas Couwenberg <sebastic at debian.org> Wed, 30 Aug 2023 18:52:42 +0200
+ [ Antonio Valentino ]
+ * New upstream release.
+ * New d/python3-xarray-safe-s1.lintian-overrides file.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Sat, 09 Dec 2023 11:20:07 +0000
xarray-safe-s1 (2023.06.13-2) unstable; urgency=medium
=====================================
safe_s1/sentinel1_xml_mappings.py
=====================================
@@ -118,6 +118,7 @@ def or_ipf28(xpath):
return xpath
+
def list_poly_from_list_string_coords(str_coords_list):
footprints = []
for gmlpoly in str_coords_list:
@@ -187,7 +188,8 @@ xpath_mappings = {
'sample': (int_1Darray_from_string, '//calibration/calibrationVectorList/calibrationVector[1]/pixel'),
'sigma0_lut': (
float_2Darray_from_string_list, '//calibration/calibrationVectorList/calibrationVector/sigmaNought'),
- 'gamma0_lut': (float_2Darray_from_string_list, '//calibration/calibrationVectorList/calibrationVector/gamma')
+ 'gamma0_lut': (float_2Darray_from_string_list, '//calibration/calibrationVectorList/calibrationVector/gamma'),
+ 'azimuthTime': (datetime64_array, '/calibration/calibrationVectorList/calibrationVector/azimuthTime')
},
'noise': {
'mode': (scalar, '/noise/adsHeader/mode'),
@@ -198,7 +200,8 @@ xpath_mappings = {
or_ipf28('/noise/noiseRangeVectorList/noiseRangeVector/pixel')),
'noiseLut': (
lambda x: [np.fromstring(s, dtype=float, sep=' ') for s in x],
- or_ipf28('/noise/noiseRangeVectorList/noiseRangeVector/noiseRangeLut'))
+ or_ipf28('/noise/noiseRangeVectorList/noiseRangeVector/noiseRangeLut')),
+ 'azimuthTime': (datetime64_array, '/noise/noiseRangeVectorList/noiseRangeVector/azimuthTime')
},
'azi': {
'swath': '/noise/noiseAzimuthVectorList/noiseAzimuthVector/swath',
@@ -309,17 +312,19 @@ xpath_mappings = {
}
-def signal_lut_raw(line, sample, lut_sigma0, lut_gamma0):
+def signal_lut_raw(line, sample, lut_sigma0, lut_gamma0,azimuth_times):
ds = xr.Dataset()
ds['sigma0_lut'] = xr.DataArray(lut_sigma0, dims=['line', 'sample'], coords={'line': line, 'sample': sample},
name='sigma0', attrs={'description': 'look up table sigma0'})
ds['gamma0_lut'] = xr.DataArray(lut_gamma0, dims=['line', 'sample'], coords={'line': line, 'sample': sample},
name='gamma0', attrs={'description': 'look up table gamma0'})
+ ds['azimuthTime'] = xr.DataArray(azimuth_times, dims=['line'],coords={'line': line},
+ attrs={'description': 'azimuth times associated to the signal look up table'})
return ds
-def noise_lut_range_raw(lines, samples, noiseLuts):
+def noise_lut_range_raw(lines, samples, noiseLuts, azimuthTimes):
"""
Parameters
@@ -330,6 +335,8 @@ def noise_lut_range_raw(lines, samples, noiseLuts):
arrays of samples. list length is same as samples. each array define samples where lut is defined
noiseLuts: list of np.ndarray
arrays of luts. Same structure as samples.
+ azimuthTimes: np.ndarray
+ 1D array of azimuth dates associated to each lines of the noise range grid
Returns
-------
@@ -351,6 +358,10 @@ def noise_lut_range_raw(lines, samples, noiseLuts):
ds['noise_lut'] = xr.DataArray(tmp_noise,
coords={'line': lines, 'sample': samples[0][0:minimum_pts]},
dims=['line', 'sample'])
+ try:
+ ds['azimuthTime'] = xr.DataArray(azimuthTimes,coords={'line': lines},dims=['line'])
+ except: #for IPF2.72 for instance there is no azimuthTimes associated to the noise range LUT
+ ds['azimuthTime'] = xr.DataArray(np.ones(len(lines))*np.nan, coords={'line': lines}, dims=['line'])
# ds['sample'] = xr.DataArray(np.stack(normalized_samples), coords={'lines': lines, 'sample_index': np.arange(minimum_pts)},
# dims=['lines', 'sample_index'])
@@ -749,11 +760,12 @@ compounds_vars = {
},
'luts_raw': {
'func': signal_lut_raw,
- 'args': ('calibration.line', 'calibration.sample', 'calibration.sigma0_lut', 'calibration.gamma0_lut')
+ 'args': ('calibration.line', 'calibration.sample', 'calibration.sigma0_lut', 'calibration.gamma0_lut',
+ 'calibration.azimuthTime')
},
'noise_lut_range_raw': {
'func': noise_lut_range_raw,
- 'args': ('noise.range.line', 'noise.range.sample', 'noise.range.noiseLut')
+ 'args': ('noise.range.line', 'noise.range.sample', 'noise.range.noiseLut', 'noise.range.azimuthTime')
},
'noise_lut_azi_raw_grd': {
'func': noise_lut_azi_raw_grd,
View it on GitLab: https://salsa.debian.org/debian-gis-team/xarray-safe-s1/-/compare/7c5e49159167b135a03b35b43f22c91939693563...2bc80342c03051a489103fbd074aa2189de851ac
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/xarray-safe-s1/-/compare/7c5e49159167b135a03b35b43f22c91939693563...2bc80342c03051a489103fbd074aa2189de851ac
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/20231209/e4f76920/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list