shapepipe.modules.psfex_package.psfex_script

shapepipe.modules.psfex_package.psfex_script

PSFEX SCRIPT.

This module contains a wrapper class to prepare the PSFEx command line.

Author

Axel Guinot

class PSFExCaller(psfex_executable_path, input_file_path, psfex_config_file, output_dir, outcatalog_name, check_image_list)[source]

Bases: object

The PSFEx Caller.

This class contains method to generate a PSFex command line.

Parameters
  • psfex_executable_path (str) – Full path to the PSFEx executable

  • input_file_path (str) – Full path of the input file

  • psfex_config_file (str) – Full path of the PSFEx configuration file (.psfex)

  • output_dir (str) – Full path of the output directory

  • outcatalog_name (str) – Full path pf the output catalogue

  • check_image_list (list) – List of check images

generate_command()[source]

Generate Command.

This method generates a command line for running PSFEx.

Returns

Command line with correct and complete paths for PSFEx execution

Return type

str

static parse_errors(stderr, stdout)[source]

Parse Errors.

This methoid moves errors from the standard output of PSFEx to the standard error.

Parameters
  • stderr (str) – String containing the standard error contents

  • stdout (str) – String containing the standard output content

Returns

Updated standard output and error

Return type

tuple