SessionQuery

class daschlab.query.SessionQuery(name: str, ra_deg: float, dec_deg: float)[source]

Bases: object

A “query” defining a daschlab session.

In most cases, the only useful functionality provided by this class is the pos_as_skycoord method, which obtains the central position of the session’s area of interest as an astropy.coordinates.SkyCoord.

Methods Summary

new_from_coords(coords)

Create a new session, targeting specified celestial coordinates.

new_from_name(name)

Create a new session, targeting a named astronomical source.

new_from_radec(ra_deg, dec_deg)

Create a new session, targeting specified equatorial coordinates.

pos_as_skycoord()

Obtain the center position of this query.

Methods Documentation

classmethod new_from_coords(coords: SkyCoord) SessionQuery[source]

Create a new session, targeting specified celestial coordinates.

Parameters:
coordsastropy.coordinates.SkyCoord

The coordinates of the session target location.

Returns:
SessionQuery

A new session query object.

See also

new_from_name

convenience function to do a name-based lookup

new_from_radec

convenience function for equatorial coordinates

classmethod new_from_name(name: str) SessionQuery[source]

Create a new session, targeting a named astronomical source.

Parameters:
namestr

A source name that is passed to astropy.coordinates.SkyCoord.from_name.

Returns:
SessionQuery

A new session query object.

See also

new_from_coords

create a session using generic Astropy coordinates

new_from_radec

convenience function for equatorial coordinates

classmethod new_from_radec(ra_deg: float, dec_deg: float) SessionQuery[source]

Create a new session, targeting specified equatorial coordinates.

Parameters:
ra_degfloat

The right ascension of the session target location, in degrees.

dec_degfloat

The declination of the session target location, in degrees.

Returns:
SessionQuery

A new session query object.

See also

new_from_coords

create a session using generic Astropy coordinates

new_from_name

convenience function to do a name-based lookup

pos_as_skycoord() SkyCoord[source]

Obtain the center position of this query.

Returns:
astropy.coordinates.SkyCoord