Skip to content

demorest/pypsrfits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pypsrfits 
P. Demorest, Nov 2013
---------------------

This is a very simple python module for reading search-mode PSRFITS data
into python.  It requires the fitsio python module (and numpy of course).

Example usage:

# Import the module, open a file
import pypsrfits
f = pypsrfits.PSRFITS('my_file.fits')

# A full fitsio object for the file is available:
f.fits

# The main header and SUBINT header are also accessible:
f.hdr
f.subhdr

# Read all data from row 13
d = f.get_data(13)

# Read all data in entire file, downsampling in time by
# a factor of 256
d = f.get_data(0,-1,downsamp=256)

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages