Code Monkey home page Code Monkey logo

Comments (4)

scottransom avatar scottransom commented on June 30, 2024

If you want to regenerate the original .ps plot, you can use the show_pfd command on the .pfd file. There are several options that let you (slightly) modify the plot. You can also read the .pfd and plot it any way you want with the prepfold.py python module that is included in PRESTO. Let me know if you need more specifics.

from presto.

scottransom avatar scottransom commented on June 30, 2024

BTW, the .pfd file itself is simply a C structure (of type PREPFOLDINFO) stored in binary format. Most of it is described in the header file include/prepfold.h. And you can see how it gets written and read in src/prepfold_utils.h

from presto.

indrajitbarve avatar indrajitbarve commented on June 30, 2024

Dear Scott Ransom,

Thanks for your reply, I am able to read the data from the struct data cube from the "profs" section. The only thing is I am trying to plot a few selected data bands from the cube. When I plot it is not able to replica the plot. So I found from the pfd plotting code some scaling and shifting happening. I will go through the prepfold_utils.h further. Thanks ..

from presto.

scottransom avatar scottransom commented on June 30, 2024

Note that in prepfold.py, there is a greyscale() method which uses the same scaling as in the prepfold plots. And there are also plot_intervals() and plot_subbands() methods which use the greyscale() method.

from presto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.