[Git][debian-gis-team/pygac][upstream] New upstream version 1.7.2

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Tue Jun 27 06:29:22 BST 2023



Antonio Valentino pushed to branch upstream at Debian GIS Project / pygac


Commits:
d555e635 by Antonio Valentino at 2023-06-27T05:23:53+00:00
New upstream version 1.7.2
- - - - -


7 changed files:

- CHANGELOG.md
- continuous_integration/environment.yaml
- + 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


=====================================
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/-/commit/d555e6353cfb11941f0c08e11f49e99f158ad566

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pygac/-/commit/d555e6353cfb11941f0c08e11f49e99f158ad566
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/0ff43bd0/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list