Skip to main content

Various formats used in pulsar signal processing

Project description

psr-formats

Formats for loading and saving data used in pulsar data processing.

Supported formats:

  • DADA

Usage

>>> from psr_formats import DADAFile
>>> dada_file = DADAFile("path/to/dada.dump").load_data()
>>> dada_file["NCHAN"]
'1'
>>> dada_file.nchan
1
>>> dada_file.npol
2
>>> dada_file.sampling_rate
<Quantity 0.025 us>
>>> dada_file.data.shape
(3107730, 1, 2) # ndat, nchan, npol
>>> new_dada_file = DADAFile("new.dump")
>>> new_dada_file.data = dada_file.data
>>> new_dada_file.dump_data()
'new.dump'

Testing

poetry run python -m unittest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for psr-formats, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size psr_formats-0.2.2-py3-none-any.whl (6.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size psr-formats-0.2.2.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page