diff --git a/examples/huispulsar_chifit/chifitparam.yml b/examples/huispulsar_chifit/chifitparam.yml new file mode 100644 index 0000000..8fca7e1 --- /dev/null +++ b/examples/huispulsar_chifit/chifitparam.yml @@ -0,0 +1,22 @@ +# Information about the data file + +FileName: 'B0329+54_10-04-2018.fits.gz' + +# Folding parameters +Folding: + nbins: 500 # Number of bins for folding + nbinsdedisp: 500 # Number of bins for dedispersed profile + +# Output parameters +Output: + OutputDir: './output' + SavePlots: true + +ChiFit: + Ntries: 1000 + nbins_time: 1000 + nbins_freq: 1000 + trywidth: 1e-3 + FitFunc: 'Lorentzian' + +GrasMaaier: {} diff --git a/examples/huispulsar_chifit/getData.sh b/examples/huispulsar_chifit/getData.sh new file mode 100755 index 0000000..6175e6c --- /dev/null +++ b/examples/huispulsar_chifit/getData.sh @@ -0,0 +1,4 @@ +#!/bin/bash +wget www.astro.rug.nl/~camras/data/obs-10-04-2018/B0329+54_10-04-2018.fits.gz + + diff --git a/examples/huispulsar_chifit/run.sh b/examples/huispulsar_chifit/run.sh new file mode 100755 index 0000000..a43074a --- /dev/null +++ b/examples/huispulsar_chifit/run.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Download the observation data if it is not present +if [ ! -e B0329+54_10-04-2018.fits.gz ] +then + echo "Dowloading the observation data" + ./getData.sh +fi + +# Run PSF +echo "Run PSF" +if command -v python3 &>/dev/null; then + python3 ../../main.py huispulsarParam.yml +else + python ../../main.py huispulsarParam.yml +fi