lvmsurveysim.telescope

class lvmsurveysim.telescope.Telescope(name, diameter=None, f=None)[source]

Bases: object

A class to represent a telescope.

Holds information about a specific telescope such as diameter and focal ratio. Calculates derived quantities such as focal length and plate scale. A Telescope object can be instantiated with a name followed by a series of values, or just with the name. In the latter case the necessary information must be contained in the configuration file, under the telescopes field.

Parameters
  • name (str) – The name of the telescope. If only the name is provided, the information will be grabbed from the configuration file.

  • diameter (float) – The diameter of the telescope, in meters

  • f (float) – The f number of the telescope.

classmethod from_config(name)[source]

Loads a telescope configuration from the configuration file.

Example

>>> lvm160 = Telescope.from_config('LVM-160)
property focal_length

Returns the focal length of the telescope.

property plate_scale

Returns the plate scale as an Quantity.