chandra_aca.star_probs#

Functions related to probabilities for star acquisition and guide tracking.

Current default acquisition probability model: grid-* (latest grid model) This can be changed by setting the module configuration value conf.default_model to an available model or model glob in the chandra_models repository.

The grid-local-quadratic-2023-05 model definition and fit values based on:

The grid-floor-2020-02 model definition and fit values based on:

Attributes#

Classes#

ConfigItem

A setting and associated value stored in a configuration file.

Conf

A namespace of configuration items. Each subpackage with

Functions#

get_box_delta(halfwidth)

Transform from halfwidth (arcsec) to the box_delta value.

set_acq_model_ms_filter([ms_enabled])

Set acq model multiple star filter.

t_ccd_warm_limit(mags[, date, colors, halfwidths, ...])

Find the warmest CCD temperature which meets the min_n_acq acquisition stars criterion.

_prob_n_acq(star_probs, n_stars, n_acq_probs)

Jit-able portion of prob_n_acq

prob_n_acq(star_probs)

Get probability of acquiring n_acq stars.

acq_success_prob([date, t_ccd, mag, color, spoiler, ...])

Get acquisition success probability.

get_default_acq_prob_model_info([verbose])

Get info about the default acquisition probability model.

clip_and_warn(name, val, val_lo, val_hi, model[, ...])

Clip val to be in the range val_lo to val_hi.

get_grid_axis_values(hdr, axis)

Get grid model axis values from FITS header.

get_grid_func_model([model, version, repo_path])

Get grid model from the model name.

_get_grid_func_model(model, version, repo_path)

_read_grid_func_model(models_dir[, model_name])

Read the model file and put into local vars

_get_date_from_model_filename(filepath)

grid_model_acq_prob([mag, t_ccd, color, halfwidth, ...])

Calculate grid model probability.

spline_model_acq_prob([mag, t_ccd, color, halfwidth, ...])

Calculate spline model acq probability.

model_acq_success_prob(mag, warm_frac[, color, halfwidth])

Call sota_model_acq_prob().

sota_model_acq_prob(mag, warm_frac[, color, halfwidth])

Calculate raw SOTA model probability of acquisition success.

mag_for_p_acq(p_acq[, date, t_ccd, halfwidth, model])

Calculate star magnitude for a given acquisition probability.

guide_count(mags, t_ccd[, count_9th])

Calculate guide star fractional count.

t_ccd_warm_limit_for_guide(mags[, min_guide_count, ...])

Solve for the warmest temperature that still gets the min_guide_count.

binom_ppf(k, n, conf[, n_sample])

Compute percent point function (inverse of CDF) for binomial.

binomial_confidence_interval(n_success, n_trials[, ...])

Binomial confidence interval calculation using the Jeffreys prior.

Module Contents#

chandra_aca.star_probs.SPLINE_FUNCS[source]#
chandra_aca.star_probs.WARM_THRESHOLD = 100[source]#
chandra_aca.star_probs.MIN_ACQ_PROB = 1e-06[source]#
chandra_aca.star_probs.MAX_ACQ_PROB = 0.985[source]#
chandra_aca.star_probs.MULT_STARS_ENABLED = False[source]#
chandra_aca.star_probs.conf[source]#