shapepipe.modules.merge_starcat_package.merge_starcat

shapepipe.modules.merge_starcat_package.merge_starcat

MERGE STAR CATALOGUES.

This module contains a class to identify single exposures that were used to create tiles.

Authors

Martin Kilbinger <martin.kilbinger@cea.fr>, Tobias Liaudat, Morgan Schmitz, Axel Guinot

class MergeStarCatMCCD(input_file_list, output_dir, w_log, stamp_size=51, rad=10, hdu_table=1)[source]

Bases: object

Merge Star Catalogue MCCD.

Merge star catalogues of MCCD PSF model output.

Parameters
  • input_file_list (list) – Input files

  • output_dir (str) – Output directory

  • w_log (logging.Logger) – Logging instance

  • stamp_size (int, optional) – Stamp size, in pixels; default is 51

  • rad (int, optional) – Radius for mask, in pixels; default is 10

  • hdu_table (int, optional) – HDU number; default is 1

static rmse_calc(values, sizes)[source]

Calculate RMSE.

Calculate square root of mean over input values. If values is an array with element \(j\) being \(\sum_j^{N_j}x_{i, j}^2\), where \(x_{ij}\) is the residual (ground truth - estimation), and sizes is the array \(N_j\), then this function computes the RMSE.

Parameters
  • values (list) – Sums of pixel values for a list of input images

  • sizes (list) – Number of pixels for a list of input images

Returns

rmse – Root mean square error

Return type

float

static rmse_calc_2(values, sizes)[source]

Calculate RMSE 2.

Calculate square root of mean over squared input valuess. If values is an array with element \(j\) being \(\sum_j^{N_j}x_{i, j}\), where \(x_{ij}\) is the residual (ground truth - estimation), and sizes is the array \(N_j\), then this function computes the RMSE.

Parameters
  • values (list) – Sums of pixel values for a list of input images

  • sizes (list) – Number of pixels for a list of input images

Returns

Root mean square error

Return type

float

static mean_calc(values, sizes)[source]

Calculate Mean.

Calculate pixel mean over all input images.

Parameters
  • values (list) – Sums of pixel values for a list of input images

  • sizes (list) – Number of pixels for a list of input images

Returns

Mean

Return type

float

static std_calc(values)[source]

Calculate Standard Deviation.

Calculate pixel standard deviation over all input images.

Parameters
  • values (list) – Sums of pixel values for a list of input images

  • sizes (list) – Number of pixels for a list of input images

Returns

Standard deviation

Return type

float

static stats_calculator(val_ref, val_model)[source]

Calculate Stats.

Calculate RMSE, mean, and standard deviation of residuals.

Parameters
  • val_ref (list) – Reference values

  • val_model (list) – Model values

Returns

Root mean square error, mean and standard deviation

Return type

tuple

process()[source]

Process.

Process merging.

class MergeStarCatPSFEX(input_file_list, output_dir, w_log, hdu_table=2)[source]

Bases: object

Merge Star Catalogue PSFEx.

Merge star catalogues of PSFEx PSF model output.

Parameters
  • input_file_list (list) – Input files

  • output_dir (str) – Output directory

  • w_log (logging.Logger) – Logging instance

  • hdu_table (int, optional) – HDU number; default is 2

process()[source]

Process.

Process merging.