Пример #1
0
 def __init__(self, lat_0 = 36.75, lon_0 = -121.0,
     llcrnrlat = 36.5, llcrnrlon = -122.5,
     urcrnrlat = 37, urcrnrlon = -121.75,
     projection = 'tmerc', resolution = 'i', **kwargs):
     """Overloaded method with default args.
     
     """
     Map.__init__(self, **lib.injectlocals(locals()))
Пример #2
0
    def draw_mars(self,color='red', marker='s', label='MARS', **kwargs):
        """Mark position of MARS cabled observatory.

        """
        plot_kwargs = lib.injectlocals(locals())
        mars_lat = 36 + 42.7481/60 #TODO use proj or write a utility for oa.lib
        mars_lon =  -(122 + 11.2139/60)
        mars_depth = 891 # meters
        x, y = self(mars_lon, mars_lat) # position in projection
        self.plot(x, y, **plot_kwargs)