def process_arguments(self, args):

        # Call method on super class
        # super(self.__class__, self).process_arguments(args)
        AoiTool.process_arguments(self, args)

        self.dataset_type = args.dataset_type
        self.bands = args.bands
        self.output_directory = args.output_directory
        self.overwrite = args.overwrite
        self.list_only = args.list_only
        self.output_no_data = args.output_no_data
Exemplo n.º 2
0
    def process_arguments(self, args):

        # Call method on super class
        # super(self.__class__, self).process_arguments(args)
        AoiTool.process_arguments(self, args)

        self.dataset_type = args.dataset_type

        if args.bands == BandListType.ALL:
            self.bands = get_band_name_union(self.dataset_type, self.satellites)
        elif args.bands == BandListType.COMMON:
            self.bands = get_band_name_intersection(self.dataset_type, self.satellites)
        else:
            self.bands = []
            potential_bands = get_band_name_union(self.dataset_type, self.satellites)
            for band in args.bands:
                if band in potential_bands:
                    self.bands.append(band)

        self.output_directory = args.output_directory
        self.overwrite = args.overwrite
        self.list_only = args.list_only
        self.output_no_data = args.output_no_data