MultiProFitPsfConfig#

class lsst.meas.extensions.multiprofit.fit_coadd_psf.MultiProFitPsfConfig(*args, **kw)#

Bases: CatalogPsfFitterConfig, CoaddPsfFitSubConfig

Configuration for the MultiProFit Gaussian mixture PSF fitter.

Attributes Summary

column_id

Catalog index column key (str, default 'id')

compute_errors

Whether/how to compute sqrt(variances) of each free parameter (str, default 'INV_HESSIAN_BESTFIT')

compute_errors_from_jacobian

Whether to estimate the Hessian from the Jacobian first, with finite differencing as a backup (bool, default True)

compute_errors_no_covar

Whether to compute parameter errors independently, ignoring covariances (bool, default True)

config_fit

Fitter configuration (ModelFitConfig, default <class 'lsst.multiprofit.modeller.ModelFitConfig'>)

fit_centroid

Fit centroid parameters (bool, default True)

fit_linear_final

Fit linear parameters after optimization (bool, default True)

fit_linear_init

Fit linear parameters after initialization (bool, default True)

fit_parents

Whether to fit parent object PSFs (bool, default False)

flag_errors

Flag column names to set, keyed by name of exception to catch (Dict, default {})

float_fill_value

Fill value for float fields when creating the output table.

initialize_ellipses

Whether to initialize the ellipse parameters from the model config; if False, they will remain at the best-fit values for the previous source's PSF (bool, default True)

integer_fill_value

Fill value for integer fields when creating the output table.

model

PSF model configuration (SourceConfig, default lsst.multiprofit.sourceconfig.SourceConfig(component_groups={'': {'centroids': {'default': {'x': {'fixed': False, 'value_initial': 0.0}, 'y': {'fixed': False, 'value_initial': 0.0}}}, 'components_gauss': {'gauss1': {'prior_axrat_mean': 0.7, 'prior_axrat_stddev': 0.0, 'prior_size_mean': 1.0, 'prior_size_stddev': 0.0, 'fluxfrac': {'fixed': False, 'value_initial': 0.5}, 'flux': {'fixed': True, 'value_initial': 1.0}, 'rho': {'fixed': False, 'value_initial': 0.0}, 'size_x': {'fixed': False, 'value_initial': 1.5}, 'size_y': {'fixed': False, 'value_initial': 1.5}, 'transform_flux_name': 'log10', 'transform_fluxfrac_name': 'logit_fluxfrac', 'transform_rho_name': 'logit_rho', 'transform_size_name': 'log10', 'transform_frac_name': 'log10'}, 'gauss2': {'prior_axrat_mean': 0.7, 'prior_axrat_stddev': 0.0, 'prior_size_mean': 1.0, 'prior_size_stddev': 0.0, 'fluxfrac': {'fixed': True, 'value_initial': 1.0}, 'flux': {'fixed': False, 'value_initial': 1.0}, 'rho': {'fixed': False, 'value_initial': 0.0}, 'size_x': {'fixed': False, 'value_initial': 3.0}, 'size_y': {'fixed': False, 'value_initial': 3.0}, 'transform_flux_name': 'log10', 'transform_fluxfrac_name': 'logit_fluxfrac', 'transform_rho_name': 'logit_rho', 'transform_size_name': 'log10', 'transform_frac_name': 'log10'}}, 'components_sersic': {}, 'is_fractional': True, 'transform_fluxfrac_name': 'logit_fluxfrac', 'transform_flux_name': 'log10'}}))

naming_scheme

Naming scheme for column names (str, default 'default')

prefix_column

Column name prefix (str, default 'mpf_deepCoaddPsf_')

prior_axrat_mean

Mean for axis ratio prior (float, default 0.95)

sigma_min

Minimum sigma in pixels for PSF components.

suffix_error

Default suffix for error columns.

Methods Summary

setDefaults()

Subclass hook for computing defaults.

Attributes Documentation

column_id#

Catalog index column key (str, default 'id')

compute_errors#

Whether/how to compute sqrt(variances) of each free parameter (str, default 'INV_HESSIAN_BESTFIT')

Allowed values:

'NONE'

no errors computed

'INV_HESSIAN'

