Skip to content

jackcturner/crest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CREST: Consistent Reduction, Extraction and SED fitting Tools

CREST is a Python library that collates the most popular tools from the literature to generate multi-band galaxy catalogues from calibrated imaging. It provides a consistent Python interface to these tools, facilitating flexible pipelines and making it easy to explore the associated systematics. CREST currently includes image processing and source extraction, but will soon be extended to SED fitting.

Installation

Start by cloning the repository to a convinient location,

git clone https://github.com/jackcturner/crest.git

and navigating into the directory. You can then install the package, preferably in a virtual environment, with

pip install .

or

pip install -e .

for development purposes. This will install the Python dependencies, incluing SEP and Photutils which can be used out of the box.

If you intend to apply extinction corrections, you will also need to install the Python interface to the NED extinction calculator.

If you intend to use Source Extractor, you will need to install it separately. You can then add the executable to PATH, or pass its location at runtime. This is currently also required for completeness estimation.

If you intend to use ProFound, you will first need an R installation and Rscript on your PATH. You can then install the ProFound module and the other dependencies. CREST was developed using R v4.3.2 and package versions

Tools & Usage

As well as some unique functionality, CREST primarily relies on current tools. CREST encloses these within Python wrappers, which are controlled by YAML configuration files. This not only facilitates flexible pipelines, but makes it easy to keep track of the various parameters and settings used at each step.

A subset of the available functionality includes

Imaging

Background - Tiered source masking and background subtraction based on Bagley et al. (2023). Now with multi-threading to speed up convolution steps and detection threshold scaling in low-weight regions.

PSF - Empirical PSF generation based primarily on Weaver et al. (2023). Now with more flexible star candidate selection, more robust stacking and multi-threading to speed up convolution with kernels.

measure_completeness - Completeness estimation through injection and recovery of synthetic sources with Source Extractor, based on Stone et al. (2024).

Cataloguing

Source extraction wrappers are written to mimic the Source Extractor workflow and now include empirical depth and uncertainty estimation based on Finkelstein et al. (2023).

SourceExtractor - Bertin & Arnouts (1996).

SEP - Barbary (2016)

Photutils - Bradley et al. (2024)

ProFound - Robotham et al. (2018).

Fitting

Python wrapped SED fitting tools will be added soon.

Citation & Acknowledgement

If you use CREST in your research, please acknowledge the repository and ensure you cite any of the papers relevant to the tools you use.

About

CREST - a Python library simplifying best practices for observational astronomy.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors