API

Applications

Collect

Compute

Plot

Utilities

class schedview.param.DataFrame(default=None, columns=None, allow_empty=True, allow_None=False, *, doc=None, label=None, precedence=None, instantiate=False, constant=False, readonly=False, pickle_default_value=True, per_instance=True, allow_refs=False, nested_refs=False)[source]

Bases: Parameter

A pandas.DataFrame parameter.

Parameters:
  • columns (list [str] or dict [‘str’, ‘type’]) – The columns of the DataFrame. If a dictionary, the keys are the column names and the values. If a list, it contains the column names. If None, any set of columns is accepted.

  • allow_empty (bool) – Whether to allow a DataFrame with no rows.

class schedview.param.Series(default=None, allow_None=False, *, doc=None, label=None, precedence=None, instantiate=False, constant=False, readonly=False, pickle_default_value=True, per_instance=True, allow_refs=False, nested_refs=False)[source]

Bases: Parameter

A pandas.Series parameter.

schedview.sphere.offset_sep_bear(ra, decl, sep, bearing, degrees=False)[source]

Calculate coordinates after an offset by a separation.

Parameters:
  • ra (float) – R.A. as a float in radians

  • decl (float) – declination as a float in radians

  • sep (float) – separation in radians

  • bearing (float) – bearing (east of north) in radians

  • degrees (bool) – arguments and returnes are in degrees (False for radians).

Returns:

  • ra (float) – R.A. Right Ascension

  • decl (float) – declination

schedview.sphere.rotate_cart(ux, uy, uz, angle, x0, y0, z0)[source]

Rotate coordinates on a unit sphere around an axis

Parameters:
  • ux (float) – x coordinate of a point on the axis of rotation

  • uy (float) – y coordinate of a point on the axis of rotation

  • uz (float) – z coordinate of a point on the axis of rotation

  • angle (float) – Magnitude of the rotation.

  • x0 (float) – Input x coordinate

  • y0 (float) – Input y coordinate

  • z0 (float) – Input z coordinate

Returns:

  • ux (float) – Output x coordinate

  • uy (float) – Output y coordinate

  • uz (float) – Output z coordinate