Skip to content

Commit

Permalink
document parts of the API
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanneBogart committed Oct 23, 2024
1 parent 89faaa4 commit 5b97dfc
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ https://github.com/LSSTDESC/skyCatalogs.
:caption: Reference:
:hidden:

reeference_python

.. toctree::
:maxdepth: 2
:caption: Contact:
:hidden:

contact


Indices and tables
==================
Expand Down
57 changes: 57 additions & 0 deletions docs/reference_python.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
===========================
The ``skyCatalogs`` package
===========================

Reference documentation for core objects with the ``sktyCatalogs`` package

.. _skyCatalog_class:

The skyCatalog class
=====================

The ``skyCatalog`` class represents a catalog. Users gain access
to a catalog by calling its static method ``open_catalog``.

.. autoclass:: skycatalogs.skyCatalogs.SkyCatalog
:members:

.. automethod:: skycatalogs.skyCatalogs.open_catalog
.. automethod:: skycatalogs.skyCatalogs.SkyCatalog.get_objects_by_region
.. automethod:: skycatalogs.skyCatalogs.SkyCatalog.get_object_type_by_region
.. automethod:: skycatalogs.skyCatalogs.SkyCatalog.get_object_type_names
.. automethod:: skycatalogs.skyCatalogs.SkyCatalog.get_object_type_by_hp
.. automethod:: skycatalogs.skyCatalogs.SkyCatalog.get_hps_by_region

..
.. automethod:: skycatalogs.skyCatalogs.SkyCatalog.get_hps_by_type
.. _baseobject_class:

There are several classes (one per supported object type) representing
individual objects as observed at a particular time, all subclassing
``BaseObject``.

.. autoclass:: skycatalogs.objects.base_object.BaseObject
:members:

.. automethod:: skycatalogs.objects.base_object.BaseObject.id
.. automethod:: skycatalogs.objects.base_object.BaseObject.ra
.. automethod:: skycatalogs.objects.base_object.BaseObject.dec
.. automethod:: skycatalogs.objects.base_object.BaseObject.object_type
.. automethod:: skycatalogs.objects.base_object.BaseObject.get_native_attribute
.. automethod:: skycatalogs.objects.base_object.get_gsobject_components
.. automethod:: skycatalogs.objects.base_object.get_observer_sed_component
.. automethod:: skycatalogs.objects.base_object.get_observer_sed_components
.. automethod:: skycatalogs.objects.base_object.get_total_observer_sed
.. automethod:: skycatalogs.objects.base_object.get_flux
.. automethod:: skycatalogs.objects.base_object.get_LSST_flux
.. automethod:: skycatalogs.objects.base_object.get_LSST_fluxes
.. automethod:: skycatalogs.objects.base_object.get_roman_flux
.. automethod:: skycatalogs.objects.base_object.get_roman_fluxes

.. _objectlist_class:

The ``ObjectList`` class is a container for instances of ``BaseObject``.
It subclasses ``Sequence``.

.. autoclass:: skycatalogs.objects.base_object.ObjectList

0 comments on commit 5b97dfc

Please sign in to comment.