def get_output_directory(self): """ Creates the output directory where the files in this bundle will be persisted on the file system. """ if self.output_directory is None: path = self.get_sensor().get_attribute(olitirs.PATH) row = self.get_sensor().get_attribute(olitirs.ROW) destination = getattr(SETTINGS, "TEST_FOLDER") sensor_name = self.get_sensor().get_attribute(olitirs.SENSOR_NAME) grid_id = unicode(path + row) year = self.get_aquisition_date().strftime("%Y") date = self.get_aquisition_date().strftime("%Y-%m-%d") product_name = _PROCESSING_LEVEL.lower() self.output_directory = get_path_from_list([destination, sensor_name, grid_id, year, date, product_name]) return self.output_directory
def get_output_directory(self): ''' Creates the output directory where the files in this bundle will be persisted on the file system. ''' if self.output_directory is None: path = self.get_sensor().get_attribute(olitirs.PATH) row = self.get_sensor().get_attribute(olitirs.ROW) destination = getattr(SETTINGS, 'TEST_FOLDER') sensor_name = self.get_sensor().get_attribute(olitirs.SENSOR_NAME) grid_id = unicode(path + row) year = self.get_aquisition_date().strftime('%Y') date = self.get_aquisition_date().strftime('%Y-%m-%d') product_name = _PROCESSING_LEVEL.lower() self.output_directory = get_path_from_list( [destination, sensor_name, grid_id, year, date, product_name]) return self.output_directory
def get_output_directory(self): ''' Creates the output directory where the files in this bundle will be persisted on the file system. ''' if self.output_directory is None: destination = getattr(SETTINGS, 'TEST_FOLDER') sensor_name = self.get_sensor().get_attribute(rapideye.SENSOR_NAME) grid_id = unicode(self.get_sensor().get_attribute( rapideye.TILE_ID)) year = self.get_sensor().get_attribute( rapideye.ACQUISITION_DATE).strftime('%Y') date = self.get_sensor().get_attribute( rapideye.ACQUISITION_DATE).strftime('%Y-%m-%d') product_name = self.get_sensor().get_attribute( rapideye.PRODUCT_NAME) self.output_directory = get_path_from_list( [destination, sensor_name, grid_id, year, date, product_name]) return self.output_directory
def get_output_directory(self): ''' Creates the output directory where the files in this bundle will be persisted on the file system. ''' if self.output_directory is None: destination = getattr(SETTINGS, 'TEST_FOLDER') sensor_name = self.get_sensor().get_attribute( self.get_sensor_module().SENSOR) + self.get_sensor( ).get_attribute(self.get_sensor_module().PLATFORM) grid_id = '0' # grid_reference in spot6? year = self.get_sensor().get_attribute( self.get_sensor_module().ACQUISITION_DATE).strftime('%Y') date = self.get_sensor().get_attribute( self.get_sensor_module().ACQUISITION_DATE).strftime('%Y-%m-%d') product_name = self.get_sensor().get_attribute( self.get_sensor_module().PROCESSING_LEVEL) self.output_directory = get_path_from_list( [destination, sensor_name, grid_id, year, date, product_name]) return self.output_directory
def get_output_directory(self): ''' Creates the output directory where the files in this bundle will be persisted on the file system. ''' if self.output_directory is None: destination = getattr(SETTINGS, 'TEST_FOLDER') sensor_name = self.get_sensor().get_attribute(self.get_sensor_module().SENSOR) + self.get_sensor().get_attribute(self.get_sensor_module().PLATFORM) grid_id = '0' # grid_reference in spot6? year = self.get_sensor().get_attribute(self.get_sensor_module().ACQUISITION_DATE).strftime('%Y') date = self.get_sensor().get_attribute(self.get_sensor_module().ACQUISITION_DATE).strftime('%Y-%m-%d') product_name = self.get_sensor().get_attribute(self.get_sensor_module().PROCESSING_LEVEL) self.output_directory = get_path_from_list([ destination, sensor_name, grid_id, year, date, product_name ]) return self.output_directory
def get_output_directory(self): ''' Creates the output directory where the files in this bundle will be persisted on the file system. ''' if self.output_directory is None: destination = getattr(SETTINGS, 'TEST_FOLDER') sensor_name = self.get_sensor().get_attribute(rapideye.SENSOR_NAME) grid_id = unicode(self.get_sensor().get_attribute(rapideye.TILE_ID)) year = self.get_sensor().get_attribute(rapideye.ACQUISITION_DATE).strftime('%Y') date = self.get_sensor().get_attribute(rapideye.ACQUISITION_DATE).strftime('%Y-%m-%d') product_name = self.get_sensor().get_attribute(rapideye.PRODUCT_NAME) self.output_directory = get_path_from_list([ destination, sensor_name, grid_id, year, date, product_name ]) return self.output_directory