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
] ordict
[‘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 radiansdecl (
float
) – declination as a float in radianssep (
float
) – separation in radiansbearing (
float
) – bearing (east of north) in radiansdegrees (
bool
) – arguments and returnes are in degrees (False for radians).
- Returns:
ra (
float
) – R.A. Right Ascensiondecl (
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 rotationuy (
float
) – y coordinate of a point on the axis of rotationuz (
float
) – z coordinate of a point on the axis of rotationangle (
float
) – Magnitude of the rotation.x0 (
float
) – Input x coordinatey0 (
float
) – Input y coordinatez0 (
float
) – Input z coordinate
- Returns:
ux (
float
) – Output x coordinateuy (
float
) – Output y coordinateuz (
float
) – Output z coordinate