Commit 6899a35d authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed FileNotFoundError in case the requested satellite is 'RapidEye-5'. Updated version info.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent efa18823
Pipeline #4586 passed with stages
in 1 minute and 5 seconds
......@@ -56,7 +56,9 @@ def RSR_reader(satellite, sensor, subsystem='',
:param v: verbose mode
"""
RSR_dict = collections.OrderedDict()
RSR_dir = os.path.join(__path__[0], 'data', satellite, sensor)
sat_dir = satellite if not satellite.startswith('RapidEye') else 'RapidEye'
RSR_dir = os.path.join(__path__[0], 'data', sat_dir, sensor)
LBA = LayerBandsAssignment or get_LayerBandsAssignment(satellite, sensor, subsystem,
no_thermal=no_thermal, no_pan=no_pan,
sort_by_cwl=sort_by_cwl, after_ac=after_ac)
......
......@@ -22,5 +22,5 @@
# with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.2.6'
__versionalias__ = '20190822.08'
__version__ = '0.2.7'
__versionalias__ = '20190822.09'
......@@ -49,6 +49,7 @@ class TestRelativeSpectralResponse(unittest.TestCase):
def test_RapidEye(self):
RelativeSpectralResponse(satellite='RapidEye', sensor='MSI')
RelativeSpectralResponse(satellite='RapidEye-5', sensor='MSI')
def test_Sentinel2A(self):
RelativeSpectralResponse(satellite='Sentinel-2A', sensor='MSI')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment