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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for psr_formats-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 501c97fcf2f33f9f5d191f476fd42e88b93d4667d914c587a75ca988385bc640 |
|
MD5 | ac8b2c0e15a7ab81edda4aa49a49c279 |
|
BLAKE2b-256 | 64bde018859986d4de9cc65936e0466d326be7bdbcf7e8332075e1c98b470d0e |