Hide keyboard shortcuts

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 -*- 

2 

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/>. 

26 

27__author__ = 'Daniel Scheffler' 

28 

29 

30class GMSConfigParameterError(ValueError): 

31 """A wrong config parameter has been passed to GMS configuration.""" 

32 

33######################## 

34# ENVIRONMENT EXCEPTIONS 

35######################## 

36 

37 

38class GMSEnvironmentError(EnvironmentError): 

39 """Missing package, that has not been automatically installed because it is not pip-installable.""" 

40 

41 

42class MissingNonPipLibraryWarning(UserWarning): 

43 """Missing package, that has not been automatically installed because it is not pip-installable.""" 

44 

45 

46########################## 

47# CLOUD MASKING EXCEPTIONS 

48########################## 

49 

50 

51class FmaskWarning(UserWarning): 

52 """A warning within the Fmask wrapper of gms_preprocessing.""" 

53 

54 

55class FmaskError(RuntimeError): 

56 """An error within the Fmask wrapper of gms_preprocessing.""" 

57 

58 

59####### 

60# AC # 

61####### 

62 

63class ACNotSupportedError(RuntimeError): 

64 """An error raised if there is currently no AC supported for the current sensor."""