-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simulate wideband TOAs using zima
#1429
Conversation
My use case for this is that I need to simulate WB TOAs to test PR #1426. |
zima
zima
I haven't used |
The earlier behaviour in pint.simulation was to put arbitrary dm values in the toa files instead of computing them based on the model. I have changed that. The wierd thing is that the parameters are estimated correctly for narrowband data. The under/overestimate happens only for wideband. I had checked this before doing the previous PR and re-checked now. I am planning to do more simulations of the same par file and see if this is systematic or happens randomly. |
Codecov ReportBase: 66.16% // Head: 66.19% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1429 +/- ##
==========================================
+ Coverage 66.16% 66.19% +0.02%
==========================================
Files 91 91
Lines 21353 21367 +14
Branches 3701 3702 +1
==========================================
+ Hits 14128 14143 +15
+ Misses 6371 6370 -1
Partials 854 854
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
zima
zima
zima
zima
Can you add a test in |
I have added the test in test_fake_toas. |
This looks good. Do you want me to merge or wait until the meeting to discuss? |
We had discussed this a few times in the past meetings. I think this is OK to merge. |
OK, I think you might just need a CHANGELOG entry |
I have added wideband TOA simulation capability to
zima
. The underlying functionality is of course implemented inpint.simulation
.This is invoked using two new command line options
--wideband
and--dmerror
).Here is an example command:
$ zima --startMJD=56600 --addnoise --wideband --dmerror=1e-4 J0100+8023.par J0100+8023.sim
This feature computes the expected DM time series using the model (from the input par file), adds white noise based on the
--dmerror
option, and sets appropriate-pp_dm
and-pp_dme
flags.The injected error takes care of the DMEFACs and DMEQUADs as follows:
-pp_dme
are set equal to the--dmerror
, and the injected noise is computed with the help ofmodel.scaled_dm_uncertainty(toas)
.