The sparc4-pipeline
is a set of routines that make use of the AstroPoP
package and other astronomical packages to reduce the data of photometric and polarimetric observations obtained with the SPARC4 instrument installed at the Pico dos Dias Observatory (OPD/LNA). The pipeline has a main module called sparc4_mini_pipeline.py
to run the pipeline from the command line and allow the reduction of data from the four SPARC4 channels automatically. The pipeline also has a file called sparc4_params.yaml
with the pipeline execution parameters, where one can configure the reduction parameters according to the science needs.
WARNING: The current version was tested with AstroPoP Version: 0.9.3
git clone https://github.com/edermartioli/sparc4-pipeline.git
cd sparc4-pipeline
pip install -U .
Below is an example to run the SPARC4 pipeline :
python -W ignore ~/sparc4-pipeline/scripts/sparc4_mini_pipeline.py --nightdir=20230605 -vp
The pipeline routines are organized in the following 5 main libraries:
pipeline_lib.py
: pipeline execution routines and functionsdb.py
: a simple interface to create and manage a database of input raw data utils.py
: utility routines for reductionproducts.py
: I/O routines containing the definition of SPARC4 reduction productsproduct_plots.py
: routines to get diagnostic plots of reduction productsThese libraries can also be used independently to reduce data step by step, as in the examples provided in the Jupyter notebooks.
Download the minidata package containing SPARC4 data to test the pipeline. You may also want to downaload the minilcdata package containing time series data in photometric mode.
See the SPARC4 Quick Tutorial (in Portuguese) to start using the pipeline quickly.
The SPARC4 Pipeline Workshop Guidelines (pdf version) are now available, providing step-by-step instructions to reduce the minidata. Make sure you also check the slides presented in the workshop at the XLVII RASAB 2024 as well as the hands-on SPARC4 Pipeline Workshop Jupyter notebooks with examples for accessing the pipeline products obtained from the reduction of the minidata.
Date: 2024-Oct-03
photutils
, but we are working on a solution soon.The SPARC4 pipeline is under development in collaboration with the scientific community. If you are interested in collaborating, send an email to the pipeline team at the following address: sparc4-pipeline@googlegroups.com
.