Skip to main content

Read functions for TREx ASI PGM raw files

Project description

TREx All-Sky Imager Raw PGM Data Readfile

Github Actions - Tests PyPI version MIT license PyPI Python versions

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.

Supported Datasets

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.7+.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trex_imager_readfile-1.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

trex_imager_readfile-1.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file trex_imager_readfile-1.1.0.tar.gz.

File metadata

  • Download URL: trex_imager_readfile-1.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.9.14 Linux/5.14.0-162.12.1.el9_1.0.2.x86_64

File hashes

Hashes for trex_imager_readfile-1.1.0.tar.gz
Algorithm Hash digest
SHA256 05d35a466563ce40f853886540fb220ee958ef37e49cbf0ffd3bc458be425c13
MD5 175f7a23cfe4ac702b44e87b9c48b58c
BLAKE2b-256 d6bc616b19368640de3aeca1c96af346b284080afd7925f06115f4ba50dca2f0

See more details on using hashes here.

File details

Details for the file trex_imager_readfile-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: trex_imager_readfile-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.9.14 Linux/5.14.0-162.12.1.el9_1.0.2.x86_64

File hashes

Hashes for trex_imager_readfile-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8920663b8f27d2cd4c73c460a16c54712ebe0a19af43bc27bea3cdb73ae7a04a
MD5 28dba8e510000706578e8eea98b8d7da
BLAKE2b-256 ad24a7e006d2a0f2876e9a79769a0a32e1150d678838ed90542772d11a8abd97

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page