Skip to content

Simple pure-python module for reading search-mode PSRFITS files.

License

Notifications You must be signed in to change notification settings

KshitijAggarwal/pypsrfits

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

The original code is authored by Paul Demorest and can be found in https://github.com/demorest/pypsrfits

pypsrfits is a very simple python module for reading search-mode PSRFITS data into numpy array.

Dependencies

The module requires the pyfits and numpy python modules.

Example usage

Importing and loading data file into the pyfits object:

import pypsrfits

f = pypsrfits.PSRFITS("my_file.fits")

The full pyfits object for the file is available:

f.fits

The main header and SUBINT header are also accessible:

f.hdr

f.subintHdr

To read all of the data from row 13:

d = f.getData(13)

Read all data in entire file, downsampling in time by a factor of 256

d = f.getData(0, -1, downSamp = 256)

About

Simple pure-python module for reading search-mode PSRFITS files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%