inverse hessian using noisy image as data

'INV_HESSIAN_BESTFIT'

inverse hessian using best-fit model as data

'None'

Field is optional

compute_errors_from_jacobian#

Whether to estimate the Hessian from the Jacobian first, with finite differencing as a backup (bool, default True)

compute_errors_no_covar#

Whether to compute parameter errors independently, ignoring covariances (bool, default True)

config_fit#

Fitter configuration (ModelFitConfig, default <class 'lsst.multiprofit.modeller.ModelFitConfig'>)

fit_centroid#

Fit centroid parameters (bool, default True)

fit_linear_final#

Fit linear parameters after optimization (bool, default True)

fit_linear_init#

Fit linear parameters after initialization (bool, default True)

fit_parents#

Whether to fit parent object PSFs (bool, default False)

flag_errors#

Flag column names to set, keyed by name of exception to catch (Dict, default {})

float_fill_value#

Fill value for float fields when creating the output table. (float, default nan)

initialize_ellipses#

Whether to initialize the ellipse parameters from the model config; if False, they will remain at the best-fit values for the previous source’s PSF (bool, default True)

integer_fill_value#

Fill value for integer fields when creating the output table. (int, default -1)

model#

PSF model configuration (SourceConfig, default lsst.multiprofit.sourceconfig.SourceConfig(component_groups={'': {'centroids': {'default': {'x': {'fixed': False, 'value_initial': 0.0}, 'y': {'fixed': False, 'value_initial': 0.0}}}, 'components_gauss': {'gauss1': {'prior_axrat_mean': 0.7, 'prior_axrat_stddev': 0.0, 'prior_size_mean': 1.0, 'prior_size_stddev': 0.0, 'fluxfrac': {'fixed': False, 'value_initial': 0.5}, 'flux': {'fixed': True, 'value_initial': 1.0}, 'rho': {'fixed': False, 'value_initial': 0.0}, 'size_x': {'fixed': False, 'value_initial': 1.5}, 'size_y': {'fixed': False, 'value_initial': 1.5}, 'transform_flux_name': 'log10', 'transform_fluxfrac_name': 'logit_fluxfrac', 'transform_rho_name': 'logit_rho', 'transform_size_name': 'log10', 'transform_frac_name': 'log10'}, 'gauss2': {'prior_axrat_mean': 0.7, 'prior_axrat_stddev': 0.0, 'prior_size_mean': 1.0, 'prior_size_stddev': 0.0, 'fluxfrac': {'fixed': True, 'value_initial': 1.0}, 'flux': {'fixed': False, 'value_initial': 1.0}, 'rho': {'fixed': False, 'value_initial': 0.0}, 'size_x': {'fixed': False, 'value_initial': 3.0}, 'size_y': {'fixed': False, 'value_initial': 3.0}, 'transform_flux_name': 'log10', 'transform_fluxfrac_name': 'logit_fluxfrac', 'transform_rho_name': 'logit_rho', 'transform_size_name': 'log10', 'transform_frac_name': 'log10'}}, 'components_sersic': {}, 'is_fractional': True, 'transform_fluxfrac_name': 'logit_fluxfrac', 'transform_flux_name': 'log10'}}))

naming_scheme#

Naming scheme for column names (str, default 'default')

Allowed values:

'default'

snake_case with {component_name}[_{band}]_{parameter}[_err]

'camel'

CamelCase with {component_name}[_{band}]_{parameter}[Err]

'lsst'

snake_case with [{band}_]{component_name}_{parameter}[Err]

'None'

Field is optional

prefix_column#

Column name prefix (str, default 'mpf_deepCoaddPsf_')

prior_axrat_mean#

Mean for axis ratio prior (float, default 0.95)

sigma_min#

Minimum sigma in pixels for PSF components. Must be >=0.8 to avoid undersampling. (float, default 0.8)

suffix_error#

Default suffix for error columns. Can be overridden by naming_scheme. (str, default '_err')

Methods Documentation

setDefaults()#

Subclass hook for computing defaults.

Notes#

Derived Config classes that must compute defaults rather than using the Field instances’s defaults should do so here. To correctly use inherited defaults, implementations of setDefaults must call their base class’s setDefaults.