Ancillary Functions

grd_diff_lines

Determine the number of lines of overlap/gap between two GRD scenes.

set_logging

Set logging for the current process.

s1ard.ancillary.grd_diff_lines(scene1, scene2)[source]

Determine the number of lines of overlap/gap between two GRD scenes.

Parameters:
  • scene1 (ID) – the first scene

  • scene2 (ID) – the second scene (must be acquired after scene1)

Return type:

float

Returns:

the number of lines difference between the two scenes. Positive numbers indicate overlap, negative ones a gap.

s1ard.ancillary.set_logging(config, debug=False)[source]

Set logging for the current process.

Parameters:
  • config (dict) – Dictionary of the parsed config parameters for the current process.

  • debug (bool) – Set logging level to DEBUG?

Returns:

The log handler for the current process.

Return type:

logging.Logger