{"id":13288283,"url":"https://github.com/austince/planet-simulations","last_synced_at":"2025-03-10T06:33:23.039Z","repository":{"id":105115939,"uuid":"120677842","full_name":"austince/planet-simulations","owner":"austince","description":"Planet Simulations for Introduction to Astrophysics PEP 336","archived":false,"fork":false,"pushed_at":"2018-02-26T01:40:10.000Z","size":17622,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T18:06:49.232Z","etag":null,"topics":["astrophysics","data-processing","data-science","python","simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/austince.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-07T22:07:42.000Z","updated_at":"2024-02-26T06:25:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"264d9e22-c5c4-463d-b799-660e07c1d3db","html_url":"https://github.com/austince/planet-simulations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austince%2Fplanet-simulations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austince%2Fplanet-simulations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austince%2Fplanet-simulations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austince%2Fplanet-simulations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austince","download_url":"https://codeload.github.com/austince/planet-simulations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242805420,"owners_count":20187995,"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":["astrophysics","data-processing","data-science","python","simulation"],"created_at":"2024-07-29T16:56:17.487Z","updated_at":"2025-03-10T06:33:23.019Z","avatar_url":"https://github.com/austince.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Earth Orbit Simulations for PEP 336\n\n## Requirements\n**Only runs with Python 3**  \n\n3rd party packages can be install either with [Anaconda](https://www.anaconda.com/) \nby `conda env create -f env.yml` or with [pip](https://packaging.python.org/tutorials/installing-packages/)\nby `pip install -r requirements.txt`.\n\n## Running\n\nThe `cli.py` script runs the simulations and writes the \ndata to a csv file. All the running options are explained\nby running `python cli.py --help` but here are a few good ones\nto remember:\n- `--plot` will plot the results in a polar projection.\n- `--output \u003cfilename\u003e` will save the results to `filename`. (Required!)\n- `--method {euler,rk2,rk4}` will run one of those three simulations.\n- `-dt \u003cdays\u003e` will set the time delta to `days`.\n\nHere's a full example that runs a *RK4* simulation for *5 years* with a \ntime delta of *0.5 days* and plots it. \n\n`python cli.py -dt 0.5 --end-time 1825 --method rk4 --output rk4_dt=0.5_end=1825.csv --plot`\n\n\n## Examples\n\n### Euler  \n![](./examples/euler_dt=0.1_end=1825.csvpolyplot.png)  \n\n![](./examples/euler_dt=0.5_end=1825.csvpolyplot.png)  \n\n![](./examples/euler_dt=1_end=1825.csvpolyplot.png)  \n\n![](./examples/euler_dt=2.5_end=1825.csvpolyplot.png)\n\n![](./examples/euler_dt=5_end=1825.csvpolyplot.png)\n\n### RK2  \n![](./examples/rk2_dt=0.1_end=1825.csvpolyplot.png)  \n\n![](./examples/rk2_dt=0.5_end=1825.csvpolyplot.png)\n\n![](./examples/rk2_dt=1_end=1825.csvpolyplot.png)  \n\n![](./examples/rk2_dt=2.5_end=1825.csvpolyplot.png)\n\n![](./examples/rk2_dt=5_end=1825.csvpolyplot.png)\n\n### RK4  \n![](./examples/rk4_dt=0.1_end=1825.csvpolyplot.png)  \n\n![](./examples/rk4_dt=0.5_end=1825.csvpolyplot.png)\n\n![](./examples/rk4_dt=1_end=1825.csvpolyplot.png)  \n\n![](./examples/rk4_dt=2.5_end=1825.csvpolyplot.png)\n\n![](./examples/rk4_dt=5_end=1825.csvpolyplot.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustince%2Fplanet-simulations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustince%2Fplanet-simulations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustince%2Fplanet-simulations/lists"}