Observation

class nyx.core.observation.Observation[source]

Bases: object

One target and one location, observed at nobs = len(times) times.

Parameters:
  • location (EarthLocation)

  • times (Time) – Observation times.

  • target (SkyCoord) – Scalar target, shared across all times.

  • geo (Geometry) – Resolution configuration.

  • refract_pointing (bool, optional) – Whether the pointing direction is the apparent position rather than the geometric AltAz.

  • **kwargs – Further AltAz frame parameters, e.g. pressure and temperature.

Raises:

TypeError – If target is not a scalar SkyCoord.

Attributes Summary

height_km

Observatory height in km.

Methods Summary

get_render_geometry()

Build the per-observation render geometries.

get_sky_coords(key)

Hemisphere coordinates in the given frame, computed once and cached.

Attributes Documentation

height_km

Observatory height in km.

Methods Documentation

get_render_geometry()[source]

Build the per-observation render geometries.

Returns:

One per observation, with no leading nobs axis.

Return type:

list of RenderGeometry

get_sky_coords(key)[source]

Hemisphere coordinates in the given frame, computed once and cached.

Parameters:

key (str) – Frame key: 'icrs' or 'sref'.

Returns:

One per observation, each with nsky points.

Return type:

list of SkyCoord

__init__(location, times, target, geo, refract_pointing=False, **kwargs)[source]
classmethod __new__(*args, **kwargs)