[Git][debian-gis-team/xsar][upstream] New upstream version 2024.07.30
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Tue Jul 30 21:01:00 BST 2024
Antonio Valentino pushed to branch upstream at Debian GIS Project / xsar
Commits:
988cb966 by Antonio Valentino at 2024-07-30T19:52:12+00:00
New upstream version 2024.07.30
- - - - -
5 changed files:
- .git_archival.txt
- src/xsar/base_dataset.py
- src/xsar/radarsat2_dataset.py
- src/xsar/rcm_dataset.py
- src/xsar/sentinel1_dataset.py
Changes:
=====================================
.git_archival.txt
=====================================
@@ -1 +1 @@
-ref-names: HEAD -> develop, tag: 2024.06.24
\ No newline at end of file
+ref-names: HEAD -> develop, tag: 2024.07.30
\ No newline at end of file
=====================================
src/xsar/base_dataset.py
=====================================
@@ -1,3 +1,4 @@
+import pdb
import warnings
from abc import ABC
from datetime import datetime
@@ -300,10 +301,12 @@ class BaseDataset(ABC):
# lon_s = lon_s.values
# lat_s = lat_s.values
cpt = 0
- for line in line_decimated:
- for sample in sample_decimated:
+ for line in line_decimated.astype(int):
+ for sample in sample_decimated.astype(int):
irow = np.argmin(np.abs(self.dataset.line.values - line))
+ irow = int(irow)
icol = np.argmin(np.abs(self.dataset.sample.values - sample))
+ icol = int(icol)
# if self.s1meta.product == 'SLC':
# #lon, lat = self.coords2ll_SLC(line,sample)
# lon = lon_s[cpt]
=====================================
src/xsar/radarsat2_dataset.py
=====================================
@@ -184,7 +184,7 @@ class RadarSat2Dataset(BaseDataset):
# dataset no-pol template for function evaluation on coordinates (*no* values used)
# what's matter here is the shape of the image, not the values.
with warnings.catch_warnings():
- warnings.simplefilter("ignore", np.ComplexWarning)
+ # warnings.simplefilter("ignore", np.ComplexWarning)
self._da_tmpl = xr.DataArray(
dask.array.empty_like(
self._dataset.digital_number.isel(pol=0).drop('pol'),
=====================================
src/xsar/rcm_dataset.py
=====================================
@@ -176,7 +176,7 @@ class RcmDataset(BaseDataset):
# dataset no-pol template for function evaluation on coordinates (*no* values used)
# what's matter here is the shape of the image, not the values.
with warnings.catch_warnings():
- warnings.simplefilter("ignore", np.ComplexWarning)
+ # warnings.simplefilter("ignore", np.ComplexWarning)
self._da_tmpl = xr.DataArray(
dask.array.empty_like(
self._dataset.digital_number.isel(pol=0).drop('pol'),
=====================================
src/xsar/sentinel1_dataset.py
=====================================
@@ -250,7 +250,7 @@ class Sentinel1Dataset(BaseDataset):
# dataset no-pol template for function evaluation on coordinates (*no* values used)
# what's matter here is the shape of the image, not the values.
with warnings.catch_warnings():
- warnings.simplefilter("ignore", np.ComplexWarning)
+ # warnings.simplefilter("ignore", np.ComplexWarning) # deprecated in numpy>=2.0.0
if self.sar_meta._bursts['burst'].size != 0:
# SLC TOPS, tune the high res grid because of bursts overlapping
# line_time = self._burst_azitime
View it on GitLab: https://salsa.debian.org/debian-gis-team/xsar/-/commit/988cb966fcb9aae6a89b60bfc0330dae6e0f61ef
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/xsar/-/commit/988cb966fcb9aae6a89b60bfc0330dae6e0f61ef
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/20240730/dfc7e3bb/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list