__init__.py 887 Bytes
Newer Older
1
2
3
4
#import py_tools_ds.ptds.io
#import py_tools_ds.ptds.geo
#import py_tools_ds.ptds.numeric
#import py_tools_ds.ptds.processing
Daniel Scheffler's avatar
Daniel Scheffler committed
5
from . import io
6
from . import geo
Daniel Scheffler's avatar
Daniel Scheffler committed
7
8
9
from . import numeric
from . import processing

10
11
12
from .io.raster.GeoArray import GeoArray
#from py_tools_ds.ptds.io.raster.GeoArray import GeoArray

Daniel Scheffler's avatar
Daniel Scheffler committed
13
__all__=['io',
14
         'geo',
Daniel Scheffler's avatar
Daniel Scheffler committed
15
         'numeric',
16
17
         'processing',
         'GeoArray']
Daniel Scheffler's avatar
Daniel Scheffler committed
18

19
20
21
22
23
24
__version__ = '20161027_01'
__author__='Daniel Scheffler'

# Validate GDAL version
try:
    import gdal
25
    import gdalnumeric
26
27
except:
    from osgeo import gdal
28
    from osgeo import gdalnumeric
29
30
31
32

try:
    gdal.Warp
    gdal.Translate
33
    gdalnumeric.OpenNumPyArray
34
35
36
37
except AttributeError:
    import warnings
    warnings.warn("Your GDAL version is too old to support all functionalities of the 'py_tools_ds' package. "
                  "Please update GDAL!")
38
del gdal, gdalnumeric