[Git][debian-gis-team/pyspectral][master] 4 commits: New upstream version 0.10.3+ds

Antonio Valentino gitlab at salsa.debian.org
Sun Dec 6 09:06:26 GMT 2020



Antonio Valentino pushed to branch master at Debian GIS Project / pyspectral


Commits:
1ce544e3 by Antonio Valentino at 2020-12-06T08:38:50+00:00
New upstream version 0.10.3+ds
- - - - -
2ee72cdd by Antonio Valentino at 2020-12-06T08:38:58+00:00
Update upstream source from tag 'upstream/0.10.3+ds'

Update to upstream version '0.10.3+ds'
with Debian dir fab9b5fcc173cbe4b2af76c1967479dd5b4398ac
- - - - -
598796f7 by Antonio Valentino at 2020-12-06T08:40:19+00:00
New upstream release

- - - - -
cd84e2cc by Antonio Valentino at 2020-12-06T08:42:45+00:00
Set distribution to unstable

- - - - -


5 changed files:

- CHANGELOG.md
- debian/changelog
- pyspectral/utils.py
- rsr_convert_scripts/ami_reader.py
- rsr_convert_scripts/mersi2_rsr.py


Changes:

=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,11 @@
+## Version <v0.10.3> (2020/12/04)
+
+### Issues Closed
+
+* [Issue 89](https://github.com/pytroll/pyspectral/issues/89) - GK2A AMI RSR wavelengths are reversed
+
+In this release 1 issue was closed.
+
 ## Version <v0.10.2> (2020/11/20)
 
 ### Issues Closed


=====================================
debian/changelog
=====================================
@@ -1,9 +1,12 @@
-pyspectral (0.10.2+ds-2) UNRELEASED; urgency=medium
+pyspectral (0.10.3+ds-1) unstable; urgency=medium
 
-  * Team upload.
+  [ Bas Couwenberg ]
   * Bump Standards-Version to 4.5.1, no changes.
 
- -- Bas Couwenberg <sebastic at debian.org>  Sat, 28 Nov 2020 14:13:41 +0100
+  [ Antonio Valentino ]
+  * New upstream release.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sun, 06 Dec 2020 08:42:26 +0000
 
 pyspectral (0.10.2+ds-1) unstable; urgency=medium
 


=====================================
pyspectral/utils.py
=====================================
@@ -194,11 +194,10 @@ INSTRUMENTS = {'NOAA-19': 'avhrr/3',
                }
 
 
-HTTP_PYSPECTRAL_RSR = "https://zenodo.org/record/3824535/files/pyspectral_rsr_data.tgz"
-
+HTTP_PYSPECTRAL_RSR = "https://zenodo.org/record/4305549/files/pyspectral_rsr_data.tgz"
 
 RSR_DATA_VERSION_FILENAME = "PYSPECTRAL_RSR_VERSION"
-RSR_DATA_VERSION = "v1.0.15"
+RSR_DATA_VERSION = "v1.0.16"
 
 ATM_CORRECTION_LUT_VERSION = {}
 ATM_CORRECTION_LUT_VERSION['antarctic_aerosol'] = {'version': 'v1.0.1',
@@ -610,8 +609,8 @@ def np2str(value):
         if not isinstance(value, str):
             return value.decode()
         return value
-    else:
-        raise ValueError("Array is not a string type or is larger than 1")
+
+    raise ValueError("Array is not a string type or is larger than 1")
 
 
 def bytes2string(var):


=====================================
rsr_convert_scripts/ami_reader.py
=====================================
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (c) 2019 Pytroll developers
+# Copyright (c) 2019, 2020 Pytroll developers
 #
 # Author(s):
 #
@@ -82,8 +82,8 @@ class AmiRSR(InstrumentRSR):
                              skip_header=4)
 
         # Data are wavenumbers in cm-1:
-        wavelength = 1. / data['wavenumber'] * scale
-        response = data['response']
+        wavelength = 1. / data['wavenumber'][::-1] * scale
+        response = data['response'][::-1]
 
         # The real AMI has more than one detectors I assume. However, for now
         # we store the single rsr available in the NWPSAF coefficient files:


=====================================
rsr_convert_scripts/mersi2_rsr.py
=====================================
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (c) 2018 Pytroll developers
+# Copyright (c) 2018, 2020 Pytroll developers
 #
 # Author(s):
 #
@@ -20,8 +20,11 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-"""Read the MERSI-II relative spectral responses. Data from xuna at cma.gov.cn
-(Personal contact with Sara Hörnquist, SMHI).
+"""Read the MERSI-II relative spectral responses.
+
+Data available from NSMC:
+http://gsics.nsmc.org.cn/portal/en/fycv/srf.html
+http://gsics.nsmc.org.cn/download/documents/SRF/FY3D_MERSI_SRF_Pub.zip
 """
 import os
 import numpy as np



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyspectral/-/compare/1d12134436d2d7353162a32d3ab365688219a7fe...cd84e2cc8c128dfd31d7ce2b4fccdc1de0620973

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyspectral/-/compare/1d12134436d2d7353162a32d3ab365688219a7fe...cd84e2cc8c128dfd31d7ce2b4fccdc1de0620973
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/20201206/48a40f9c/attachment-0001.html>


More information about the Pkg-grass-devel mailing list