# Path: nansat/utils.py
#     MATPLOTLIB_IS_INSTALLED = False
#     MATPLOTLIB_IS_INSTALLED = True
# NUMPY_TO_GDAL_TYPE_MAP = {
#         'uint8': 1,
#         'int8': 1,
#         'uint16': 2,
#         'int16': 3,
#         'uint32': 4,
#         'int32': 5,
#         'float32': 6,
#         'float64': 7,
#         'complex64': 10,
#         'complex128': 11
#     }
# def remove_keys(dict, keys):
# def register_colormaps():
# def initial_bearing(lon1, lat1, lon2, lat2):
# def haversine(lon1, lat1, lon2, lat2):
# def add_logger(logName='', logLevel=None):
# def get_random_color(c0=None, minDist=100, low=0, high=255):
# def parse_time(time_string):
# 
# Path: nansat/exceptions.py
# class NansatProjectionError(Exception):
#     """ Cannot get the projection """
#     pass


import sys
from nansat.utils import osr
from nansat.exceptions import NansatProjectionError
            AUTHORITY["EPSG","4326"]]'

    """

    def __init__(self, srs=0):
        """Create Spatial Reference System from input parameter"""
        if sys.version_info.major == 2:
            str_types = (str, unicode)
        else:
            str_types = str
        # create SRS
        osr.SpatialReference.__init__(self)

        # parse input parameters
        status = 1
        if srs is 0:
            # generate default WGS84 SRS
            status = self.ImportFromEPSG(4326)
        elif isinstance(srs, str_types):
            # parse as proj4 string
            status = self.ImportFromProj4(str(srs))
            if status > 0:
                # parse as WKT string
                status = self.ImportFromWkt(str(srs))
            if status > 0:
                raise NansatProjectionError('Proj4 or WKT (%s) is wrong' % srs)
        elif isinstance(srs, int):
            # parse as EPSG code
            status = self.ImportFromEPSG(srs)
            if status > 0:

# Path: nansat/utils.py
#     MATPLOTLIB_IS_INSTALLED = False
#     MATPLOTLIB_IS_INSTALLED = True
# NUMPY_TO_GDAL_TYPE_MAP = {
#         'uint8': 1,
#         'int8': 1,
#         'uint16': 2,
#         'int16': 3,
#         'uint32': 4,
#         'int32': 5,
#         'float32': 6,
#         'float64': 7,
#         'complex64': 10,
#         'complex128': 11
#     }
# def remove_keys(dict, keys):
# def register_colormaps():
# def initial_bearing(lon1, lat1, lon2, lat2):
# def haversine(lon1, lat1, lon2, lat2):
# def add_logger(logName='', logLevel=None):
# def get_random_color(c0=None, minDist=100, low=0, high=255):
# def parse_time(time_string):
# 
# Path: nansat/exceptions.py
# class NansatProjectionError(Exception):
#     """ Cannot get the projection """
#     pass


# Path: nansat/nsr.py
import sys
from nansat.utils import osr
from nansat.exceptions import NansatProjectionError

            AUTHORITY["EPSG","4326"]]'

    """

    def __init__(self, srs=0):
        """Create Spatial Reference System from input parameter"""
        if sys.version_info.major == 2:
            str_types = (str, unicode)
        else:
            str_types = str
        # create SRS
        osr.SpatialReference.__init__(self)

        # parse input parameters
        status = 1
        if srs is 0:
            # generate default WGS84 SRS
            status = self.ImportFromEPSG(4326)
        elif isinstance(srs, str_types):
            # parse as proj4 string
            status = self.ImportFromProj4(str(srs))
            if status > 0:
                # parse as WKT string
                status = self.ImportFromWkt(str(srs))
            if status > 0:
                raise NansatProjectionError('Proj4 or WKT (%s) is wrong' % srs)
        elif isinstance(srs, int):
            # parse as EPSG code
            status = self.ImportFromEPSG(srs)
            if status > 0:

                raise NansatProjectionError('EPSG %d is wrong' % srs)