CheckMethod

CheckMethod

class CheckMethod(value)[source]

Bases: sertit.misc.ListEnum

Methods to recognize a product

Attributes

MTD

faster method

NAME

Check the filename:

BOTH

Double check if you have a doubt.

BOTH = 'Both'

Double check if you have a doubt.

Type

Check the metadata and the filename

MTD = 'Metadata'

faster method

Type

Check the metadata

NAME = 'Filename'

Check the filename:

Safer method that allows modified product names as it recursively looks for the metadata name in the product files. For products that have generic metadata files (ie. RS2 that as mtd named product.xml), it also checks the band name.