ska_ost_senscalc.mid.calculator

This module contains classes and methods for use in the SKA Sensitivity Calculator. It implements the loading of variables using properties and it is meant to substitute the old class in the future.

class ska_ost_senscalc.mid.calculator.Calculator(*, rx_band=None, frequency=None, target=None, bandwidth=None, array_configuration=None, pwv=10.0, el=<Quantity 45. deg>, eta_system=None, eta_pointing=None, eta_coherence=None, eta_digitisation=None, eta_correlation=None, eta_bandpass=None, n_ska=None, eta_ska=None, t_sys_ska=None, t_spl_ska=None, t_rx_ska=None, n_meer=None, eta_meer=None, t_sys_meer=None, t_spl_meer=None, t_rx_meer=None, t_sky_ska=None, t_sky_meer=None, t_gal_ska=None, t_gal_meer=None, alpha=2.75)[source]

Class to calculate the sensitivity of the integration time

calculate_integration_time(sensitivity)[source]

Calculate the integration time (in seconds) required to reach the specified sensitivity.

Parameters:

sensitivity (astropy.units.Quantity) – the required sensitivity (in Jy or equivalent)

Returns:

the integration time required

Return type:

astropy.units.Quantity

calculate_sensitivity(integration_time)[source]

Calculate sensitivity in Janskys for a specified integration time.

Parameters:

integration_time (astropy.units.Quantity) – the integration time (in seconds or equivalent)

Returns:

the sensitivity of the telescope

Return type:

astropy.units.Quantity

state()[source]

extracts values that are either provided explicitly or calculated implicitly and pass them to the front end to populate the SC form.

ska_ost_senscalc.mid.calculator.clean_overrides(overrides)[source]

Function to provide a clean set of overrides in which duplicated overrides for a single parameter are translated into the name of the single parameter. For example, “alpha” corresponds to a simgle parameter that is returned only if it appears as “alpha_ska” and “alpha_meer” simultaneously in the original set of overrides.