def get_dataset(self): # if self.data_type == 'single': if debug: print self.fname self.obsid = getObsIDFromPath(self.fname) self.ds = gdal.Open(self.fname) self.xSize = self.ds.RasterXSize self.ySize = self.ds.RasterYSize
def __init__(self, fname, x1, y1, xSize, ySize): self.fname = fname self.x1 = x1 self.x2 = x1 + xSize self.y1 = y1 self.y2 = y1 + xSize self.xSize = xSize self.ySize = ySize self.obsID = hirise_tools.getObsIDFromPath(fname) self.coregX = 0 self.coregY = 0 self.d = {self.obsID: [self.fname, self.x1, self, y1, self.xSize, self.ySize, self.coregX, self.coregY]}