# Path: pyEOM/processing.py
# LOGGER = log.LOGGER
# def TestMODISHDFProcessor():
#     def __init__(self, file, bands, rastertype, publishPath):
#     def setFile(self, file):
#     def extractBands(self, file=None):
#     def clipPoint(self, geom):
#     def clipPolygon(self, geom, format, epsg=None, resample=None):
#     def splitBinaryQualityInfo(self, values):
#     def checkQualityBinary(self, val, qualityChecks):
#     def processQualityPoint(self, qaValue, bandlayer, qualityInfo):
#     def processQuality(self, bandlayer, qualityInfo):
#     def exportWktToShape(self, wkt, srs):
#     def __init__(self, file=None, outputformat=None):
#     def setFile(self, file):
#     def setOptions(self):
#     def extract(self, dataset, datasetext, outputformat, datatype=""):
#     def merge(self, files, outfile, outputformat="GTiff"):
#     def reproject(self):
#     def clip(self, geom, dstnodata, epsg, resample):
#     def compress(self, type):
#     def __init__(self):
#     def getFileExtension(self, format):
#     def execute(self, cmd, output):
#     def gdal_translate(self, input, output, format="GTiff"):
#     def gdal_merge(self, inputfiles, output, format="GTiff", nodata=""):
#     def gdalwarp(self, inputfile, output, format, dstnodata, epsg, resample, cutline):
#     def gdal_compress(self, inputfile, output, type):
#     def gdallocationinfo(self, inputfile, x, y):
#     def gdalbuildvrt(self, inputs, output, separate=True):
# class MODISHDFProcessor(object):
# class RasterProcessing(object):
# class GDAL(object):
# 
# Path: pyEOM/log.py
# LOGGER = logging.getLogger(__name__)
# DEBUG_MSG_FORMAT = '[%(asctime)s] [%(levelname)s] file=%(pathname)s \
# line=%(lineno)s module=%(module)s function=%(funcName)s msg=%(message)s'
# ERROR_MSG_FORMAT = DEBUG_MSG_FORMAT
# INFO_MSG_FORMAT = '[%(asctime)s] Message: %(message)s'
# TIME_FORMAT = '%a, %d %b %Y %H:%M:%S'
# LOGLEVELS = {
#     'CRITICAL': logging.CRITICAL,
#     'ERROR': logging.ERROR,
#     'WARNING': logging.WARNING,
#     'INFO': logging.INFO,
#     'DEBUG': logging.DEBUG,
#     'NOTSET': logging.NOTSET,
# }
# LOGFORMATS = {
#     'CRITICAL': ERROR_MSG_FORMAT,
#     'ERROR': ERROR_MSG_FORMAT,
#     'WARNING': DEBUG_MSG_FORMAT,
#     'INFO': INFO_MSG_FORMAT,
#     'DEBUG': DEBUG_MSG_FORMAT,
#     'NOTSET': '%(message)s',
# }
# def setup_logger(config=None):
#     def __init__(self, fmt="%(levelno)s: %(msg)s"):
#     def format(self, record):
# class MyFormatter(logging.Formatter):


import logging
import os, re, sys
import subprocess
import sqlite3
import shutil
from pyEOM.sources import *
from pyEOM import processing
from datetime import datetime
from pyspatialite import dbapi2 as db
from datetime import datetime
from pyEOM import log
        from base64 import b64encode
            from pyEOM.outputs import sensor
            from pyEOM.outputs import raster
__author__ = 'Jonas Eberle <jonas.eberle@eberle-mail.de>'
__version__ = '0.1'


LOGGER = log.LOGGER


class Tiles(object):

# Path: pyEOM/processing.py
# LOGGER = log.LOGGER
# def TestMODISHDFProcessor():
#     def __init__(self, file, bands, rastertype, publishPath):
#     def setFile(self, file):
#     def extractBands(self, file=None):
#     def clipPoint(self, geom):
#     def clipPolygon(self, geom, format, epsg=None, resample=None):
#     def splitBinaryQualityInfo(self, values):
#     def checkQualityBinary(self, val, qualityChecks):
#     def processQualityPoint(self, qaValue, bandlayer, qualityInfo):
#     def processQuality(self, bandlayer, qualityInfo):
#     def exportWktToShape(self, wkt, srs):
#     def __init__(self, file=None, outputformat=None):
#     def setFile(self, file):
#     def setOptions(self):
#     def extract(self, dataset, datasetext, outputformat, datatype=""):
#     def merge(self, files, outfile, outputformat="GTiff"):
#     def reproject(self):
#     def clip(self, geom, dstnodata, epsg, resample):
#     def compress(self, type):
#     def __init__(self):
#     def getFileExtension(self, format):
#     def execute(self, cmd, output):
#     def gdal_translate(self, input, output, format="GTiff"):
#     def gdal_merge(self, inputfiles, output, format="GTiff", nodata=""):
#     def gdalwarp(self, inputfile, output, format, dstnodata, epsg, resample, cutline):
#     def gdal_compress(self, inputfile, output, type):
#     def gdallocationinfo(self, inputfile, x, y):
#     def gdalbuildvrt(self, inputs, output, separate=True):
# class MODISHDFProcessor(object):
# class RasterProcessing(object):
# class GDAL(object):
# 
# Path: pyEOM/log.py
# LOGGER = logging.getLogger(__name__)
# DEBUG_MSG_FORMAT = '[%(asctime)s] [%(levelname)s] file=%(pathname)s \
# line=%(lineno)s module=%(module)s function=%(funcName)s msg=%(message)s'
# ERROR_MSG_FORMAT = DEBUG_MSG_FORMAT
# INFO_MSG_FORMAT = '[%(asctime)s] Message: %(message)s'
# TIME_FORMAT = '%a, %d %b %Y %H:%M:%S'
# LOGLEVELS = {
#     'CRITICAL': logging.CRITICAL,
#     'ERROR': logging.ERROR,
#     'WARNING': logging.WARNING,
#     'INFO': logging.INFO,
#     'DEBUG': logging.DEBUG,
#     'NOTSET': logging.NOTSET,
# }
# LOGFORMATS = {
#     'CRITICAL': ERROR_MSG_FORMAT,
#     'ERROR': ERROR_MSG_FORMAT,
#     'WARNING': DEBUG_MSG_FORMAT,
#     'INFO': INFO_MSG_FORMAT,
#     'DEBUG': DEBUG_MSG_FORMAT,
#     'NOTSET': '%(message)s',
# }
# def setup_logger(config=None):
#     def __init__(self, fmt="%(levelno)s: %(msg)s"):
#     def format(self, record):
# class MyFormatter(logging.Formatter):


# Path: pyEOM/datasets/MODIS.py
import logging
import os, re, sys
import subprocess
import sqlite3
import shutil
from pyEOM.sources import *
from pyEOM import processing
from datetime import datetime
from pyspatialite import dbapi2 as db
from datetime import datetime
from pyEOM import log
        from base64 import b64encode
            from pyEOM.outputs import sensor
            from pyEOM.outputs import raster

__author__ = 'Jonas Eberle <jonas.eberle@eberle-mail.de>'
__version__ = '0.1'


LOGGER = log.LOGGER


class Tiles(object):

    database = os.path.dirname(os.path.abspath(processing.__file__))+'/data/modis_tiles.sqlite'