Skip to content

Commit

Permalink
Describe how to simulate coherent dedispersion.
Browse files Browse the repository at this point in the history
  • Loading branch information
fjankowsk committed Aug 4, 2023
1 parent f36b511 commit 31df84b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scatfit/apps/simulate_pulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ def generate_data(self, instrument, osfact=32):

# this is for incoherent dedispersion only. for coherent dedispersion, we need
# to straighten the signal in each frequency channel before averaging
# XXX: for coherent dedispersion, create the data at zero dm, i.e.
# centre = 0 and the channel centre frequencies (do not oversample).
# then shift/roll the data by the appropriate amount to disperse the pulse.
mean_profile = np.mean(temp, axis=0)

# add some gaussian radiometer noise
Expand Down

0 comments on commit 31df84b

Please sign in to comment.