Comments (5)
If you have a .pfd file, you can load it in using the prepfold module (into the pfd class). Then you can loop over a range of frequencies using the adjust_fold_frequency() method. That returns the adjusted profiles as well as the reduced chi^2. So then you could plot period (or freq) vs chi^2. Hope that helps.
from presto.
Thank you for your response. I tried doing the method you mentioned but I am not able to get exact P vs chi^2 graph as in the PFD file. Can I do something like use adjust_period() function to get the profile at desired period value and then calculate chi^2 using calc_redchi2 function? Would this work?
from presto.
That is basically what the adjust_fold_frequency() method does. How different do the plots look? They should be very similar....
But your method should basically work as well. However, if you want or need the exact curve that prepfold puts out in the .pfd plots, I'd recommend just inserting a printf() line in a for loop in the prepfold_plot.c file so that it prints out the values. Then running show_pfd() on the .pfd file.
from presto.
In the adjust_fold_frequency() method we need to pass phase bins as one of the parameter to the function. I have only the range of periods. So, in that case what should I pass to the function? I tried once passing directly the period values but I didn't get the desired graph. Then I tried to pass 1/period values to the function then too it doesn't give me the graph. So, how can I convert period values to number of phase bin shift? Thank you for your help.
from presto.
Since frequency is (by definition) the derivative of phase wrt time, the delta f (i.e. the change in freq) is equal to delta Phase / T, where Phase is the fraction of a rotation (i.e. the number of phase bins to shift / # of phase bins in the profile) and T is the total observation time. The range of frequencies that prepfold searches is usually +/-2*#of phase bins in the profile.
from presto.
Related Issues (20)
- Problem doing ACCEL_sift - sifting:candlist_from_candfile HOT 4
- Docker on ARM: build results in "Error: Old-style type declaration REAL*10 not supported at (1)" HOT 4
- docker build fails on arm64 system
- Errors in running "test_presto_python" HOT 15
- Issue with sigproc keyword signed HOT 3
- Issue Installing PRESTO Python Packages in Python3.9 on RHEL 8 HOT 5
- Import Error on single_pulse_search.py HOT 1
- Undefined reference error during installation HOT 15
- accelsearch frequency range HOT 4
- Using prepsubband for only a fraction of a dataset HOT 3
- Build issue with pulsestack.py HOT 2
- `rfifind` and OpenMP HOT 4
- Separating `FFTFIT` into a separate Python package? HOT 2
- Automated documentation for `PRESTO`? HOT 2
- Packaging `PRESTO` for multiple OSes? HOT 3
- ld: cannot find -lfftw3f: No such file or directory HOT 2
- undefined symbol: _gfortran_st_close HOT 2
- PFD file format? HOT 4
- Problem installing PRESTO with Apple M2 - Ventura 13.2 HOT 2
- Remove the Pusar Miner in FAQ HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from presto.