-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add an initial draft of the documentation, to accompany the first public release of the software. Closes: #164
- Loading branch information
Showing
26 changed files
with
331 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Catalogues | ||
========== | ||
|
||
.. currentmodule:: heracles | ||
|
||
|
||
The catalogue protocol | ||
---------------------- | ||
|
||
.. autoclass:: Catalog | ||
|
||
.. autoclass:: CatalogBase | ||
|
||
.. autoclass:: CatalogPage | ||
|
||
|
||
Catalogue implementations | ||
------------------------- | ||
|
||
.. autoclass:: FitsCatalog | ||
|
||
.. autoclass:: ArrayCatalog | ||
|
||
|
||
Catalogue filters | ||
----------------- | ||
|
||
.. autoclass:: FootprintFilter | ||
|
||
.. autoclass:: InvalidValueFilter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Python examples | ||
=============== | ||
|
||
The best way to get started with the Python interface for *Heracles* is to look | ||
at the example notebooks below. If you want to follow along and run the | ||
examples yourself, the source files are found on in the repository__. | ||
|
||
__ https://github.com/heracles-ec/heracles/blob/main/examples | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
../examples/example.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
Fields | ||
====== | ||
|
||
.. currentmodule:: heracles | ||
|
||
|
||
The field protocol | ||
------------------ | ||
|
||
.. autoclass:: Field | ||
|
||
|
||
Mathematical fields | ||
------------------- | ||
|
||
.. autoclass:: ComplexField | ||
|
||
.. autoclass:: ScalarField | ||
|
||
.. autoclass:: Spin2Field | ||
|
||
|
||
Concrete fields | ||
--------------- | ||
|
||
.. autoclass:: Positions | ||
|
||
.. autoclass:: Shears | ||
|
||
.. autoclass:: Visibility | ||
|
||
.. autoclass:: Weights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
Using *Heracles* from Python | ||
============================ | ||
|
||
*Heracles* is a fully-featured library for harmonic-space statistics on the | ||
sphere. The Python interface can be used, e.g., in exploratory work using | ||
Jupyter notebooks, or to create automated data processing pipelines for a large | ||
collaboration like *Euclid*. | ||
|
||
|
||
Importing *Heracles* | ||
-------------------- | ||
|
||
To use *Heracles* from Python, it is usually enough to import its main module:: | ||
|
||
import heracles | ||
|
||
The ``heracles`` module contains most user-facing functionality. However, some | ||
of *Heracles*' features require additional external dependencies; these | ||
features are therefore encapsulated in their own separate modules:: | ||
|
||
import heracles.healpy # requires healpy | ||
import heracles.ducc # requires ducc0 | ||
import heracles.notebooks # requires IPython, ipywidgets | ||
import heracles.rich # requires rich | ||
|
||
|
||
Python documentation | ||
-------------------- | ||
|
||
The best way to get started with the Python interface for *Heracles* is to look | ||
at the provided :doc:`/api/examples`. | ||
|
||
The full list of user functionality is documented in the :doc:`/api/reference`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
Python API reference | ||
==================== | ||
|
||
This is the API reference for using *Heracles* as a Python library. | ||
The documentation is broadly organized into the stages of a data processing | ||
pipeline. | ||
|
||
.. warning:: | ||
|
||
The API documentation is a work in progress. | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
catalog | ||
fields | ||
twopoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
Two-point statistics | ||
==================== | ||
|
||
.. currentmodule:: heracles | ||
|
||
|
||
Angular power spectra | ||
--------------------- | ||
|
||
.. autofunction:: angular_power_spectra | ||
|
||
.. autofunction:: binned_cls | ||
|
||
.. autofunction:: debias_cls | ||
|
||
|
||
Mixing matrices | ||
--------------- | ||
|
||
.. autofunction:: mixing_matrices | ||
|
||
.. autofunction:: binned_mms | ||
|
||
|
||
Auxiliary functions | ||
------------------- | ||
|
||
.. autofunction:: bin2pt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
Using the *Heracles* CLI | ||
======================== | ||
|
||
The *Heracles* CLI is functional but currently still unsupported. It will be | ||
fully supported as part of the next *Heracles* release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Getting started | ||
=============== | ||
|
||
These are the first steps to get up and running with *Heracles*. First, | ||
install the *Heracles* package for Python using one of the methods described | ||
below. Then, see the documentation on :doc:`/api/index` or :doc:`/cli/index`. | ||
|
||
|
||
Installing a release | ||
-------------------- | ||
|
||
This is the usual way of installing *Heracles*, and should be your first port | ||
of call. | ||
|
||
The *Heracles* package requires Python 3.9+ and a number of dependencies. It | ||
can be installed using `pip` in the usual manner: | ||
|
||
.. code-block:: console | ||
$ pip install heracles | ||
This will also install any missing dependencies. | ||
|
||
.. note:: | ||
|
||
As usual, it is recommended to install *Heracles* into a dedicated | ||
environment (conda, venv, etc.). | ||
|
||
For alternative ways to install the package, see `Installing from the | ||
repository`_ and `Developer installation`_. | ||
|
||
|
||
Installing from the repository | ||
------------------------------ | ||
|
||
To install the latest work-in-progress version, install directly from the main | ||
branch of the git repository: | ||
|
||
.. code-block:: console | ||
$ pip install git+https://github.com/heracles-ec/heracles.git | ||
This will install *Heracles* with a local version string that encodes the last | ||
release and any subsequent commits. | ||
|
||
|
||
Developer installation | ||
---------------------- | ||
|
||
If you want to install *Heracles* for local development, clone the repository | ||
and install the package in editable mode: | ||
|
||
.. code-block:: console | ||
$ # clone the repository | ||
$ cd heracles | ||
$ pip install -e . | ||
The result is similar to `Installing from the repository`_, but uses the local | ||
copy of the repository as the package source. This means changes to your local | ||
files are applied without needing to reinstall the package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,43 @@ | ||
|
||
****************************************************** | ||
*Heracles* --- Harmonic-space statistics on the sphere | ||
****************************************************** | ||
====================================================== | ||
|
||
.. image:: _static/logo.png | ||
:width: 50% | ||
|
||
================= | ||
This is *Heracles*, a code for harmonic-space statistics on the sphere. | ||
*Heracles* can take catalogues of positions a function values on the sphere and | ||
turn them into wonderful things like angular power spectra and mixing matrices. | ||
|
||
*Heracles* is both a Python library, to be used in notebooks or data processing | ||
pipelines, and a tool for running measurements from the command line using a | ||
configuration file. To jump right in, see :doc:`/getting-started`, | ||
:doc:`api/index`, and :doc:`/cli/index`. | ||
|
||
🛰️ **Made in the Euclid Science Ground Segment** | ||
|
||
|
||
Table of Contents | ||
================= | ||
----------------- | ||
|
||
.. toctree:: | ||
:caption: Heracles | ||
:maxdepth: 2 | ||
|
||
getting-started | ||
publications | ||
releases | ||
|
||
.. toctree:: | ||
:caption: Python interface | ||
:maxdepth: 2 | ||
|
||
api/index | ||
api/examples | ||
api/reference | ||
|
||
.. toctree:: | ||
:caption: Command Line Interface | ||
:maxdepth: 2 | ||
|
||
manual/index | ||
user/index | ||
reference/index | ||
cli/index |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.