Examine

class pyroSAR.examine.ExamineGamma[source]

Bases: object

Class to check if GAMMA is installed.

Examples

>>> from pyroSAR.examine import ExamineGamma
>>> config = ExamineGamma()
>>> print(config.home)
>>> print(config.version)
class pyroSAR.examine.ExamineSnap[source]

Bases: object

Class to check if ESA SNAP is installed. Upon initialization, this class searches for relevant binaries and the accompanying relative directory structure, which uniquely identify an ESA SNAP installation on a system. First, all relevant file and folder names are read from the pyroSAR config file if it exists and their existence is verified. If this fails, a system check is performed to find relevant binaries in the system PATH variable and additional files and folders relative to them. Furthermore, a snap.auxdata.properties file is scanned for auxiliary data URLs and local storage location. This is used by SNAP to manage data from e.g. the SRTM mission. In case SNAP is not installed, the respective information is read from a default file delivered with pyroSAR. This has the advantage of using the SNAP download URLs and local directory structure without having SNAP installed such that it can be adapted by other SAR software.

get_suffix(operator)[source]

get the file name suffix for an operator

Parameters:

operator (str) – the name of the operator

Returns:

the file suffix

Return type:

str

Examples

>>> from pyroSAR.examine import ExamineSnap
>>> config = ExamineSnap()
>>> print(config.get_suffix('Terrain-Flattening'))
'TF'
get_version(module)[source]

Read the version and date of different SNAP modules. This scans a file ‘messages.log’, which is re-written every time SNAP is started.

Parameters:

module (str) –

one of the following

  • core

  • desktop

  • rstb

  • opttbx

  • microwavetbx

Returns:

a dictionary with keys ‘version’ and ‘date’

Return type:

dict