-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
467 additions
and
441 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
BAGPIPES | ||
======== | ||
|
||
Bayesian Analysis of Galaxies for Physical Inference and Parameter EStimation | ||
----------------------------------------------------------------------------- | ||
|
||
Bagpipes is a state of the art code for generating model galaxy spectra and fitting these to observations. The model generation routines are ideal for turning output from simulations into mock observations, and the fitting routines allow the physical parameters of real galaxies to be constrained from spectroscopic and/or photometric observations. | ||
|
||
|
||
Documentation | ||
------------- | ||
|
||
The Bagpipes documentation can be found `here <http://bagpipes.readthedocs.io>`_, this is currently a work in progress! | ||
|
||
|
||
Acknowledgements | ||
---------------- | ||
Bagpipes is a state of the art code for generating realistic model galaxy spectra and fitting these to spectroscopic and photometric observations. | ||
|
||
Bagpipes is described in Section 3 of `ArXiv1712.04452 <https://arxiv.org/abs/1712.04452>`_, if you make use of Bagpipes in your research, please include a citation to this work in any publications. | ||
For further information please see the Bagpipes documentation at `bagpipes.readthedocs.io <http://bagpipes.readthedocs.io>`_. | ||
|
||
Bagpipes makes use of `MultiNest <https://ccpforge.cse.rl.ac.uk/gf/project/multinest>`_ and `PyMultiNest <https://johannesbuchner.github.io/PyMultiNest>`_, as well as the stellar population models of `Bruzual \& Charlot (2003) <https://arxiv.org/abs/astro-ph/0309134>`_. Please also consider acknowledging these projects if you make use of Bagpipes. |
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
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,32 @@ | ||
.. _filter-lists: | ||
|
||
Defining filter lists | ||
===================== | ||
|
||
Bagpipes uses filter lists to load up filter curve files which are in turn used to generate photometry. | ||
|
||
To define a filter list (referred to as ``filtlist`` within the code) you'll first have to set up some of the :ref:`directory structure <directory-structure>`. Specifically, within your working directory you'll have to make a ``pipes/`` directory, and within ``pipes/`` a ``filters/`` directory. | ||
|
||
Now, within the ``pipes/filters/`` directory you should create a file called ``<name of filter list>.filtlist``. For example, if I wanted to set up a PanSTARRS filter list, I could call my file ``PanSTARRS.filtlist``. | ||
|
||
In this file, you'll have to add paths from the ``pipes/filters/`` directory to the locations the filter curves you want to include are stored. In order to find the curves you want I recommend the `SVO filter profile service <http://svo2.cab.inta-csic.es/svo/theory/fps>`_. | ||
|
||
For example, if you downloaded the PS1 grizy filters and put them in a directory called ``PanSTARRS/`` within the ``pipes/filters/`` directory, you'd need the following in ``PanSTARRS.filtlist``: | ||
|
||
.. code:: | ||
PanSTARRS/PS1.g | ||
PanSTARRS/PS1.r | ||
PanSTARRS/PS1.i | ||
PanSTARRS/PS1.z | ||
PanSTARRS/PS1.y | ||
An example of this setup can be found `here <https://github.com/ACCarnall/bagpipes/tree/master/filters>`_. A filter list called UVJ has been set up, with associated filter curves within the ``UVJ/`` subfolder. | ||
|
||
You're then all set to start generating photometry. All you need to do is specify the name of your filter list with the ``filtlist`` keyworld argument of Model_Galaxy: | ||
|
||
.. code:: python | ||
model = pipes.Model_Galaxy(model_comp, filtlist="PanSTARRS") | ||
Bagpipes will automatically load up your filter curves and generate output photometry. The model photometric fluxes in ``model.photometry`` are in the same order as the filters were specified in your ``filtlist`` file. |
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,4 +1,4 @@ | ||
Fitting observational data | ||
Fitting Observational Data | ||
==================================== | ||
|
||
Oh no, I haven't got round to writing this bit yet. |
Oops, something went wrong.