forked from nansencenter/nansat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
59 lines (47 loc) · 1.86 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Name: __init__.py
# Purpose: Use the current folder as a package
# Authors: Asuka Yamakawa, Anton Korosov, Knut-Frode Dagestad,
# Morten W. Hansen, Alexander Myasoyedov,
# Dmitry Petrenko, Evgeny Morozov
# Created: 29.06.2011
# Copyright: (c) NERSC 2011 - 2013
# Licence:
# This file is part of NANSAT.
# NANSAT 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, version 3 of the License.
# http://www.gnu.org/licenses/gpl-3.0.html
# 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.
import warnings
try:
from domain import Domain
except ImportError:
warnings.warn('''Cannot import Domain! Nansat will not work''')
try:
from nansat import Nansat
except ImportError:
warnings.warn('''Cannot import VRT! Nansat will not work''')
try:
from figure import Figure
except ImportError:
warnings.warn('''Cannot import Figure! Nansat will not work''')
try:
from nansatmap import Nansatmap
except ImportError:
warnings.warn('''Cannot import Nansatmap! Nansat will not work''')
try:
from nansatshape import Nansatshape
except ImportError:
warnings.warn('''Cannot import NansatOGR! Nansat will not work''')
try:
from nansat_tools import np, plt, Basemap, os
except ImportError:
warnings.warn('''Cannot import Numpy, Matplotlib! Nansat will not work''')
try:
from mosaic import Mosaic
except ImportError:
warnings.warn('''Cannot import Mosaic! Mosaic will not work''')
os.environ['LOG_LEVEL'] = '30'
__all__ = ['Nansat', 'Nansatshape', 'Domain', 'Figure', 'Nansatmap', 'np', 'plt', 'Basemap', 'Mosaic']