SessionQuery¶
- class daschlab.query.SessionQuery(name: str, ra_deg: float, dec_deg: float)[source]¶
Bases:
objectA “query” defining a daschlab session.
In most cases, the only useful functionality provided by this class is the
pos_as_skycoordmethod, which obtains the central position of the session’s area of interest as anastropy.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.
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:
- coords
astropy.coordinates.SkyCoord The coordinates of the session target location.
- coords
- Returns:
SessionQueryA new session query object.
See also
new_from_nameconvenience function to do a name-based lookup
new_from_radecconvenience function for equatorial coordinates
- classmethod new_from_name(name: str) SessionQuery[source]¶
Create a new session, targeting a named astronomical source.
- Parameters:
- name
str A source name that is passed to
astropy.coordinates.SkyCoord.from_name.
- name
- Returns:
SessionQueryA new session query object.
See also
new_from_coordscreate a session using generic Astropy coordinates
new_from_radecconvenience 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:
- Returns:
SessionQueryA new session query object.
See also
new_from_coordscreate a session using generic Astropy coordinates
new_from_nameconvenience function to do a name-based lookup