def southwest_southeast_coords(self): #Starting from the master origin, compute the latitude, longitude pairs of #evenly spaced (in km) cell vertices going due east. lat_due_east = \ map(lambda x: (vdist(kilometers=self.deltaX*x).destination(self.set_master_origin(), MakeCityGrid.bearing_east)).latitude,\ self.eastward_sampling()) lon_due_east = \ map(lambda x: (vdist(kilometers=self.deltaX*x).destination(self.set_master_origin(), MakeCityGrid.bearing_east)).longitude,\ self.eastward_sampling()) return zip(lat_due_east, lon_due_east)
def northwest_northeast_coords(self, num): #Starting from an origin point, compute the latitude, longitude pairs of #evenly spaced (in km) cell vertices going due north. #The origin point is extracted from "set_tmp_origin" besed on the points #along the west-east line. lat_due_north = \ map(lambda x: (vdist(kilometers=self.deltaY*x).destination(self.set_tmp_origin(num),MakeCityGrid.bearing_north)).latitude,\ self.northward_sampling()) lon_due_north = \ map(lambda x: (vdist(kilometers=self.deltaY*x).destination(self.set_tmp_origin(num),MakeCityGrid.bearing_north)).longitude,\ self.northward_sampling()) return zip(lat_due_north, lon_due_north)