astrohack.utils.tools

Functions

get_valid_state_ids(obs_modes[, desired_intent, ...])

Get scan and subscan IDs

get_telescope_lat_lon_rad(telescope)

Return array center's latitude, longitude and distance to the center of the earth based on the coordinate reference

get_str_idx_in_list(target, array)

raise_type_error(var_name, class_name)

check_is_proper_type(var, class_ref)

check_is_proper_array(array[, ndim])

check_is_proper_shape(array, shape)

Module Contents

get_valid_state_ids(obs_modes, desired_intent='MAP_ANTENNA_SURFACE', excluded_intents=('REFERENCE', 'SYSTEM_CONFIGURATION'))[source]

Get scan and subscan IDs SDM Tables Short Description (https://drive.google.com/file/d/16a3g0GQxgcO7N_ZabfdtexQ8r2jRbYIS/view) 2.54 ScanIntent (p. 150) MAP ANTENNA SURFACE : Holography calibration scan

2.61 SubscanIntent (p. 152) MIXED : Pointing measurement, some antennas are on-source, some off-source REFERENCE : reference measurement (used for boresight in holography). SYSTEM_CONFIGURATION: dummy scans at the begininng of each row at the VLA. Undefined : ?

get_telescope_lat_lon_rad(telescope)[source]

Return array center’s latitude, longitude and distance to the center of the earth based on the coordinate reference :param telescope: Telescope object

Returns: Array center latitude, longitude and distance to the center of the Earth in meters

get_str_idx_in_list(target, array)[source]
raise_type_error(var_name, class_name)[source]
check_is_proper_type(var, class_ref)[source]
check_is_proper_array(array, ndim=None)[source]
check_is_proper_shape(array, shape)[source]