the SUEWS model that speaks python
Project description
SuPy
SUEWS that speaks Python
Installation
SuPy requires python
3.5+ and can be installed with pip
in command line prompt:
python3 -m pip install supy --upgrade
Quickstart
Once installed, supy
can be quickly started to get SUEWS simulations done:
import supy as sp
# load sample data
df_state_init, df_forcing = sp.load_SampleData()
# run supy/SUEWS simulation
df_output, df_state_end = sp.run_supy(df_forcing, df_state_init)
# plot results
res_plot = df_output.SUEWS.loc[1, ['QN', 'QF', 'QS', 'QE', 'QH']]
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:
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-2019.2.8-py3-none-any.whl
(185.8 kB
view hashes)