def get_product_type_object(self): return driver.get_product_type_object(self.get_sensor().get_attribute(tm.DATA_TYPE).upper())
def get_product_type_object(self): """ Defined according to the attribute shortname of the table product_type """ return driver.get_product_type_object("fmask")
def get_product_type_object(self): ''' Defined according to the attribute shortname of the table product_type ''' return driver.get_product_type_object('fmask')
def get_product_type_object(self): ''' Returns level of processing of this product. ''' type_name = self.get_sensor().get_attribute(rapideye.PRODUCT_NAME) return driver.get_product_type_object(type_name)
def get_product_type_object(self): ''' Returns level of processing of this product. ''' type_name = self.get_sensor().get_attribute(rapideye.PRODUCT_NAME) return driver.get_product_type_object(type_name)
def get_product_type_object(self): return driver.get_product_type_object(self.get_sensor().get_attribute(olitirs.DATA_TYPE).upper())
return driver.get_product_type_object(self.get_sensor().get_attribute(olitirs.DATA_TYPE).upper()) if __name__ == "__main__": path = "/LUSTRE/MADMEX/eodata/oli_tirs/21048/2013/2013-04-15/l1t/" bundle = Bundle(path) print bundle.get_files() print bundle.can_identify() print "sensor" print bundle.get_sensor().get_attribute(olitirs.SENSOR) print "sensor_name" print bundle.get_sensor().get_attribute(olitirs.SENSOR_NAME) print "scene" print bundle.get_sensor().get_attribute(olitirs.SCENE_ID) print "cloud" print bundle.get_sensor().get_attribute(olitirs.CLOUD_COVER) print "sun" print bundle.get_sensor().get_attribute(olitirs.SUN_ELEVATION) print "data type" print driver.get_product_type_object(bundle.get_sensor().get_attribute(olitirs.DATA_TYPE).upper()) print bundle.get_raster().get_attribute(raster.FOOTPRINT) print "path metadata" print bundle.file_dictionary[_BASE % (bundle.get_letter(), bundle.get_mission(), "MTL.txt")] print "row" print bundle.get_sensor().get_attribute(olitirs.ROW) print driver.get_satellite_object(bundle.get_name()) print getattr(SETTINGS, "TEST_FOLDER") + "/" + bundle.file_dictionary[ _BASE % (bundle.get_letter(), bundle.get_mission(), "MTL.txt") ], # print bundle.get_sensor().parser.metadata
if __name__ == '__main__': path = '/LUSTRE/MADMEX/eodata/oli_tirs/21048/2013/2013-04-15/l1t/' bundle = Bundle(path) print bundle.get_files() print bundle.can_identify() print "sensor" print bundle.get_sensor().get_attribute(olitirs.SENSOR) print "sensor_name" print bundle.get_sensor().get_attribute(olitirs.SENSOR_NAME) print "scene" print bundle.get_sensor().get_attribute(olitirs.SCENE_ID) print "cloud" print bundle.get_sensor().get_attribute(olitirs.CLOUD_COVER) print "sun" print bundle.get_sensor().get_attribute(olitirs.SUN_ELEVATION) print "data type" print driver.get_product_type_object(bundle.get_sensor().get_attribute( olitirs.DATA_TYPE).upper()) print bundle.get_raster().get_attribute(raster.FOOTPRINT) print "path metadata" print bundle.file_dictionary[_BASE % (bundle.get_letter(), bundle.get_mission(), 'MTL.txt')] print "row" print bundle.get_sensor().get_attribute(olitirs.ROW) print driver.get_satellite_object(bundle.get_name()) print getattr(SETTINGS, 'TEST_FOLDER') + '/' + bundle.file_dictionary[ _BASE % (bundle.get_letter(), bundle.get_mission(), 'MTL.txt')], #print bundle.get_sensor().parser.metadata