def get_cell_boundary_latlon(self, x, y): #posisi sel dimulai dari 0 dx = ((self.w / 2) - x) * self.dx dy = ((self.h / 2) - y) * self.dy ll_x = self.x - dx ll_y = self.y - dy tr_x = self.x - dx + self.dx tr_y = self.y - dy + self.dy ll = utm.convert_to_latlon(ll_x, ll_y, self.zone, self.hem) tr = utm.convert_to_latlon(tr_x, tr_y, self.zone, self.hem) #[ [lat, lon], [lat, lon] ] return ll, tr
def get_cell_boundary_latlon(self, x, y): #posisi sel dimulai dari 0 dx = x * self.dx dy = y * self.dy ll_x = self.ll_x + dx ll_y = self.ll_y + dy tr_x = self.ll_x + dx + self.dx tr_y = self.ll_y + dy + self.dy ll = utm.convert_to_latlon(ll_x, ll_y, self.zone, self.hem) tr = utm.convert_to_latlon(tr_x, tr_y, self.zone, self.hem) #[ [lat, lon], [lat, lon] ] return ll, tr
def get_cell_boundary_latlon(self, x, y): #posisi sel dimulai dari 0 dx = ((self.w / 2) - x ) * self.dx dy = ((self.h / 2) - y ) * self.dy ll_x = self.x - dx ll_y = self.y - dy tr_x = self.x - dx + self.dx tr_y = self.y - dy + self.dy ll = utm.convert_to_latlon(ll_x, ll_y, self.zone, self.hem) tr = utm.convert_to_latlon(tr_x, tr_y, self.zone, self.hem) #[ [lat, lon], [lat, lon] ] return ll, tr
def process_boundary(self): #menentukan boundary subdomain dari data domain induk dx = self.w * self.dx dy = self.h * self.dy self.tr_x = self.ll_x + dx self.tr_y = self.ll_y + dy self.tr_lat, self.tr_lon = utm.convert_to_latlon(self.tr_x, self.tr_y, self.zone, self.hem) #titik tengah domain self.x = self.ll_x + self.dx * (self.w / 2) self.y = self.ll_y + self.dy * (self.h / 2) self.lat, self.lon = utm.convert_to_latlon(self.x, self.y, self.zone, self.hem)
def process_boundary(self): #menentukan boundary subdomain dari data domain induk dx = self.w * self.dx dy = self.h * self.dy self.tr_x = self.ll_x + dx self.tr_y = self.ll_y + dy self.tr_lat, self.tr_lon = utm.convert_to_latlon( self.tr_x, self.tr_y, self.zone, self.hem) #titik tengah domain self.x = self.ll_x + self.dx * (self.w / 2) self.y = self.ll_y + self.dy * (self.h / 2) self.lat, self.lon = utm.convert_to_latlon(self.x, self.y, self.zone, self.hem)
def process_boundary(self): self.process_to_utm() dx = (self.w / 2) * self.dx dy = (self.h / 2) * self.dy ll_x = self.x - dx ll_y = self.y - dy tr_x = self.x + dx tr_y = self.y + dy self.ll_x = ll_x self.ll_y = ll_y self.tr_x = tr_x self.tr_y = tr_y self.ll_lat, self.ll_lon = utm.convert_to_latlon(ll_x, ll_y, self.zone, self.hem) self.tr_lat, self.tr_lon = utm.convert_to_latlon(tr_x, tr_y, self.zone, self.hem)
def process_boundary(self): self.process_to_utm() dx = (self.w / 2) * self.dx dy = (self.h / 2) * self.dy ll_x = self.x - dx ll_y = self.y - dy tr_x = self.x + dx tr_y = self.y + dy self.ll_x = ll_x self.ll_y = ll_y self.tr_x = tr_x self.tr_y = tr_y self.ll_lat, self.ll_lon = utm.convert_to_latlon( ll_x, ll_y, self.zone, self.hem) self.tr_lat, self.tr_lon = utm.convert_to_latlon( tr_x, tr_y, self.zone, self.hem)