ska_tmc_cspsubarrayleafnode.delay_model package

Submodules

ska_tmc_cspsubarrayleafnode.delay_model module

DelayManager class

class ska_tmc_cspsubarrayleafnode.delay_model.AntennaParams

Bases: object

Antenna parameter class

class ska_tmc_cspsubarrayleafnode.delay_model.DelayManager(csp_sln_cm, delay_model_time_in_advance, delay_cadence, logger=None)

Bases: object

The class that includes common methods required for delay calculation in SKA Mid and SKA Low.

calculate_delay_model()

Calculates delays using KatPoint library

create_antenna_objects(antenna_params)

This method creates object of Antenna class of katPoint Library

delay_model_handler(argin)

This method calculates the delay model for consumption of CSP subarray. The epoch value is the current timestamp value. Delay calculation starts when configure command is invoked. It calls the function which internally calculates delay values using KATPoint library and converts them to fifth order polynomial coefficients.

Parameters:

argin – int. The argument contains delay model update interval in seconds.

Returns:

None.

start()

Starts delay model calculator thread to update delay model

stop()

Stops delay model calculator thread to update delay model

update_config_params()

In this method parameters related to the resources assigned, are updated every time assign, release or configure commands are executed.

Parameters:

argin – None

Returns:

None

class ska_tmc_cspsubarrayleafnode.delay_model.Location

Bases: object

Location class

ska_tmc_cspsubarrayleafnode.delay_model.get_antenna_params(antenna_params)

Returns antenna param object

ska_tmc_cspsubarrayleafnode.delay_model_mid module

DelayManagerMid class

class ska_tmc_cspsubarrayleafnode.delay_model_mid.DelayManagerMid(csp_sln_cm, delay_model_time_in_advance, delay_cadence, delay_validity_period, logger=None)

Bases: DelayManager

A class that calculates geometric delays for SKA Mid

calculate_delay_model()

Calculates delays using KatPoint library

calculate_geometric_delays(time_t0, antenna_names)

This method calculates geometric delay values (in Second) using KATPoint library. It requires delay correction object, timestamp t0 and target RaDec. Numpy library is used to convert delay values (in Seconds) to fifth order polynomial coefficients. Six timestamps from the time-frame t0 to t+10, are used to calculate delays per antenna. These six delay values are then used to calculate fifth order polynomial coefficients. In order to calculate delays in advance, timestamp t0 is considered to be one minute ahead of the the current timestamp.

Parameters:

argin – time_t0

Returns:

Dictionary containing fifth order polynomial coefficients per antenna per fsp.

update_config_params()

In this method parameters related to the resources assigned, are updated every time assign, release or configure commands are executed.

Parameters:

argin – None

Returns:

None

ska_tmc_cspsubarrayleafnode.delay_model_low module

DelayManagerLow class

class ska_tmc_cspsubarrayleafnode.delay_model_low.DelayManagerLow(csp_sln_cm, delay_model_time_in_advance, delay_cadence, delay_validity_period, logger=None)

Bases: DelayManager

A class that calculates geometric delays for SKA Low

calculate_delay_model()

Calculates delays using KatPoint library

calculate_geometric_delays(time_t0, antenna_names)

This method calculates geometric delay values (in Second) using KATPoint library. It requires delay correction object, timestamp t0 and target RaDec. Numpy library is used to convert delay values (in Seconds) to fifth order polynomial coefficients. Twenty timestamps from the time-frame t0 to valid period , and 4 points before and 5 after are used to calculate delays per antenna. These Twenty delay values are then used to calculate fifth order polynomial coefficients. In order to calculate delays in advance, timestamp t0 is considered to ahead of the the current timestamp.

Parameters:

argin – time_t0

Returns:

Dictionary containing fifth order polynomial coefficients per antenna per fsp.

update_config_params()

In this method parameters related to the resources assigned, are updated every time assign, release or configure commands are executed.

Parameters:

argin – None

Returns:

None