Simulation Pipeline for LOFAR EoR
This is a simulation pipeline written with nextflow for the Epoch of Reionization (EoR) Key Science project (KSP) of the Low Frequency Array (LOFAR).
The nextflow files are shared as plain text scripts along with any required config files, modules, and documentation.
The main modular simulation tasks are in simulate.nf.
Helper function pipeline tasks are in foo.nf
Preprocessing nextflow files are stored in the sub-folder preprocessing.
You can build your own modular pipeline by using the nextflow scripts. Some examples for workflows can be seen in:
predict_pointsources.nf: To predict point sourcespredict_noise.nf: To predict thermal noisepredict_gfg.nf: To predict diffuse emission from images
In order to simulate a Gaussian style foreground check out the python script:
scripts/make_gfg.py
If you want to run the simulation pipeline with the Conda environment located in envs/myenv.yml, then run your workflow with the conda flag:
nextflow run myworkflow.nf -with-conda
Nextflow will automatically create and cache that environment the first time it runs.