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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7d0a0c627b6aabb50b0f67e2080c4f96f27ce3b36a259e0671b0ee772f1cfd4 |
|
MD5 | e5923443bc0b74d7ae42dc409201e21f |
|
BLAKE2b-256 | 98f8fd92807ceb61adc5fceb9f32090f23e6f6ed7d0d63297be18325b10c36a0 |
Close
Hashes for nascam_imager_readfile-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5570893d985e5b4d1d59c892c57e931535ba20655e3f7ee429228f9c8ecf9f9b |
|
MD5 | e1bd561c97854e823f50a910e2ca4c3f |
|
BLAKE2b-256 | 9fa5c1f83f50fa42021940266d717a23d8281024056c7ea774636ddcf9ceaf17 |