Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

the SUEWS model that speaks python

Project description


Python Version Support Status Latest Version Status Downloads Launch Binder

Build Status Documentation Status DOI

SUEWS that speaks Python


SuPy requires 64-bit python 3.6+ 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()

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

sample plot


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.

Files for supy, version 2020.8.9
Filename, size File type Python version Upload date Hashes
Filename, size supy-2020.8.9-py3-none-any.whl (397.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page