Skip to main content

An enhanced Fire Weather Index with atmospheric instability information

Project description

FWIe

Enhancing the Fire Weather Index with atmospheric instability information

Install

pip install fwie

How to use

import numpy as np
import scipy.io as sio
import matplotlib.pyplot as plt
from fwie.fwie import FWIe_calc

CHI = sio.loadmat('data/CHI_ERA5.mat')['CHI'][240]
FWI = sio.loadmat('data/FWI_ERA5.mat')['FWI'][240]
FWIe = FWIe_calc(FWI, CHI)
fig, axes = plt.subplots(ncols=2, figsize=(10,5), dpi=150)
axes[0].imshow(FWI, vmin=0, vmax=70, cmap='RdYlGn_r')
axes[1].imshow(FWIe, vmin=0, vmax=70, cmap='RdYlGn_r')
fig.tight_layout()

png

fig, axes = plt.subplots(ncols=2, figsize=(10,5), dpi=150)
axes[0].imshow(CHI, vmin=0, vmax=13, cmap='jet')
axes[1].imshow(FWIe-FWI, vmin=-10, vmax=10, cmap='seismic')
fig.tight_layout()

png

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

fwie-0.0.2.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

fwie-0.0.2-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

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