PointingObservation

class ctapointing.observation.PointingObservation(prefix=None, **fields)

Bases: Container

Class storing information about a pointing observation

uuid

UUID

Type:

Field(default=None, type=str)

target_name

target name

Type:

Field(default=, type=str)

start_time

start time of exposure

Type:

Field(default=None, type=Time)

duration

exposure duration

Type:

Field(default=nan s, unit=s)

target_pos_ra

target position (right ascension)

Type:

Field(default=nan deg, unit=deg)

target_pos_dec

target position (declination)

Type:

Field(default=nan deg, unit=deg)

location_x

geocentric location (x)

Type:

Field(default=nan m, unit=m)

location_y

geocentric location (y)

Type:

Field(default=nan m, unit=m)

location_z

geocentric location (z)

Type:

Field(default=nan m, unit=m)

ambient_pressure

atmospheric pressure

Type:

Field(default=nan mbar, unit=mbar)

ambient_temperature

atmospheric temperature

Type:

Field(default=nan deg_C, unit=deg_C)

meta

dict of attached metadata

Type:

dict

prefix

Prefix attached to column names when saved to a table or file

Type:

str

Attributes Summary

altazframe

Return AltAz frame, using currently available meta information.

ambient_pressure

ambient_temperature

default_prefix

duration

fields

location_x

location_y

location_z

mean_observation_time

Return time of mean time of observation.

meta

prefix

start_time

target_name

target_pos_altaz

Return AltAz telescope pointing, i.e. the telescope orientation at the time of mean exposure.

target_pos_dec

target_pos_ra

uuid

Methods Summary

from_name(name, **kwargs)

Load PointingObservation from HDF5 file or database. See `ctapointing.io.from_name()`for details.

Attributes Documentation

altazframe

Return AltAz frame, using currently available meta information.

ambient_pressure
ambient_temperature
default_prefix = 'pointingobservation'
duration
fields = {'ambient_pressure': Field(default=nan mbar, unit=mbar), 'ambient_temperature': Field(default=nan deg_C, unit=deg_C), 'duration': Field(default=nan s, unit=s), 'location_x': Field(default=nan m, unit=m), 'location_y': Field(default=nan m, unit=m), 'location_z': Field(default=nan m, unit=m), 'start_time': Field(default=None, type=Time), 'target_name': Field(default=, type=str), 'target_pos_dec': Field(default=nan deg, unit=deg), 'target_pos_ra': Field(default=nan deg, unit=deg), 'uuid': Field(default=None, type=str)}
location_x
location_y
location_z
mean_observation_time

Return time of mean time of observation.

Returns:

mean observation time

Return type:

astropy.Time

meta
prefix
start_time
target_name
target_pos_altaz

Return AltAz telescope pointing, i.e. the telescope orientation at the time of mean exposure.

target_pos_dec
target_pos_ra
uuid

Methods Documentation

classmethod from_name(name, **kwargs)

Load PointingObservation from HDF5 file or database. See `ctapointing.io.from_name()`for details.

__init__(prefix=None, **fields)
property altazframe

Return AltAz frame, using currently available meta information.

classmethod from_name(name, **kwargs)

Load PointingObservation from HDF5 file or database. See `ctapointing.io.from_name()`for details.

property mean_observation_time

Return time of mean time of observation.

Returns:

mean observation time

Return type:

astropy.Time

property target_pos_altaz

Return AltAz telescope pointing, i.e. the telescope orientation at the time of mean exposure.