Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# -*- coding: utf-8 -*-
3# gms_preprocessing, spatial and spectral homogenization of satellite remote sensing data
4#
5# Copyright (C) 2020 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
6#
7# This software was developed within the context of the GeoMultiSens project funded
8# by the German Federal Ministry of Education and Research
9# (project grant code: 01 IS 14 010 A-C).
10#
11# This program is free software: you can redistribute it and/or modify it under
12# the terms of the GNU General Public License as published by the Free Software
13# Foundation, either version 3 of the License, or (at your option) any later version.
14# Please note the following exception: `gms_preprocessing` depends on tqdm, which
15# is distributed under the Mozilla Public Licence (MPL) v2.0 except for the files
16# "tqdm/_tqdm.py", "setup.py", "README.rst", "MANIFEST.in" and ".gitignore".
17# Details can be found here: https://github.com/tqdm/tqdm/blob/master/LICENCE.
18#
19# This program is distributed in the hope that it will be useful, but WITHOUT
20# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
21# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
22# details.
23#
24# You should have received a copy of the GNU Lesser General Public License along
25# with this program. If not, see <http://www.gnu.org/licenses/>.
27__author__ = 'Daniel Scheffler'
30class GMSConfigParameterError(ValueError):
31 """A wrong config parameter has been passed to GMS configuration."""
33########################
34# ENVIRONMENT EXCEPTIONS
35########################
38class GMSEnvironmentError(EnvironmentError):
39 """Missing package, that has not been automatically installed because it is not pip-installable."""
42class MissingNonPipLibraryWarning(UserWarning):
43 """Missing package, that has not been automatically installed because it is not pip-installable."""
46##########################
47# CLOUD MASKING EXCEPTIONS
48##########################
51class FmaskWarning(UserWarning):
52 """A warning within the Fmask wrapper of gms_preprocessing."""
55class FmaskError(RuntimeError):
56 """An error within the Fmask wrapper of gms_preprocessing."""
59#######
60# AC #
61#######
63class ACNotSupportedError(RuntimeError):
64 """An error raised if there is currently no AC supported for the current sensor."""