ska_dishln_pointing_device.mapping_scan

Link to the TMC User documentation is here <https://confluence.skatelescope.org/display/UD/TMC+User+Documentation>_.

mapping

This module provides base class for the mappings/patterns

class ska_dishln_pointing_device.mapping_scan.mapping.BaseScanMapping(component_manager, logger: Logger)

Bases: object

Base class for all scan mappings/patterns

build_data_for_observation()

Build Data for Observation based on the target data provided in the dish configure input.

Raises:
  • InvalidTargetDataError – If target data is missing or invalid.

  • Exception – If target construction fails.

extract_target_from_config()

Method to set the received ra and dec in the pointing groups field key

get_fixed_trajectory_offsets()

Get Fixed Trajectory Offsets

Returns:

Tuple containing x and y offsets.

Return type:

tuple[float, float]

get_offset_in_rad(x: float, y: float) tuple

Get the offset in radian

Returns:

offset in radian.

Return type:

tuple

get_projection() List[Union[str, Any]]

This method returns the projection name and projection alignment

Returns:

projection name, projection alignment

Return type:

List

get_radec_from_plane_to_sphere() Tuple[float, float]

Convert plane coordinates to RA/Dec using spherical projection.

Returns:

A list containing the calculated RA and Dec coordinates in string.

Return type:

List[str]

get_time_offsets_and_set_cadence() list

Get the time offsets for the scan. :return: A list of time offsets.

get_trajectory_name()

Create Trajectory Object and set duration

Returns:

Name of the trajectory

Return type:

str

set_projection_data() None

Method to set projection type for given observation.

set_target_and_start_process()

Generate program track table for normal scans.

Parameters:
  • scan_parameters (dict) – A dictionary containing scan parameters.

  • scan_id (str) – A string representing the scan ID.

Returns:

A dictionary containing the program track table.

Return type:

dict

set_trajectory_and_duration()

Create Trajectory Object and set duration

setup_observation_target() None

Set target required for mapping scan

point_mapping

Module for generating program track table for normal scans

class ska_dishln_pointing_device.mapping_scan.point_mapping.FixedMappingScan(component_manager, logger: Logger)

Bases: BaseScanMapping

FixedMappingScan class inherits from BaseScanMapping class. It is used to generate program track table for normal scans.