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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file psr-formats-0.2.2.tar.gz.

File metadata

  • Download URL: psr-formats-0.2.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.4 Linux/3.10.0-1062.9.1.el7.x86_64.rjh0

File hashes

Hashes for psr-formats-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5365667731c4a70a67ae9bf3928e6a25aa95047545305e3adb56267a7e7e7ff1
MD5 df8fc20bdff2fccddcb08efdf96af319
BLAKE2b-256 6f7c4b04d0a638ed4a5b29c25eb0e5acc77de33fadb0e5bf4f4cffd59db9ca0d

See more details on using hashes here.

File details

Details for the file psr_formats-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: psr_formats-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.4 Linux/3.10.0-1062.9.1.el7.x86_64.rjh0

File hashes

Hashes for psr_formats-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 501c97fcf2f33f9f5d191f476fd42e88b93d4667d914c587a75ca988385bc640
MD5 ac8b2c0e15a7ab81edda4aa49a49c279
BLAKE2b-256 64bde018859986d4de9cc65936e0466d326be7bdbcf7e8332075e1c98b470d0e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.2.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page