astrohack.visualization.array_cfg_plot
Functions
|
Plot array configuration with an inner and an outer box. |
|
Compute the inner array box size based on the distribution of the antennas if user_box_size is None |
|
Plot an antenna to either the inner or outer array boxes |
Module Contents
- plot_array_configuration(input_dict, xdtree, caller)[source]
Plot array configuration with an inner and an outer box. :param input_dict: Dictionary of input parameters :param xdtree: Xarray xdtree containing the antenna information as attributes. :param caller: Who is calling this function
- Returns:
None
- define_inner_box_size(user_box_size, antenna_offsets, box_max_size=0.2, threshold=4)[source]
Compute the inner array box size based on the distribution of the antennas if user_box_size is None :param user_box_size: User requested box size :param antenna_offsets: Antenna offsets from array center :param box_max_size: Fractional maximum box size relative to the maximum array extent :param threshold: how big must be the jump between one antenna and the next relative to the previous jump
- Returns:
user_box_size when Not None, else returns the heuristically defined box size
- plot_one_antenna_position(outerax, innerax, xpos, ypos, text, box_size, marker='+', color='black')[source]
Plot an antenna to either the inner or outer array boxes :param outerax: Plotting axis for the outer array box :param innerax: Plotting axis for the inner array box :param xpos: X antenna position (east-west) :param ypos: Y antenna position (north-south) :param text: Antenna label :param box_size: Size of the inner array box :param marker: Antenna position marker :param color: Color for the antenna position marker