gaia_cob_pmp.app.models.source¶
Classes¶
Root model for an astrophysical source. |
Module Contents¶
- class gaia_cob_pmp.app.models.source.Source(*args, **kwargs)¶
Bases:
django.db.models.ModelRoot model for an astrophysical source.
- is_valid¶
- name¶
- other_names¶
- ra¶
- dec¶
- get_aladin_coordinates() str¶
Gets the ‘target’ coordinates for this source on Aladin.
- Returns:
The Aladin-format RA & Dec.
- aladin_link(survey: str | None = None, fov: float | None = None) str¶
Gets the link to the source on Aladin
- Parameters:
survey – Selection of survey image.
fov – Initial field of view. If none, defaults to value from settings.
- Returns:
The link to a view of the source’s sky location.
- get_absolute_url() str¶
- __str__() str¶
- __repr__() str¶