astrohack.io.locit_mds

Module Contents

Classes

AstrohackLocitFile

Data class for locit data.

class AstrohackLocitFile(file: str)[source]

Data class for locit data.

Data within an object of this class can be selected for further inspection, plotted or produce a report

print_source_table(self)None[source]

Prints a table with the sources observed for antenna location determination

print_array_configuration(self, relative: bool = True)None[source]

Prints a table containing the array configuration

Parameters

relative (bool, optional) – Print antenna coordinates relative to array center or in geocentric coordinates, default is True

Print arrayx configuration in the dataset. Also marks the reference antenna and the antennas that are absent from the dataset. Coordinates of antenna stations can be relative to the array center or Geocentric (longitude, latitude and radius)

plot_source_positions(self, destination: str, labels: bool = True, precessed: bool = False, display: bool = False, figure_size: Union[Tuple, List[float], numpy.array] = None, dpi: int = 300)None[source]

Plot source positions in either FK5 or precessed right ascension and declination.

Parameters
  • destination (str) – Name of the destination folder to contain plot

  • labels (bool, optional) – Add source labels to the plot, defaults to False

  • precessed (bool, optional) – Plot in precessed coordinates? defaults to False (FK5)

  • display (bool, optional) – Display plots inline or suppress, defaults to True

  • figure_size (numpy.ndarray, list, tuple, optional) – 2 element array/list/tuple with the plot sizes in inches

  • dpi (int, optional) – dots per inch to be used in plots, default is 300

Plot the sources on the source list to a full 24 hours 180 degrees flat 2D representation of the full sky. If precessed is set to True the coordinates precessd to the midpoint of the observations is plotted, otherwise the FK5 coordinates are plotted. The source names can be plotted next to their positions if label is True, however plots may become too crowded if that is the case.

plot_array_configuration(self, destination: str, stations: bool = True, zoff: bool = False, unit: str = 'm', box_size: Union[int, float] = None, display: bool = False, figure_size: Union[Tuple, List[float], numpy.array] = None, dpi: int = 300)None[source]

Plot antenna positions.

Parameters
  • destination (str) – Name of the destination folder to contain plot

  • stations (bool, optional) – Add station names to the plot, defaults to True

  • zoff (bool, optional) – Add Elevation offsets to the plots, defaults to False

  • unit (str, optional) – Unit for the plot, valid values are length units, default is km

  • box_size (int, float, optional) – Size of the box for plotting the inner part of the array in unit, when none the box size is 20% of the total size of the array, default is None

  • display (bool, optional) – Display plots inline or suppress, defaults to True

  • figure_size (numpy.ndarray, list, tuple, optional) – 2 element array/list/tuple with the plot sizes in inches

  • dpi (int, optional) – dots per inch to be used in plots, default is 300

Plot the array configuration from the antenna positions.