Skip to main content

the SUEWS model that speaks python

Project description

SuPy

Python Version Support Status Latest Version Status Downloads Launch Binder

Documentation Status DOI

SUEWS that speaks Python

Installation

SuPy requires 64-bit python 3.7+ and can be installed with pip in command line prompt:

python3 -m pip install supy --upgrade

Quick Demo

Once installed, supy can be quickly started to get SUEWS simulations done:

import supy as sp
import matplotlib.pyplot as plt

#load sample data
df_state_init, df_forcing = sp.load_SampleData()
grid = df_state_init.index[0]

#run supy/SUEWS simulation
df_output, df_state_end = sp.run_supy(df_forcing, df_state_init)

#plot results and save figure
res_plot = df_output.SUEWS.loc[grid, ['QN', 'QF', 'QS', 'QE', 'QH']]
ax=res_plot.loc['2012 6 4':'2012 6 6'].resample('30T').mean().plot()
plt.show()
ax.figure.savefig('sample_plot.png')

The above code will produce a plot of surface energy balance components as follows:

sample plot

Tutorial

Please check out more SuPy tutorials here!

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

supy-2022.4.7-py3-none-any.whl (403.6 kB view details)

Uploaded Python 3

File details

Details for the file supy-2022.4.7-py3-none-any.whl.

File metadata

  • Download URL: supy-2022.4.7-py3-none-any.whl
  • Upload date:
  • Size: 403.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for supy-2022.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 02f57b783262a1b8bb1aeec81041d356b03124b7283680b0fdd8e6303e699cbc
MD5 ab5d93bbb4957d1fafa4514fa3dc0860
BLAKE2b-256 bbdb541239194255eedcebd6ef651e5ebad52db85ede8beec4d37dee65fd1817

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