# 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
        PROJ4:
        string with proj4 options [http://trac.osgeo.org/proj/] e.g.:
        '+proj=latlong +datum=WGS84 +ellps=WGS84 +no_defs'
        '+proj=stere +datum=WGS84 +ellps=WGS84 +lat_0=75 +lon_0=0 +no_defs'
        EPSG:
        integer with EPSG number, [http://spatialreference.org/],
        e.g. 4326
        WKT:
        string with Well Know Text of SRS. E.g.:
        'GEOGCS["WGS 84",
            DATUM["WGS_1984",
                SPHEROID["WGS 84",6378137,298.257223563,
                    AUTHORITY["EPSG","7030"]],
                TOWGS84[0,0,0,0,0,0,0],
                AUTHORITY["EPSG","6326"]],
            PRIMEM["Greenwich",0,
                AUTHORITY["EPSG","8901"]],
            UNIT["degree",0.0174532925199433,
                AUTHORITY["EPSG","9108"]],
            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

# 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

        PROJ4:
        string with proj4 options [http://trac.osgeo.org/proj/] e.g.:
        '+proj=latlong +datum=WGS84 +ellps=WGS84 +no_defs'
        '+proj=stere +datum=WGS84 +ellps=WGS84 +lat_0=75 +lon_0=0 +no_defs'
        EPSG:
        integer with EPSG number, [http://spatialreference.org/],
        e.g. 4326
        WKT:
        string with Well Know Text of SRS. E.g.:
        'GEOGCS["WGS 84",
            DATUM["WGS_1984",
                SPHEROID["WGS 84",6378137,298.257223563,
                    AUTHORITY["EPSG","7030"]],
                TOWGS84[0,0,0,0,0,0,0],
                AUTHORITY["EPSG","6326"]],
            PRIMEM["Greenwich",0,
                AUTHORITY["EPSG","8901"]],
            UNIT["degree",0.0174532925199433,
                AUTHORITY["EPSG","9108"]],
            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)