Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions examples/huispulsar_chifit/chifitparam.yml
Original file line number Diff line number Diff line change
@@ -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: {}
4 changes: 4 additions & 0 deletions examples/huispulsar_chifit/getData.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
wget www.astro.rug.nl/~camras/data/obs-10-04-2018/B0329+54_10-04-2018.fits.gz


16 changes: 16 additions & 0 deletions examples/huispulsar_chifit/run.sh
Original file line number Diff line number Diff line change
@@ -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