opticam.noise
Functions
|
Get the standard error (in magnitudes) of the sky noise. |
|
Get the standard error (in magnitudes) of the shot noise. |
|
Get the standard error (in magnitudes) of the bias variance. |
|
Get the standard error (in magnitudes) of the dark noise variance. |
|
Get the standard error (in magnitudes) of the flat-field variance. |
|
Get the standard error (in magnitudes) of the readout noise. |
|
Get the standard error (in magnitudes) of the scintillation noise. |
|
The (simplified) S/N ratio equation or CCD Equation (see Chapter 4.4 of Handbook of CCD Astronomy by Howell, 2006). |
|
The standard error (in magnitudes) on the CCD Equation (see Chapter 4.4 of Handbook of CCD Astronomy by Howell, |
Module Contents
- opticam.noise.get_sky_stderr(N_source, N_pix, n_sky)
Get the standard error (in magnitudes) of the sky noise.
Parameters
- N_sourcefloat
The total number of source counts.
- N_pixint
The number of aperture pixels.
- n_skyfloat
The number of sky counts per pixel.
Returns
- float
The standard error (in magnitudes) of the sky noise.
- Parameters:
N_source (float)
N_pix (float)
n_sky (float)
- Return type:
float
- opticam.noise.get_shot_stderr(N_source)
Get the standard error (in magnitudes) of the shot noise.
Parameters
- N_sourcefloat
The total number of source counts.
Returns
- float
The standard error (in magnitudes) of the shot noise.
- Parameters:
N_source (float)
- Return type:
float
- opticam.noise.get_bias_stderr(N_source, N_pix, bias_var)
Get the standard error (in magnitudes) of the bias variance.
Parameters
- N_sourceQuantity
The total number of source counts.
- N_pixint
The number of aperture pixels.
- bias_varQuantity
The bias variance.
Returns
- float
The standard error (in magnitudes) of the bias variance.
- Parameters:
N_source (float)
N_pix (float)
bias_var (float)
- Return type:
float
- opticam.noise.get_dark_stderr(N_source, N_pix, dark_var)
Get the standard error (in magnitudes) of the dark noise variance.
Parameters
- N_sourcefloat
The total number of source counts.
- N_pixint
The number of aperture pixels.
- dark_varfloat
The dark noise variance.
Returns
- float
The standard error (in magnitudes) of the dark noise.
- Parameters:
N_source (float)
N_pix (float)
dark_var (float)
- Return type:
float
- opticam.noise.get_flat_stderr(N_source, N_pix, flat_var)
Get the standard error (in magnitudes) of the flat-field variance.
Parameters
- N_sourcefloat
The total number of source counts.
- N_pixint
The number of aperture pixels.
- flat_varfloat
The flat-field variance.
Returns
- float
The standard error (in magnitudes) of the flat-field variance.
- Parameters:
N_source (float)
N_pix (float)
flat_var (float)
- Return type:
float
- opticam.noise.get_read_stderr(N_source, N_pix, read_noise)
Get the standard error (in magnitudes) of the readout noise.
Parameters
- N_sourcefloat
The total number of source counts.
- N_pixfloat
The number of aperture pixels.
- read_noisefloat
The read noise of the detector in electrons/pixel.
Returns
- float
The standard error (in magnitudes) of the readout noise.
- Parameters:
N_source (float)
N_pix (float)
read_noise (float)
- Return type:
float
- opticam.noise.get_scint_stderr(N_source, rel_scint_noise)
Get the standard error (in magnitudes) of the scintillation noise.
Parameters
- N_sourcefloat | NDArray
The total number of source counts.
- rel_scint_noisefloat
The relative scintillation noise.
Returns
- float | NDArray
The standard error (in magnitudes) of the scintillation noise.
- Parameters:
N_source (float | numpy.typing.NDArray)
rel_scint_noise (float)
- Return type:
float | numpy.typing.NDArray
- opticam.noise.snr(N_source, N_pix, n_sky, bias_var, dark_var, flat_var, read_noise, scint_noise)
The (simplified) S/N ratio equation or CCD Equation (see Chapter 4.4 of Handbook of CCD Astronomy by Howell, 2006).
Parameters
- N_sourcefloat | NDArray
The total number of source counts.
- N_pixint
The number of aperture pixels.
- n_skyfloat
The number of sky counts per pixel.
- bias_varfloat
The bias variance.
- dark_varfloat
The dark noise variance.
- flat_varfloat
The flat-field variance.
- read_noisefloat
The read noise of the detector in electrons/pixel.
- scint_noiseNDArray
The scintillation noise.
Returns
- float | NDArray
The S/N ratio.
- Parameters:
N_source (float | numpy.typing.NDArray)
N_pix (float)
n_sky (float)
bias_var (float)
dark_var (float)
flat_var (float)
read_noise (float)
scint_noise (numpy.typing.NDArray)
- Return type:
float | numpy.typing.NDArray
- opticam.noise.snr_stderr(N_source, N_pix, n_sky, bias_var, dark_var, flat_var, read_noise, rel_scint_noise)
The standard error (in magnitudes) on the CCD Equation (see Chapter 4.4 of Handbook of CCD Astronomy by Howell, 2006).
Parameters
- N_sourcefloat | NDArray
The total number of source counts.
- N_pixfloat
The number of aperture pixels.
- n_skyfloat
The number of sky counts per pixel.
- bias_varfloat
The bias variance.
- dark_varfloat
The dark noise variance.
- flat_varfloat
The flat-field variance.
- read_noisefloat
The read noise of the detector in electrons/pixel.
- rel_scint_noisefloat
The relative scintillation noise.
Returns
- float | NDArray
The standard error (in magnitudes) on the S/N ratio.
- Parameters:
N_source (float | numpy.typing.NDArray)
N_pix (float)
n_sky (float)
bias_var (float)
dark_var (float)
flat_var (float)
read_noise (float)
rel_scint_noise (float)
- Return type:
float | numpy.typing.NDArray