Read functions for Rainbow ASI PNM raw files
Project description
Rainbow All-Sky Imager Raw PGM Data Readfile (GO-Canada AGO/CGSM Rainbow)
Python library for reading Rainbow All-Sky Imager (GO-Canada AGO/CGSM Rainbow) stream0 raw PGM-file data. The data can be found at https://data.phys.ucalgary.ca.
Installation
The rainbow-imager-readfile library is available on PyPI:
$ python3 -m pip install rainbow-imager-readfile
Supported Python Versions
rainbow-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 rainbow_imager_readfile
Read a single file
>>> import rainbow_imager_readfile
>>> filename = "path/to/data/2020/01/01/fsmi_rainbow-654/ut06/20200101_0600_fsmi_rainbow-654_6300.pgm.gz"
>>> img, meta, problematic_files = rainbow_imager_readfile.read(filename)
Read multiple files
>>> import rainbow_imager_readfile, glob
>>> file_list = glob.glob("path/to/files/2020/01/01/fsmi_rainbow-654/ut06/*6300.pgm*")
>>> img, meta, problematic_files = rainbow_imager_readfile.read(file_list)
Read using multiple worker processes
>>> import rainbow_imager_readfile, glob
>>> file_list = glob.glob("path/to/files/2020/01/01/fsmi_rainbow-654/ut06/*6300.pgm*")
>>> img, meta, problematic_files = rainbow_imager_readfile.read(file_list, workers=4)
Development
Clone the repository and install dependencies using Poetry.
$ git clone https://github.com/ucalgary-aurora/rainbow-imager-readfile.git
$ cd rainbow-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 rainbow-imager-readfile-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64b00d9fdbdc66b11b55d5d36661010057cba07e69f6c4141869683f7b388a8a |
|
MD5 | 481c78c02e21313875eb12b816fb2259 |
|
BLAKE2b-256 | e44c379f8b4294c19b8b862c967e5072ca47c99fe702834a51f967474a8c340c |
Close
Hashes for rainbow_imager_readfile-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baba0d19d48a4bb71f65dccd57c214f85ed02beb5d4d40d3f91f6dd07625fdc9 |
|
MD5 | 72bfca16fa1421afe5d1eaca2f6efe46 |
|
BLAKE2b-256 | c21f84c4a137dc64e077df79178372ebaf103c4e3a9800488819024be285493a |