{"id":15555261,"url":"https://github.com/brews/embm","last_synced_at":"2025-04-23T19:49:17.719Z","repository":{"id":16539500,"uuid":"19292995","full_name":"brews/embm","owner":"brews","description":"🌐 A trivial global atmosphere energy-moisture balance model (EMBM) written in Python.","archived":false,"fork":false,"pushed_at":"2021-05-22T16:19:07.000Z","size":108,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-17T01:27:38.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/brews.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":"2014-04-29T22:05:45.000Z","updated_at":"2023-12-13T17:56:31.000Z","dependencies_parsed_at":"2022-09-18T11:01:39.997Z","dependency_job_id":null,"html_url":"https://github.com/brews/embm","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brews%2Fembm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brews%2Fembm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brews%2Fembm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brews%2Fembm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brews","download_url":"https://codeload.github.com/brews/embm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250504085,"owners_count":21441527,"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":[],"created_at":"2024-10-02T15:07:42.598Z","updated_at":"2025-04-23T19:49:17.671Z","avatar_url":"https://github.com/brews.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"embm\n===========\n\nA trivial global atmosphere energy-moisture balance model (EMBM) written in Python 3. Loosely based on [Fanning and Weaver 1996](http://dx.doi.org/10.1029/96JD01017). This is a class project.\n\n# Requirements\n\n* [Python 3](https://www.python.org/)\n* [Numpy](http://www.numpy.org/) (embm was written with version 1.8.1)\n\n# How do I run this?\n\nFor a complete example, see the [project's wiki page](https://github.com/brews/embm/wiki). A very simple example is below.\n\nFirst, [download a copy](https://github.com/brews/embm/archive/master.zip) of the embm code. Unpackage the code and open a Python shell in the same directory as `embm.py`. In the Python shell, type:\n\n```\nimport embm\n\nm = embm.Model()\nm.step(10000)\n```\nYou can plot or just quickly checkout the fruits of your model's labor:\n```\nm.t[1]\nm.q[1]\n```\n\nThis sets up a model, which we assign to `m`. The model then runs through 10,000 time-steps, roughly 208 days in \"model time\" with the default settings. This is more than enough time for the model to spin up. This takes under a minute to run on my old laptop.\n\nYou can change settings and parameters or analyze variables within the model by interacting with the model instance, in this case, `m`.\n\nFor more information see the documentation within the code or [the project's humble wiki](https://github.com/brews/embm/wiki).\n\n# What's the purpose of this?\n\nThe model, as originally described by [Fanning and Weaver 1996](http://dx.doi.org/10.1029/96JD01017), was designed as a simple atmosphere component attached to a larger ocean circulation model. It now can be used to test theoretical claims or as a simple exercise.\n\nThe model treats the atmosphere as a single-layered slab gridded into 4° x 5° cells. It accounts for simple energy (e.g. from the ocean or incoming solar radiation) and moisture exchange (e.g. crude evaporation, precipitation, and humidity) across the grid. This action is parameterized as a simple [diffusive process](http://en.wikipedia.org/wiki/Diffusion).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrews%2Fembm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrews%2Fembm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrews%2Fembm/lists"}