-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #454 from mwcraig/document-catalogs
Rearrange documentation
- Loading branch information
Showing
21 changed files
with
385 additions
and
194 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
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
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,9 @@ | ||
Trying out test releases | ||
######################## | ||
|
||
Thanks for being willing to try out a test release! We strongly recommend that you do this in a virtual | ||
environment. If you don't have one set up, you can create one with `conda` or `mamba` (use whichever one you have installed):: | ||
|
||
mamba create -n stellarphot-test python=3.11 | ||
mamba activate stellarphot-test | ||
pip install --pre stellarphot |
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,117 +1,99 @@ | ||
Documentation | ||
============= | ||
|
||
Stellarphot is a package for performing photometry on calibrated (reduced) astronomical images. It | ||
provides a simple interface for performing aperture photometry of either a single | ||
image or a directory with multiple images. It is designed to be easy to use for both | ||
non-programmers and programmers. | ||
|
||
Installation | ||
============ | ||
|
||
If you are testing a pre-release version of stellarphot we recommend setting up | ||
a virtual environment and installing stellarphot in this environment. | ||
|
||
Only use one of the methods below for making a virtual environment. | ||
|
||
Creating an environment with `conda` or `mamba` (use whichever one you have installed):: | ||
|
||
mamba create -n stellarphot-test python=3.11 | ||
mamba activate stellarphot-test | ||
pip install --pre stellarphot | ||
|
||
Creating an environment with `virtualenv`:: | ||
|
||
python -m venv stellarphot-test | ||
source stellarphot-test/bin/activate | ||
pip install --pre stellarphot | ||
|
||
To install stellarphot without creating an environment, use:: | ||
.. grid:: 1 1 2 2 | ||
|
||
pip install --pre stellarphot | ||
.. grid-item-card:: | ||
:padding: 2 | ||
:text-align: center | ||
|
||
You can remove stellarphot with:: | ||
**Testing stellarphot?** | ||
^^^ | ||
|
||
pip uninstall stellarphot | ||
Are you testing a pre-relase version of stellarphot? | ||
There are special installation instructions for you. | ||
|
||
Getting Started | ||
=============== | ||
.. button-ref:: dev/testing_installation | ||
:expand: | ||
:color: primary | ||
:click-parent: | ||
|
||
Overview | ||
-------- | ||
To the pre-release testing instructions | ||
|
||
You will go through this process to do photometry. | ||
.. grid-item-card:: | ||
:padding: 2 | ||
:text-align: center | ||
|
||
#. You need to make some settings, like camera properties, observatory information, and passband maps. You may only need | ||
to do this step once if you use the same equipment for all of your observations. | ||
#. Settings specific to an object need to be made: | ||
**Getting Started?** | ||
^^^ | ||
|
||
#. night of data, like the photometry aperture radius, need to be made. | ||
#. a list of the sources for which you want to perform photometry. These lists can be re-used. | ||
Installation instructions and a walk though of the process of doing photometry. | ||
|
||
#. Review all of the settings that the photometry routines will use. | ||
#. Once those settings have been done, you can perform photometry on your images. | ||
.. button-ref:: stellarphot/getting_started | ||
:expand: | ||
:color: primary | ||
:click-parent: | ||
|
||
To the Getting Started guide | ||
|
||
Graphical interface for making settings and doing photometry | ||
------------------------------------------------------------ | ||
|
||
A graphical interface is provided via JupyterLab to make settings. To start JupyterLab, run the following command | ||
in a terminal:: | ||
.. grid-item-card:: | ||
:padding: 2 | ||
:text-align: center | ||
|
||
jupyter lab | ||
**User guide** | ||
^^^ | ||
|
||
If you open up JupyterLab, the launcher should have a section that looks like this: | ||
A guide to using stellarphot, including how to make settings and perform photometry. | ||
|
||
.. image:: /_static/launcher.png | ||
:width: 400px | ||
:alt: JupyterLab Launcher with stellarphot notebooks | ||
.. button-ref:: stellarphot/user_guide/index | ||
:expand: | ||
:color: primary | ||
:click-parent: | ||
|
||
Each of the notebooks corresponds to the steps in the previous section. Open each notebook in order, and run | ||
all of the cells in the notebook. In each will be a graphical interface to enter the camera and other settings | ||
(in notebook 1), measuring the seeing and choose comparison stars (in notebook 2), review all of your settings | ||
(in notebook 3), and perform photometry (in notebook 4). | ||
To the user guide | ||
|
||
When the photometry is done there will be a new notebook called `photometry_run.ipynb` that will have a record | ||
of the photometry that was done. | ||
.. grid-item-card:: | ||
:padding: 2 | ||
:text-align: center | ||
|
||
Editing a settings file directly | ||
-------------------------------- | ||
**Reference** | ||
^^^ | ||
|
||
The settings file is a JSON file that can be edited in any text editor. | ||
Detailed descriptions of every class and function in stellarphot. | ||
|
||
.. button-ref:: stellarphot/api_reference | ||
:expand: | ||
:color: primary | ||
:click-parent: | ||
|
||
Performing photometry from within a Python script | ||
------------------------------------------------- | ||
To the API reference | ||
|
||
Once you have made your settings doing photometry is a two line process. First, you | ||
create a photometry object:: | ||
.. grid-item-card:: | ||
:padding: 2 | ||
:text-align: center | ||
|
||
from stellarphot.photometry import AperturePhotometry | ||
from stellarphot.settings import PhotometryWorkingDirSettings | ||
photometry_settings = PhotometryWorkingDirSettings().load() | ||
phot = AperturePhotometry(settings=photometry_settings) | ||
**Contributing** | ||
^^^ | ||
|
||
Then you can perform photometry on a single image:: | ||
Thanks for your interest in contributing to stellarphot. Click here to learn how to get started. | ||
|
||
phot(image) | ||
|
||
If you have a directory of images you can perform photometry on all of them at once like this:: | ||
|
||
phot(directory, object_of_interest="M13") | ||
.. button-ref:: dev/index | ||
:expand: | ||
:color: primary | ||
:click-parent: | ||
|
||
To the contributing guide | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:maxdepth: 1 | ||
:hidden: | ||
|
||
stellarphot/index.rst | ||
stellarphot/getting_started.rst | ||
stellarphot/user_guide/index.rst | ||
stellarphot/settings.rst | ||
|
||
|
||
Developer Documentation | ||
======================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
dev/index.rst | ||
stellarphot/api_reference.rst | ||
dev/index.rst |
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,20 @@ | ||
.. _api_reference: | ||
|
||
Reference/API | ||
############# | ||
|
||
All of the classes and functions defined in `stellarphot` are listed below, grouped by module. | ||
|
||
.. automodapi:: stellarphot | ||
.. automodapi:: stellarphot.core | ||
.. automodapi:: stellarphot.differential_photometry | ||
.. automodapi:: stellarphot.gui_tools | ||
.. automodapi:: stellarphot.io | ||
.. automodapi:: stellarphot.photometry.photometry | ||
.. automodapi:: stellarphot.photometry.source_detection | ||
.. automodapi:: stellarphot.plotting | ||
.. automodapi:: stellarphot.transit_fitting | ||
.. automodapi:: stellarphot.transit_fitting.gui | ||
.. automodapi:: stellarphot.transit_fitting.io | ||
.. automodapi:: stellarphot.transit_fitting.plotting | ||
.. automodapi:: stellarphot.utils |
Oops, something went wrong.