inpta / pinta

Data analysis pipeline for upgraded GMRT pulsar data
GNU General Public License v2.0
3 stars 0 forks source link

Conversion of ascii file to fits format #27

Closed praana closed 3 years ago

praana commented 3 years ago

Hi, I am Pranav LImaye, a bachelors project currently doing a project under Prof Yashwant Gupta at NCRA. I have taken some data from the GMRT and analysed it using gptool. I now need to convert the .gpt files from gptool into .psrfits file to verify the pulse profile shape I am getting by using psrchive. How can I proceed with this conversion?

Clear Skies, Pranav

abhisrkckl commented 3 years ago

pinta runs gptool as part of its processing. You can pass the gptool.in file you created to pinta and pinta will create a Timer archive. The timer archive can be directly used for further processing. If you really want a psrfits file, you can convert the pinta output using pam or psrconv command.

Have you installed pinta? If you have, you can find detailed usage instructions in this user guide: https://docs.google.com/document/d/13-ZWHLpGfalQ6ogbs1YSyMZjSy9gi6aFOvyQ8YYzEz8/edit?usp=sharing

praana commented 3 years ago

Hi, I dont have pinta installed on my system but I can access the tapti server of gmrt. I will have to ask my guide to get permissions for sourcing the pinta package.

When I analyse data using gptool I get the output pulse profile file as "profile_filtered.gpt". What is the extension of the timer archive file that pinta produces?

For running gptool, I source /Data/astrosoft/astrosoft.sh and this works. I already have the .gpt files ready with me. Can I use pinta commands on them directly to convert them into timer archive files?

I tried converting the .gpt files into fits format using an online python package called "YOUR'. However, when I run psredit on this fits file I have created, the nsubint parameter is zero which effectively tells me that the pulse profile is not phase folded. Can I workout some way out of this error?

Clear Skies, Pranav

On Mon, Apr 26, 2021 at 7:04 PM Abhimanyu Susobhanan < @.***> wrote:

pinta runs gptool as part of its processing. You can pass the gptool.in file you created to pinta and pinta will create a Timer archive. The timer archive can be directly used for further processing. If you really want a psrfits file, you can convert the pinta output using pam or psrconv command.

Have you installed pinta? If you have, you can find detailed usage instructions in this user guide:

https://docs.google.com/document/d/13-ZWHLpGfalQ6ogbs1YSyMZjSy9gi6aFOvyQ8YYzEz8/edit?usp=sharing

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/abhisrkckl/pinta/issues/27#issuecomment-826839807, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO2GRP6P3FXXENJPWUBHWX3TKVTVTANCNFSM43S3V74Q .

abhisrkckl commented 3 years ago

The profile archive produced by pinta has the extension of "fits".

To convert the gptool filtered file directly to archive, do the following.

abhisrkckl commented 3 years ago

Note that by filtered gpt file I don't mean the ASCII profile you mentioned. I mean the filtered data file with the name .gpt

abhisrkckl commented 3 years ago

@praana Is your problem resolved? If yes, I will close this issue.