Skip to main content

the SUEWS model that speaks python

Project description

# SuPy

[![Build Status](https://dev.azure.com/sunt05/SUEWS/_apis/build/status/sunt05.SuPy?branchName=master)](https://dev.azure.com/sunt05/SUEWS/_build/latest?definitionId=11?branchName=master)

[![Documentation Status](https://readthedocs.org/projects/supy/badge/?version=latest)](https://supy.readthedocs.io/en/latest/?badge=latest)

[**SU**EWS](https://suews-docs.readthedocs.io) that speaks **Py**thon

## Installation
SuPy requires `python` 3.5+ and can be installed with `pip` in commmand line prompt:

```shell
python3 -m pip install supy --upgrade
```

## Quickstart
Once installed, `supy` can be quickly started to get [SUEWS](https://suews-docs.readthedocs.io) simulations done:

```python
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:

![sample plot](./sample_plot.png)

## Tutorial
Please check out [more SuPy tutorials here!](https://supy.readthedocs.io/en/latest/tutorial/tutorial.html)


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-2018.12.29-py3-none-any.whl (183.6 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