Пример #1
0
 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
Пример #2
0
 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]}