__init__.py 810 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
25
26
27
28
29
30
31
32
33
34
35
36
__version__ = '20161027_01'
__author__='Daniel Scheffler'

# Validate GDAL version
try:
    import gdal
except:
    from osgeo import gdal

try:
    gdal.Warp
    gdal.Translate
    gdal.OpenNumPyArray
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!")
del gdal