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

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.0
File Size Uploaded Provenance Actions
pyrolib-0.5.0.tar.gz 76.3 kB Without provenance Details for pyrolib-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 106.9 kB

Release files / pyrolib-0.5.0.tar.gz

Download URL pyrolib-0.5.0.tar.gz
Size 76.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1da8649e50ff5a436d930da9977665e3f3999dad137ec57fd77a7e39bf4706fc
BLAKE2b-256 checksum
How to use checksums
1d2939c520b6c5c44105dddc9647a5b96f25239a4244e04cd1dcec1608e85a1c
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.0-py3-none-any.whl

Download URL pyrolib-0.5.0-py3-none-any.whl
Size 30.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff4db6e8727fdab6d05571399e0b7f9522d082693eb2f5518a0bd0984815da0d
BLAKE2b-256 checksum
How to use checksums
7da2d7f5c9b1a6b90027a35d0effe5d4c8ce62e2407fa7cafaef28729bc386ac
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.0

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