A Python package wrapping stormpci.h via PyBind11 for interfacing with StormPCI and reading binary files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
FedorSarafanov 3dde0e2d3a Стартовый коммит 3 years ago
.github chore: bump pypa/gh-action-pypi-publish from 1.4.2 to 1.5.0 (#98) 3 years ago
conda.recipe feat: support setup helpers (#60) 5 years ago
docs chore: drop Python 2, require Python 3.6+ (#91) 4 years ago
src feat: support setup helpers (#60) 5 years ago
tests Configure tests on Travis and AppVeyor 9 years ago
.appveyor.yml chore: drop Python 2, require Python 3.6+ (#91) 4 years ago
.gitignore feat: support setup helpers (#60) 5 years ago
.pre-commit-config.yaml chore: drop Python 2, require Python 3.6+ (#91) 4 years ago
.travis.yml ci: update workflows (#73) 4 years ago
LICENSE Example project built with pybind11 9 years ago
README.md Стартовый коммит 3 years ago
pyproject.toml chore: drop Python 2, require Python 3.6+ (#91) 4 years ago
setup.py chore: drop Python 2, require Python 3.6+ (#91) 4 years ago

README.md

Installation

  • clone this repository
  • change directory to folder stormpci_bin_reader
  • run shell command pip install .

Test call

Need binary file from new LDN system for tests.

from stormpci_bin_reader import StrikeReader

sr = StrikeReader("2022-04-23-00:00:37.bin")
strikes = sr.read_all_strikes()

for strike in strikes:
    lts2 = strike.strike.lts2_data
    print(
        lts2.year,
        lts2.month,
        lts2.day,
        lts2.hours,
        lts2.minutes,
        lts2.seconds + lts2.TS_time / lts2.TS_Osc,
    )