Read functions for NASCAM ASI raw files
Project description
NASCAM All-Sky Imager Raw PGM Data Readfile
Python library for reading NASCAM All-Sky Imager (ASI) stream0 raw PNG-file data. The data can be found at https://data.phys.ucalgary.ca.
Supported Datasets
- NASCAM ASI raw: stream0.png PNG files
Installation
The nascam-imager-readfile library is available on PyPI:
$ python3 -m pip install nascam-imager-readfile
Supported Python Versions
nascam-imager-readfile officially supports Python 3.6+.
Examples
Example Python notebooks can be found in the "examples" directory. Further, some examples can be found in the "Usage" section below.
Usage
Import the library using import nascam_imager_readfile
Read a single file
>>> import nascam_imager_readfile
>>> filename = "path/to/data/2010/01/01/atha_nascam-iccd04/ut06/20100101_0600_atha_nascam-iccd04.png.tar"
>>> img, meta, problematic_files = nascam_imager_readfile.read(filename)
Read multiple files
>>> import nascam_imager_readfile, glob
>>> file_list = glob.glob("path/to/files/2010/01/01/atha_nascam-iccd04/ut06/*.tar")
>>> img, meta, problematic_files = nascam_imager_readfile.read(file_list)
Read using multiple worker processes
>>> import nascam_imager_readfile, glob
>>> file_list = glob.glob("path/to/files/2010/01/01/atha_nascam-iccd04/ut06/*.tar")
>>> img, meta, problematic_files = nascam_imager_readfile.read(file_list, workers=4)
Development
Clone the repository and install dependencies using Poetry.
$ git clone https://github.com/ucalgary-aurora/nascam-imager-readfile.git
$ cd nascam-imager-readfile/python
$ make install
Testing
$ make test
[ or do each test separately ]
$ make test-flake8
$ make test-pylint
$ make test-pytest
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
Built Distribution
Close
Hashes for nascam_imager_readfile-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d27544df95d8984459c82f53a27fa7369a79a558424ce34acd71b27382810cdd |
|
MD5 | f34a1eeb36eba89b573671c166a64614 |
|
BLAKE2b-256 | 61557299e874db09df550d099b26b52c68821e0d181c16c3c4a976d1593a2fee |
Close
Hashes for nascam_imager_readfile-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56074a34cd17f0af15d3f91d2643d3c3f797513de4bc10e0b24c5ab45c0616f |
|
MD5 | 49719b45c7c092ae50e9118047faf22b |
|
BLAKE2b-256 | 5b14829e8a8803a73c768dafb87b79c96b23ba96f4710e4ad4d7e75a2bc2e81c |