Skip to main content

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

Release files for psr-formats 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for psr-formats 0.2.2
File Size Uploaded
psr-formats-0.2.2.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for psr-formats 0.2.2
File Interpreter ABI Platform
psr_formats-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / psr-formats-0.2.2.tar.gz

Download URL psr-formats-0.2.2.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5365667731c4a70a67ae9bf3928e6a25aa95047545305e3adb56267a7e7e7ff1
BLAKE2b-256 checksum
How to use checksums
6f7c4b04d0a638ed4a5b29c25eb0e5acc77de33fadb0e5bf4f4cffd59db9ca0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.6.4 Linux/3.10.0-1062.9.1.el7.x86_64.rjh0

Release files / psr_formats-0.2.2-py3-none-any.whl

Download URL psr_formats-0.2.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
501c97fcf2f33f9f5d191f476fd42e88b93d4667d914c587a75ca988385bc640
BLAKE2b-256 checksum
How to use checksums
64bde018859986d4de9cc65936e0466d326be7bdbcf7e8332075e1c98b470d0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.6.4 Linux/3.10.0-1062.9.1.el7.x86_64.rjh0

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page