Skip to main content

GitHub tag (latest by date) GitHub issues Documentation Status GitHub license

pyrolib

pyrolib is a tool library for the Méso-NH/Blaze model. pyrolib provides python tools for the following purposes:

  • Generation of the FuelMap.nc file by using a Méso-NH namelist and the initialisation file of a Méso-NH/Blaze run.
  • FireFlux I exeprimental fire data processing.
  • Development of numerical methods for the Blaze fire model.

Installation

pyrolib requires Python 3.10 or newer. Install it from PyPI:

pip install pyrolib

Some operations on the fire mesh can be accelerated with numba, which is optional:

pip install pyrolib[numba]

Usage

pyrolib is separated into several sub-libraries for each of the objectives mentioned above, respectively:

  • pyrolib.fuelmap
  • pyrolib.data_processing
  • pyrolib.blaze

Fuel database

pyrolib relies on a fuel container object called a FuelDatabase. A FuelDatabase is a 2 level nested dictionary-like class. The first level corresponds to an explicit fuel name (like "tall_grass"). This fuel can be described by several methods that are related to a rate of spread model (for example Rothermel or Balbi). Each description is related to a Fuel class (RothermelFuel or BalbiFuel) and constitutes the second level of the database.

TheFireFluxI FuelDatabase contains for example the following:

* FireFluxI
    < tall_grass > available for:
      - BalbiFuel fuel class

The list of FuelDatabase contained in pyrolib can be accessed through the cli pyrolib-fm list-fuel-databases.

A user database can be saved in a .yml file. See example examples/fuel_database.

Méso-NH compliance

The current version of pyrolib is compliant with Méso-NH from version 5.6.0 to version 6.1.0. The default is 6.1.0; to target an older release, pass the version explicitly:

FuelMap(fuel_db=my_db, MesoNHversion="5.6.0")

Méso-NH sources are hosted at https://src.koda.cnrs.fr/mesonh/mesonh-code.

Acknowledgements

This library is part of the ANR FireCaster project (2017-2021, ANR-16-CE04-0006, FIRECASTER).

Metadata

Release files for pyrolib 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrolib 0.5.1
File Size Uploaded Provenance Actions
pyrolib-0.5.1.tar.gz 85.8 kB Without provenance Details for pyrolib-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyrolib 0.5.1
File Interpreter ABI Platform Actions
pyrolib-0.5.1-py3-none-any.whl Python 3 none any Details for pyrolib-0.5.1-py3-none-any.whl

Total release size: 119.7 kB

Release files / pyrolib-0.5.1.tar.gz

Download URL pyrolib-0.5.1.tar.gz
Size 85.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bbb03cf901db6ee96eb692f748dabfffb7e40d9efce9bd1eb1babae03d70f8fb
BLAKE2b-256 checksum
How to use checksums
e025127acbf69789a08f1b14accb6173a04b6b62c6a7f20b46acd881e96088d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / pyrolib-0.5.1-py3-none-any.whl

Download URL pyrolib-0.5.1-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cb416f9ad89aba816bbc0adb8790d6626dbe34b1591cfea4f4e22bbde3c9114
BLAKE2b-256 checksum
How to use checksums
f5afcf73905a08e37397515d714b0b5cf9d200189b5a496f55fa8df8e39130fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for pyrolib 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page