Example #1
0
    def create_rgb(self, outfile, driver='GTiff'):

        # invert ot db from create_ard workflow for rgb creation
        # (otherwise we do it double)
        if self.ard_parameters['to_db']:
            to_db = False
        else:
            to_db = True

        ard_to_rgb(self.ard_dimap, outfile, driver, to_db)
        self.ard_rgb = outfile
Example #2
0
    def create_rgb_thumbnail(self, outfile, shrink_factor=25):

        # invert ot db from create_ard workflow for rgb creation
        # (otherwise we do it double)
        if self.ard_parameters['single_ARD']['to_db']:
            to_db = False
        else:
            to_db = True

        self.rgb_thumbnail = outfile
        driver = 'JPEG'
        ard_to_rgb(self.ard_dimap, self.rgb_thumbnail, driver, to_db,
                   shrink_factor)