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.

Source Distribution

psr-formats-0.2.2.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

psr_formats-0.2.2-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page