Read functions for TREx ASI PGM raw files
Project description
TREx All-Sky Imager Raw PGM Data Readfile
Python library for reading Transition Region Explorer (TREx) All-Sky Imager (ASI) stream0 raw PGM-file data. The data can be found at https://data.phys.ucalgary.ca.
Installation
The trex-imager-readfile library is available on PyPI:
$ python3 -m pip install trex-imager-readfile
Supported Python Versions
trex-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 trex_imager_readfile
Read a single file
>>> import trex_imager_readfile
>>> filename = "path/to/rgb_data/2020/01/01/fsmi_rgb-01/ut06/20200101_0600_fsmi_rgb-01_full.pgm.gz"
>>> img, meta, problematic_files = trex_imager_readfile.read_rgb(filename)
Read multiple files
>>> import trex_imager_readfile, glob
>>> file_list = glob.glob("path/to/files/2020/01/01/fsmi_rgb-01/ut06/*full.pgm*")
>>> img, meta, problematic_files = trex_imager_readfile.read_rgb(file_list)
Read using multiple worker processes
>>> import trex_imager_readfile, glob
>>> file_list = glob.glob("path/to/files/2020/01/01/fsmi_rgb-01/ut06/*full.pgm*")
>>> img, meta, problematic_files = trex_imager_readfile.read_rgb(file_list, workers=4)
Development
Clone the repository and install dependencies using Poetry.
$ git clone https://github.com/ucalgary-aurora/trex-imager-readfile.git
$ cd trex-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
File details
Details for the file trex-imager-readfile-1.0.3.tar.gz
.
File metadata
- Download URL: trex-imager-readfile-1.0.3.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.8 Linux/5.4.0-65-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c26dd19656cd86be1e61a8633432fe74d5112f18e9282d32bbe82174c3dd2b14 |
|
MD5 | 506b3480cd6ec61ba09f3a46e3ee4b19 |
|
BLAKE2b-256 | 276b160bc82f9de7d350d94608ac93741d25a6be6d66affc5e2c16de1b9ce3cd |
File details
Details for the file trex_imager_readfile-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: trex_imager_readfile-1.0.3-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.8 Linux/5.4.0-65-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 230ab3c52a22a7c981063db9679c6ff986641c6448da80fe659d294a1c4db0b9 |
|
MD5 | 4224b2b5666adc96f0f436817d73755f |
|
BLAKE2b-256 | 2c69184c51b5071ef6f86fc3638b724dcd28df6d0bc77fb0775fa4b2b3459a58 |