# -*- coding: utf-8 -*-
# gms_preprocessing, spatial and spectral homogenization of satellite remote sensing data
#
# Copyright (C) 2020 Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
#
# This software was developed within the context of the GeoMultiSens project funded
# by the German Federal Ministry of Education and Research
# (project grant code: 01 IS 14 010 A-C).
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
# Please note the following exception: `gms_preprocessing` depends on tqdm, which
# is distributed under the Mozilla Public Licence (MPL) v2.0 except for the files
# "tqdm/_tqdm.py", "setup.py", "README.rst", "MANIFEST.in" and ".gitignore".
# Details can be found here: https://github.com/tqdm/tqdm/blob/master/LICENCE.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
__author__ = 'Daniel Scheffler'
[docs]class GMSConfigParameterError(ValueError):
"""A wrong config parameter has been passed to GMS configuration."""
########################
# ENVIRONMENT EXCEPTIONS
########################
[docs]class GMSEnvironmentError(EnvironmentError):
"""Missing package, that has not been automatically installed because it is not pip-installable."""
[docs]class MissingNonPipLibraryWarning(UserWarning):
"""Missing package, that has not been automatically installed because it is not pip-installable."""
##########################
# CLOUD MASKING EXCEPTIONS
##########################
[docs]class FmaskWarning(UserWarning):
"""A warning within the Fmask wrapper of gms_preprocessing."""
[docs]class FmaskError(RuntimeError):
"""An error within the Fmask wrapper of gms_preprocessing."""
#######
# AC #
#######
[docs]class ACNotSupportedError(RuntimeError):
"""An error raised if there is currently no AC supported for the current sensor."""