[Git][debian-gis-team/pygac][master] 5 commits: New upstream version 1.7.2
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Tue Jun 27 06:29:07 BST 2023
Antonio Valentino pushed to branch master at Debian GIS Project / pygac
Commits:
d555e635 by Antonio Valentino at 2023-06-27T05:23:53+00:00
New upstream version 1.7.2
- - - - -
1c59bb77 by Antonio Valentino at 2023-06-27T05:23:56+00:00
Update upstream source from tag 'upstream/1.7.2'
Update to upstream version '1.7.2'
with Debian dir a11aa33cb16db564b5722903614ab22208daefa2
- - - - -
844c0048 by Antonio Valentino at 2023-06-27T05:24:39+00:00
New upsream release
- - - - -
117b49d9 by Antonio Valentino at 2023-06-27T05:26:34+00:00
Drop patches applied upstream
- - - - -
1ccbe001 by Antonio Valentino at 2023-06-27T05:28:21+00:00
Update d/copyright
- - - - -
12 changed files:
- CHANGELOG.md
- continuous_integration/environment.yaml
- debian/changelog
- debian/copyright
- − debian/patches/0003-Compatibility-with-numpy-v1.24.patch
- − debian/patches/no-distutils.patch
- debian/patches/series
- + doc/source/images/noaa_class_preferences.png
- doc/source/introduction.rst
- pygac/pod_reader.py
- pygac/reader.py
- requirements.txt
Changes:
=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,23 @@
+## Version 1.7.2 (2023/06/26)
+
+
+### Pull Requests Merged
+
+#### Bugs fixed
+
+* [PR 120](https://github.com/pytroll/pygac/pull/120) - Compatibility with numpy v1.24
+
+#### Features added
+
+* [PR 122](https://github.com/pytroll/pygac/pull/122) - Don't use deprecated distutils module.
+
+#### Documentation changes
+
+* [PR 123](https://github.com/pytroll/pygac/pull/123) - Update supported data formats in documentation ([2494](https://github.com/pytroll/satpy/issues/2494))
+
+In this release 3 pull requests were closed.
+
+
## Version 1.7.1 (2022/12/09)
=====================================
continuous_integration/environment.yaml
=====================================
@@ -8,6 +8,7 @@ dependencies:
- python-dateutil
- hdf5
- h5py
+ - packaging
- pytest
- pytest-cov
- pip
=====================================
debian/changelog
=====================================
@@ -1,11 +1,19 @@
-pygac (1.7.1-3) UNRELEASED; urgency=medium
+pygac (1.7.2-1) UNRELEASED; urgency=medium
+ [ Bas Couwenberg ]
* Team upload.
* Enable Salsa CI.
* Bump Standards-Version to 4.6.2, no changes.
* Add patch to not use deprecated distutils module.
* Bump debhelper compat to 13.
+ [ Antonio Valentino ]
+ * New upstream release.
+ * debian/patches:
+ - drop no-distutils.patch and 0003-Compatibility-with-numpy-v1.24.patch,
+ applied upstream.
+ * Update d/copyright.
+
-- Bas Couwenberg <sebastic at debian.org> Sun, 08 Jan 2023 15:19:20 +0100
pygac (1.7.1-2) unstable; urgency=medium
=====================================
debian/copyright
=====================================
@@ -18,7 +18,7 @@ Copyright: 2010-2020, Martin Raspaud <martin.raspaud at smhi.se>
License: GPL-3+
Files: debian/*
-Copyright: 2018-2022, Antonio Valentino <antonio.valentino at tiscali.it>
+Copyright: 2018-2023, Antonio Valentino <antonio.valentino at tiscali.it>
License: GPL-3+
License: GPL-3+
=====================================
debian/patches/0003-Compatibility-with-numpy-v1.24.patch deleted
=====================================
@@ -1,26 +0,0 @@
-From: Antonio Valentino <antonio.valentino at tiscali.it>
-Date: Thu, 29 Dec 2022 17:03:16 +0000
-Subject: Compatibility with numpy v1.24
-
-Forwarded: https://github.com/pytroll/pygac/pull/120
-
----
- pygac/pod_reader.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/pygac/pod_reader.py b/pygac/pod_reader.py
-index d77edb3..4696927 100644
---- a/pygac/pod_reader.py
-+++ b/pygac/pod_reader.py
-@@ -498,9 +498,9 @@ class PODReader(Reader):
- # one line to the other should be equal to the scan rate.
- pixels_per_line = self.lats.shape[1]
- complete_lons = np.full((num_lines, pixels_per_line), np.nan,
-- dtype=np.float)
-+ dtype=float)
- complete_lats = np.full((num_lines, pixels_per_line), np.nan,
-- dtype=np.float)
-+ dtype=float)
-
- complete_lons[scan_lines - min_line] = self.lons
- complete_lats[scan_lines - min_line] = self.lats
=====================================
debian/patches/no-distutils.patch deleted
=====================================
@@ -1,34 +0,0 @@
-Description: Don't use deprecated distutils module.
-Author: Bas Couwenberg <sebastic at debian.org>
-Forwarded: https://github.com/pytroll/pygac/pull/122
-Applied-Upstream: https://github.com/pytroll/pygac/commit/10a1a8761e660ff85055d217a5e246737737f56f
-
---- a/pygac/reader.py
-+++ b/pygac/reader.py
-@@ -43,7 +43,7 @@ from pyorbital.orbital import Orbital
- from pyorbital import astronomy
- from pygac.calibration import Calibrator, calibrate_solar, calibrate_thermal
- from pygac import gac_io
--from distutils.version import LooseVersion
-+from packaging.version import Version
-
- LOG = logging.getLogger(__name__)
-
-@@ -770,7 +770,7 @@ class Reader(six.with_metaclass(ABCMeta)
- self.lons, self.lats, 0)
- # Sometimes (pyorbital <= 1.6.1) the get_observer_look_not_tle returns nodata instead of 90.
- # Problem solved with https://github.com/pytroll/pyorbital/pull/77
-- if LooseVersion(pyorbital.__version__) <= LooseVersion('1.6.1'):
-+ if Version(pyorbital.__version__) <= Version('1.6.1'):
- sat_elev[:, mid_column] = 90
- return sat_azi, sat_elev
-
---- a/requirements.txt
-+++ b/requirements.txt
-@@ -2,5 +2,6 @@ numpy>=1.6.1
- h5py>=2.0.1
- scipy>=0.8.0
- python-geotiepoints>=1.1.8
-+packaging>=14.0
-
-
=====================================
debian/patches/series
=====================================
@@ -1,4 +1,2 @@
0001-Fix-config.patch
0002-Install-the-tests-sub-package.patch
-0003-Compatibility-with-numpy-v1.24.patch
-no-distutils.patch
=====================================
doc/source/images/noaa_class_preferences.png
=====================================
Binary files /dev/null and b/doc/source/images/noaa_class_preferences.png differ
=====================================
doc/source/introduction.rst
=====================================
@@ -10,6 +10,14 @@ the `POD`_ (NOAA-14 and before) and `KLM`_ (NOAA-15 and following) user guides.
The data can be obtained from `NOAA CLASS`_, where you can also find a
comprehensive `introduction`_.
+.. note::
+
+ Pygac can only read AVHRR data with 10 bits/pixel. This can be specified in
+ your NOAA CLASS order or user preferences (see screenshot below).
+
+.. image:: images/noaa_class_preferences.png
+ :width: 350
+ :alt: Screenshot of AVHRR data extraction preferences
.. _NOAA CLASS:
https://www.class.noaa.gov/
=====================================
pygac/pod_reader.py
=====================================
@@ -498,9 +498,9 @@ class PODReader(Reader):
# one line to the other should be equal to the scan rate.
pixels_per_line = self.lats.shape[1]
complete_lons = np.full((num_lines, pixels_per_line), np.nan,
- dtype=np.float)
+ dtype=np.float64)
complete_lats = np.full((num_lines, pixels_per_line), np.nan,
- dtype=np.float)
+ dtype=np.float64)
complete_lons[scan_lines - min_line] = self.lons
complete_lats[scan_lines - min_line] = self.lats
=====================================
pygac/reader.py
=====================================
@@ -43,7 +43,7 @@ from pyorbital.orbital import Orbital
from pyorbital import astronomy
from pygac.calibration import Calibrator, calibrate_solar, calibrate_thermal
from pygac import gac_io
-from distutils.version import LooseVersion
+from packaging.version import Version
LOG = logging.getLogger(__name__)
@@ -770,7 +770,7 @@ class Reader(six.with_metaclass(ABCMeta)):
self.lons, self.lats, 0)
# Sometimes (pyorbital <= 1.6.1) the get_observer_look_not_tle returns nodata instead of 90.
# Problem solved with https://github.com/pytroll/pyorbital/pull/77
- if LooseVersion(pyorbital.__version__) <= LooseVersion('1.6.1'):
+ if Version(pyorbital.__version__) <= Version('1.6.1'):
sat_elev[:, mid_column] = 90
return sat_azi, sat_elev
=====================================
requirements.txt
=====================================
@@ -2,5 +2,6 @@ numpy>=1.6.1
h5py>=2.0.1
scipy>=0.8.0
python-geotiepoints>=1.1.8
+packaging>=14.0
View it on GitLab: https://salsa.debian.org/debian-gis-team/pygac/-/compare/65390d73ba8e5994348787f89b5ce8c3983bfd81...1ccbe0017b1a7c007117ac541b1d9d82f5ba26c4
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/pygac/-/compare/65390d73ba8e5994348787f89b5ce8c3983bfd81...1ccbe0017b1a7c007117ac541b1d9d82f5ba26c4
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/20230627/a0f569d3/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list