Dish Leaf Node
A Leaf control node for DishMaster.
- class tmcprototype.dishleafnode.src.dishleafnode.dish_leaf_node.DishLeafNode(*args: Any, **kwargs: Any)
A Leaf control node for DishMaster.
- Abort()
Invokes Abort command on the DishMaster.
- class AbortCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s Abort command.
- check_allowed()
Checks whether this command is allowed to be run in current device state
- Returns
True if this command is allowed to be run in current device state
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state
- do()
Invokes Abort command on the DishMaster.
- Parameters
argin – DevVoid
- Returns
None
- Raises
DevFailed if error ocuurs while invoking command on DishMaster.
- Configure(argin)
Configures the Dish by setting pointing coordinates for a given observation.
- class ConfigureCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s Configure() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do(argin)
Configures the Dish by setting pointing coordinates for a given scan. This function accepts the input json and calculate pointing parameters of Dish- Azimuth and Elevation Angle. Calculated parameters are again converted to json and fed to the dish master.
- Parameters
argin –
A String in a JSON format that includes pointing parameters of Dish- Azimuth and Elevation Angle.
Example: {“pointing”:{“target”:{“system”:”ICRS”,”name”:”Polaris Australis”,”RA”:”21:08:47.92”,”dec”:”-88:57:22.9”}}, “dish”:{“receiverBand”:”1”}}
- Returns
None
- Raises
DevFailed if error occurs while invoking this command on DishMaster. ValueError if argin is not in valid JSON format. KeyError if JSON key is not present in argin
- EndScan(argin)
Invokes StopCapture command on DishMaster.
- class EndScanCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s EndScan() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do(argin)
Invokes EndScan command on DishMaster.
- Parameters
argin – timestamp
- Returns
None
Example: 10.0
- Raises
ValueError if argin is of invalid (other than float) data type while invoking this command.
- class InitCommand(*args: Any, **kwargs: Any)
A class for the TMC DishLeafNode’s init_device() method.
- do()
Initializes the attributes and properties of the DishLeafNode.
- Returns
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type
(ResultCode, str)
- Raises
DevFailed if error occurs in creating proxy for DishMaster or in subscribing the event on DishMaster
- class ObsResetCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s ObsReset command.
- check_allowed()
Checks whether this command is allowed to be run in current device state
- Returns
True if this command is allowed to be run in current device state
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state
- do()
Command to reset the Dishleaf Node and bring it to its RESETTING state.
- Parameters
argin – None
- Returns
None
- Raises
DevFailed if error occurs while invoking command on Dishleaf Node.
- Restart()
Invokes Restart command on the DishMaster.
- class RestartCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s Restart command.
- check_allowed()
Checks whether this command is allowed to be run in current device state
- Returns
True if this command is allowed to be run in current device state
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state
- do()
Invokes Restart command on the DishMaster.
- Parameters
argin – DevVoid
- Returns
None
- raises: DevFailed if error occurs while invoking command on DishMaster
Exception if error occurs while executing the command
- Scan(argin)
Invokes Scan command on DishMaster.
- class ScanCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s Scan() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- do(argin)
Invokes Scan command on DishMaster.
- Parameters
argin – timestamp
- Returns
None
Example: 10.0
- Raises
ValurError if argin is of invalid (other than float) data type while invoking this command.
- SetOperateMode()
Invokes SetOperateMode command on DishMaster.
- class SetOperateModeCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s SetOperateMode() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- do()
Invokes SetOperateMode command on DishMaster.
- Returns
None
- SetStandByLPMode()
Invokes SetStandbyLPMode (i.e. Low Power State) command on DishMaster.
- class SetStandByLPModeCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s SetStandByLPMode() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do()
Invokes SetStandbyLPMode (i.e. Low Power State) command on DishMaster.
- Returns
None
- SetStandbyFPMode()
Invokes SetStandbyFPMode command on DishMaster (Standby-Full power) mode.
- class SetStandbyFPModeCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s SetStandByFPMode() command.
- check_allowed()
Checks whether this command is allowed to be run in current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do()
Invokes SetStandbyFPMode command on DishMaster (Standby-Full power) mode.
:return:None
- SetStowMode()
Invokes SetStowMode command on DishMaster.
- class SetStowModeCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s SetStowMode() command.
- check_allowed()
Checks whether the command is allowed to be run in the current state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do()
Invokes SetStowMode command on DishMaster.
- Returns
None
- Slew(argin)
Invokes Slew command on DishMaster to slew the dish towards the set pointing coordinates.
- class SlewCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s SlewCommand() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do(argin)
Invokes Slew command on DishMaster to slew the dish towards the set pointing coordinates.
- Parameters
argin – timestamp
- Returns
None
- Raises
ValueError if argin is not in valid JSON format while invoking this command on DishMaster.
- StartCapture(argin)
Triggers the DishMaster to Start capture on the set configured band.
- class StartCaptureCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s StartCapture() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do(argin)
Invokes StartCapture command on DishMaster on the set configured band.
- Parameters
argin – timestamp
- Returns
None
- Raises
ValueError if argin is not in valid JSON format while invoking this command on DishMaster.
- StopCapture(argin)
Invokes StopCapture command on DishMaster on the set configured band.
- class StopCaptureCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s StopCapture() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do(argin)
Invokes StopCapture command on DishMaster on the set configured band.
- Parameters
argin – timestamp
- Returns
None
- Raises
ValueError if argin is not in valid JSON format while invoking this command on DishMaster.
- StopTrack()
Invokes StopTrack command on the DishMaster.
- class StopTrackCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s StopTrack() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do()
Invokes StopTrack command on the DishMaster.
- Parameters
argin – None.
- Returns
None
- Raises
DevFailed if error occurs while invoking this command on DishMaster.
- Track(argin)
Invokes Track command on the DishMaster.
- class TrackCommand(*args: Any, **kwargs: Any)
A class for DishLeafNode’s Track() command.
- check_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- Raises
DevFailed if this command is not allowed to be run in current device state.
- do(argin)
Invokes Track command on the DishMaster.
- Parameters
argin – DevString
The elevation limit thread allows Dish to track a source till the observation capacity i.e. elevation limit of dish.
The tracking time thread allows dish to track a source for the prespecified Track Duration (provided elevation limit is not reached).
For Track command, argin to be provided is the Ra and Dec values in the following JSON format:
{“pointing”:{“target”:{“system”:”ICRS”,”name”:”Polaris Australis”,”RA”:”21:08:47.92”,”dec”:”-88:57:22.9”}}, “dish”:{“receiverBand”:”1”}}
- Returns
None
- Raises
JSONDecodeError if argin is not a valid JSON format, KeyError if JSON key is not present in argin while invoking this command on DishMaster.
- always_executed_hook()
Internal construct of TANGO.
- attribute_event_handler(event_data)
Retrieves the subscribed attribute of DishMaster.
- Parameters
evt – A TANGO_CHANGE event on attribute.
- Returns
None
- convert_radec_to_azel(data)
Converts RaDec coordinate in to AzEl coordinate using KATPoint library.
- Parameters
data – DevVarStringArray
Argin to be provided is the Ra and Dec values in the following format: radec|21:08:47.92|89:15:51.4 Where first value is tag that is radec, second value is Ra in Hr:Min:Sec,and third value is Dec in Deg:Min:Sec.
- Returns
None.
- Raises
Exception if error occurs in Ra-Dec to Az-El conversion
- delete_device()
Internal construct of TANGO.
- init_command_objects()
Initialises the command handlers for commands supported by this device.
- is_Abort_allowed()
Checks whether this command is allowed to be run in current device state
- Returns
True if this command is allowed to be run in current device state
- Return type
boolean
- is_Configure_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_EndScan_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_ObsReset_allowed()
Checks whether this command is allowed to be run in current device state
- Returns
True if this command is allowed to be run in current device state
- Return type
boolean
- is_Restart_allowed()
Checks whether this command is allowed to be run in current device state
- Returns
True if this command is allowed to be run in current device state
- Return type
boolean
- is_Scan_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_SetOperateMode_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_SetStandByLPMode_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_SetStandbyFPMode_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state
- Return type
boolean
- is_SetStowMode_allowed()
Checks whether the command is allowed to be run in the current state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_Slew_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_StartCapture_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_StopCapture_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_StopTrack_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- is_Track_allowed()
Checks whether this command is allowed to be run in the current device state.
- Returns
True if this command is allowed to be run in current device state.
- Return type
boolean
- read_activityMessage()
Returns the activityMessage
- set_dish_name_number()
- set_observer_lat_long_alt()
- track_thread()
This thread invokes Track command on DishMaster at the rate of 20 Hz.
- Returns
None.
- tracking_time_thread()
This thread allows the dish to track the source for a specified Duration.
- Returns
None.
- write_activityMessage(value)
Internal construct of TANGO. Sets the activityMessage
- tmcprototype.dishleafnode.src.dishleafnode.dish_leaf_node.main(args=None, **kwargs)
Runs the DishLeafNode. :param args: Arguments internal to TANGO :param kwargs: Arguments internal to TANGO :return: DishLeafNode TANGO object.