reader.core

core.py contains all classes and methods related to data that is found in all BEAM-DIMAP files. This is usually the data that is found at the top of the BEAM-DIMAP file.

This class is not designed to be directly used by the user. It is designed for the classes in PyBeamDimap.missions.

class PyBeamDimap.reader.core.BeamDimap(metadata: str, processing_level: str)

Bases: object

__init__(metadata: str, processing_level: str)

Class that handles BEAM-DIMAP data that is present in all missions. This is intended for BEAM-DIMAP files only and not the raw ZIP files of the Sentinel satellites. This is meant to be subclassed by the Sentinel classes in missions.py

Parameters

metadata – Path of BEAM-DIMAP (.dim) file

class PyBeamDimap.reader.core.ImageInterpretation(metadata)

Bases: object

__init__(metadata)

Class that handles ImageInterpretation section of BEAM-DIMAP files

Parameters

metadata – Parsed metadata file

property band_data: list

List containing metadata for all available bands

get_band_info(band_index=None, attribute=None)

Load metadata that is specific for loading band-specific data such as wavelength, band name, dimensions, and more.

Parameters
  • band_index – Load specific band using its band index. Default value None will load all bands

  • attribute – Name of specific attribute to load. If None then it will load all attributes for the band.

Returns

Dict containing band specific information