{"id":13686415,"url":"https://github.com/sunt05/SuPy","last_synced_at":"2025-05-01T09:31:42.808Z","repository":{"id":55545958,"uuid":"162642089","full_name":"sunt05/SuPy","owner":"sunt05","description":"SUEWS that speaks Python","archived":true,"fork":false,"pushed_at":"2022-01-27T13:47:56.000Z","size":32464,"stargazers_count":8,"open_issues_count":0,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-03T15:05:17.789Z","etag":null,"topics":["climate-model","land-surface-modeling","science-research","urban-climate-model"],"latest_commit_sha":null,"homepage":"https://supy.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunt05.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-20T23:32:57.000Z","updated_at":"2023-10-04T03:08:54.000Z","dependencies_parsed_at":"2022-08-15T03:00:16.999Z","dependency_job_id":null,"html_url":"https://github.com/sunt05/SuPy","commit_stats":null,"previous_names":[],"tags_count":7,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunt05%2FSuPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunt05%2FSuPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunt05%2FSuPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunt05%2FSuPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunt05","download_url":"https://codeload.github.com/sunt05/SuPy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224250216,"owners_count":17280522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["climate-model","land-surface-modeling","science-research","urban-climate-model"],"created_at":"2024-08-02T15:00:31.965Z","updated_at":"2024-11-12T09:30:47.491Z","avatar_url":"https://github.com/sunt05.png","language":"Python","readme":"# SuPy\n\n**THIS PROJECT IS ARCHIVED AND NOW MAINTAINED [HERE](https://github.com/UMEP-dev/SuPy) BY [@UMEP-dev](https://github.com/UMEP-dev).**\n\n[![Python Version Support Status](https://img.shields.io/pypi/pyversions/supy.svg)](https://pypi.org/project/supy)\n[![Latest Version Status](https://img.shields.io/pypi/v/supy.svg)](https://pypi.org/project/supy)\n[![Downloads](https://pepy.tech/badge/supy)](https://pepy.tech/project/supy)\n[![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sunt05/SuPy/master)\n\n[![Build Status](https://dev.azure.com/sunt05/SuPy/_apis/build/status/sunt05.SuPy?branchName=master)](https://dev.azure.com/sunt05/SuPy/_build/latest?definitionId=11?branchName=master)\n[![Documentation Status](https://readthedocs.org/projects/supy/badge/?version=latest)](https://supy.readthedocs.io/en/latest/?badge=latest)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2574404.svg)](https://doi.org/10.5281/zenodo.2574404)\n\n\n\n[**SU**EWS](https://suews-docs.readthedocs.io) that speaks **Py**thon\n\n## Installation\n\nSuPy requires 64-bit `python` 3.6+ and can be installed with `pip` in command line prompt:\n\n```shell\npython3 -m pip install supy --upgrade\n```\n\n## Quick Demo\n\nOnce installed, `supy` can be quickly started to get [SUEWS](https://suews-docs.readthedocs.io) simulations done:\n\n```python {cmd}\nimport supy as sp\nimport matplotlib.pyplot as plt\n\n#load sample data\ndf_state_init, df_forcing = sp.load_SampleData()\ngrid = df_state_init.index[0]\n\n#run supy/SUEWS simulation\ndf_output, df_state_end = sp.run_supy(df_forcing, df_state_init)\n\n#plot results and save figure\nres_plot = df_output.SUEWS.loc[grid, ['QN', 'QF', 'QS', 'QE', 'QH']]\nax=res_plot.loc['2012 6 4':'2012 6 6'].resample('30T').mean().plot()\nplt.show()\nax.figure.savefig('sample_plot.png')\n```\n\nThe above code will produce a plot of surface energy balance components as follows:\n\n![sample plot](https://github.com/sunt05/SuPy/raw/master/sample_plot.png)\n\n## Tutorial\n\nPlease check out [more SuPy tutorials here!](https://supy.readthedocs.io/en/latest/tutorial/tutorial.html)\n\n","funding_links":[],"categories":["Numerical Model"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunt05%2FSuPy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunt05%2FSuPy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunt05%2FSuPy/lists"}