from mpl_toolkits.basemap import Basemap
import numpy as np
import matplotlib.pyplot as plt

class mapa(object):
    """Those examples of objects meridional and zonal limits"""
    def __init__(self):
        self.lon0 = None
        self.lat0 = None
        self.lonF = None
        self.latF = None

    def Mapa(self):
        self.mapa =  Basemap(projection='mill',lat_ts=10,llcrnrlon=self.lon0, urcrnrlon=self.lon1, llcrnrlat=self.lat0, urcrnrlat=self.lat1, resolution=self.res)

    def Araca(self):
        self.lat0 = -23.9
        self.lat1 = -23.7
        self.lon0 = -45.5
        self.lon1 = -45.3
        self.res  = 'f'
        self.parallel = [-23.75,-23.85]
        self.meridian = [-45.45,-45.35]
        self.Mapa()

    def Canal_ssb(self):
        self.lat0 = -23.9
        self.lat1 = -23.7
        self.lon0 = -45.5
        self.lon1 = -45.3
        self.res  = 'f'
        self.parallel = [-23.75,-23.85]
        self.meridian = [-45.45,-45.35]
        self.Mapa()

    def Embaiamento_sp(self):
        #boundaries - mill
        self.lat0 = -30
        self.lat1 = -21
        self.lon0 = -50
        self.lon1 = -38
        #basemap
        self.res  = 'h'
        self.parallel = [-27,-24]
        self.meridian = [-47,-43]
        self.Mapa()

    def Sp_coast(self):
        #boundaries - mill
        self.lat0 = -26.5
        self.lat1 = -22.5
        self.lon0 = -49
        self.lon1 = -43.5
        #basemap
        self.res  = 'h'
        self.parallel = [-25,-23]
        self.meridian = [-48,-46,-44]
        self.Mapa()

    def Tropical_atlantic(self):
        #boundaries - mill
        self.lat0 = -20
        self.lat1 = 25
        self.lon0 = -60
        self.lon1 = 15
        #basemap
        self.res  = 'l'
        self.parallel = [-20,0,20]
        self.meridian = [-55,-30,15]
        self.Mapa()

    def Eq_south_atlantic(self):
        self.lat0 = -30
        self.lat1 = 15
        self.lon0 = -60
        self.lon1 = 15
        #basemap
        self.res  = 'l'
        self.parallel = [-40,-20,0,20]
        self.meridian = [-45,-15,15]
        self.Mapa()