[Git][debian-gis-team/pyspectral][upstream] New upstream version 0.10.3+ds

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



Antonio Valentino pushed to branch upstream 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
- - - - -


4 changed files:

- CHANGELOG.md
- 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


=====================================
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/-/commit/1ce544e39dae37627be4484f6399a1cf3f0725a0

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyspectral/-/commit/1ce544e39dae37627be4484f6399a1cf3f0725a0
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/c5c708cf/attachment-0001.html>


More information about the Pkg-grass-devel mailing list