{"id":16802764,"url":"https://github.com/mathause/cesm","last_synced_at":"2025-03-17T09:43:19.366Z","repository":{"id":56777662,"uuid":"63620439","full_name":"mathause/cesm","owner":"mathause","description":"list CESM history files","archived":false,"fork":false,"pushed_at":"2022-08-15T18:05:17.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-23T19:18:37.400Z","etag":null,"topics":["cesm","netcdf"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathause.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-18T16:47:44.000Z","updated_at":"2022-07-21T18:11:36.000Z","dependencies_parsed_at":"2022-08-16T02:40:25.973Z","dependency_job_id":null,"html_url":"https://github.com/mathause/cesm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathause%2Fcesm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathause%2Fcesm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathause%2Fcesm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathause%2Fcesm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathause","download_url":"https://codeload.github.com/mathause/cesm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244012161,"owners_count":20383543,"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":["cesm","netcdf"],"created_at":"2024-10-13T09:40:35.793Z","updated_at":"2025-03-17T09:43:19.341Z","avatar_url":"https://github.com/mathause.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cesm - list simulation files and retrieve data\n\n## Usage\n\nDefine one or more simulations in `~/cesm_cases.yaml`:\n\n```yaml\nSMX2000:\n    folder: /net/exo/landclim/mathause/cesm_data/\n    name: f.e121.FC5.f19_g16.SMM2010_2000-io384.001\n```\n\n\nList / select files:\n\n```python\nimport cesm\n\ncase = cesm.case('SMX2000')\nprint(case.lnd.h0.filename)\n\nprint(case.lnd.h1.sel(year=50))\n```\n\nOutput\n```\n['f.e121.FC5.f19_g16.SMM2010_2000-io384.001.clm2.h0.0001-01.nc',\n 'f.e121.FC5.f19_g16.SMM2010_2000-io384.001.clm2.h0.0001-02.nc',\n 'f.e121.FC5.f19_g16.SMM2010_2000-io384.001.clm2.h0.0001-03.nc'\n ...]\n\n'/net/.../f.e121.FC5.f19_g16.SMM2010_2000-io384.001.clm2.h1.0050-01-01-00000.nc'\n```\n\nLoad data:\n```python\nTREFHT = cesm.load.var(case.atm.h0, 'TREFHT', year=50)\nprint(TREFHT)\n```\n\nOutput\n```\n1 years require saving\nwriting variable: 50 in 50..50\n\n\u003cxarray.Dataset\u003e\nDimensions:  (lat: 96, lon: 144, time: 12)\nCoordinates:\n  * lat      (lat) float64 -90.0 -88.11 -86.21 -84.32 -82.42 -80.53 -78.63 ...\n  * lon      (lon) float64 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 20.0 22.5 ...\n  * time     (time) datetime64[ns] 2000-01-16T12:00:00 2000-02-15 ...\nData variables:\n    TREFHT   (time, lat, lon) float32 242.634 243.037 242.642 242.609 ...\n\n```\n\n\n## Note\n\nWith version 0.2.0 I disentangled this package with the changes I added on top of xarray (which was a very bad idea) by adding the `xarray_utils`. It should now work with the original version of xarray (but this is currenly untested).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathause%2Fcesm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathause%2Fcesm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathause%2Fcesm/lists"}