RasterType.accept

RasterType.accept(file: Path | str) bool[source]

Check if the file corresponds to this raster type

Parameters:

file (Path or str) – Product name or path to analyse

Returns:

True if the file matches this RasterType

Return type:

bool