A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

CTSM

The Community Land Model is the land model for the Community Earth System Model, which formalises and quantifies concepts of ecological climatology.
https://github.com/ESCOMP/CTSM

Category: Climate Change
Sub Category: Earth and Climate Modeling

Keywords

cesm climate clm ecosystem hydrology land land-surface-model ncar

Keywords from Contributors

datamodeling earth-system-model climate-model nwp community numerical-modeling numerical-weather-prediction weather unified-forecast-system nuopc

Last synced: about 11 hours ago
JSON representation

Repository metadata

Community Terrestrial Systems Model (includes the Community Land Model of CESM)

README

          $CTSMROOT/README                                          09/05/2024

Community Terrestrial Systems Model (CTSM) science version 5.3 series -- source code, tools, 
offline-build and test scripts. This gives you everything you need
to run CTSM with CESM with the CMEPS driver and CDEPS data models to provide CRUJRA or GSWP3 forcing data (some older options also available) in
place of a modeled atmosphere.

CMEPS is the Community Mediator for Earth Prediction Systems. And CDEPS is the
Community Data Models for Earth Prediction System. They are both NUOPC based models
used to drive the CESM (Community Earth System Model) of which CTSM is a component of.
NUOPC is the National Unified Operational Prediction Capability a standard way of building
coupled model systems. The NUOPC layer is based on the Earth System Modeling Framework (ESMF).

For lists of current bugs (issues) and current development see the CTSM GitHub page:

https://github.com/ESCOMP/CTSM

INFORMATION ON THE CMEPS DRIVER:

https://escomp.github.io/CMEPS

https://earthsystemmodeling.org/nuopc/

IMPORTANT NOTE ON CESM CHECKOUT VERSUS A CTSM CHECKOUT:

If this is the top level directory from making a clone of CTSM the 
directory structure is a little bit different than if CTSM is from 
a clone of the entire CESM. If this is part of CESM this directory
will be under components/clm alongside other CESM component models.
For a CTSM checkout this will be the top level directory.

Other documentation will refer to $CTSMROOT and it means the directory
that this file is at. CIMEROOT is the directory where "cime" is for
this checkout. For a CESM checkout $CIMEROOT will be the "cime" directory
beneath the top level directory. For a CTSM checkout $CIMEROOT will
be $CTSMROOT/cime.

IMPORTANT NOTE ABOUT (deprecated)

Anything marked with (deprecated) is something is going to be removed in a future update.
Often this means it will be replaced with something else.


General directory structure ($CTSMROOT):

doc --------------- Documentation of CTSM.
bld --------------- build-namelist scripts for CTSM.
src --------------- CTSM Source code.
lilac ------------- Lightweight Infrastructure for Land-Atmosphere Coupling (for coupling to a host atmosphere model)
tools ------------- CTSM Offline tools to prepare input datasets and process output.
cime_config ------- Configuration files of cime for compsets and CTSM settings
bin/git-fleximod -- Script to manage the needed sub-component source directories (handled with git submodule)
py_env_create ----- Script to setup the python environment for CTSM python tools using conda
python ------------ Python modules used in tools and testing and automated checking of ALL CTSM python scripts

Directory structure only for a CTSM checkout:

components -------- Other active sub-components needed for CTSM to run (river routing and land-ice models)
libraries --------- CESM libraries: PIO (deprecated)
share ------------- CESM shared code
ccs_config -------- CIME configure files (for grids, compsets, and machines) for CESM

cime/scripts --------------- cesm/cime driver scripts

components/cmeps -------------------- CESM top level driver (for NUOPC driver [which is the default]) source code.
components/cdeps -------------------- CESM top level data model shared code (for NUOPC driver).
components/cism --------------------- CESM Community land Ice Sheet Model.
components/mosart ------------------- Model for Scale Adaptive River Transport
components/mizuRoute ---------------- Reached based river transport model for water routing 
                                      (allows both gridded river and Hydrologic Responce Unit river grids)
components/rtm ---------------------- CESM River Transport Model.

Top level documentation ($CTSMROOT):

README ------------------- This file
README.md ---------------- File that displays on github under https::/github.com/ESCOMP/CTSM.git
README.rst --------------- File that displays under the project in github
README_GITFLEXIMOD.rst --- Information on how to work with git-fleximod for CTSM
WhatsNewInCTSM5.3.md ----- Overview document of the changes between ctsm5.2.0 and ctsm5.3.0
CODE_OF_CONDUCT.md ------- Code of Conduct for how to work with each other on the CTSM project
Copyright ---------------- CESM Copyright file
doc/UpdateChangeLog.pl --- Script to add documentation on a tag to the
                           ChangeLog/ChangeSum files
doc/ChangeLog ------------ Documents different CTSM versions
doc/ChangeSum ------------ Summary documentation of different CTSM versions

doc/design --------------- Software Engineering and code design document files

Checklists for standard Software Engineering tasks

./doc/README.CHECKLIST.master_tags
./bld/namelist_files/README.CHECKLIST.interpolating_initial_conditions.md

Documentation of Namelist Items: (view the following in a web browser)

bld/namelist_files/namelist_definition_ctsm.xml --- Definition of all namelist items
bld/namelist_files/namelist_defaults_ctsm.xml ----- Default values

=============================================================================================
Important files in main directories (under $CTSMROOT):
=============================================================================================

run_sys_tests --------------- Python script to send the standard CTSM testing off (submits
                              the create_test test suite for several different compilers on the
                              machines we do standard CTSM testing on).

parse_cime.cs.status -------- Script to parse test status files cs.status.* created by create_test
                              (can be used along with run_sys_tests)
doc/Quickstart.GUIDE -------- Quick guide to using NUOPC scripts.
doc/IMPORTANT_NOTES.md ------ Some important notes about this version of 
                              CTSM, configuration modes and namelist items 
                              that are not validated or functional.
doc/ChangeLog --------------- Detailed list of changes for each model version.
doc/ChangeSum --------------- Summary one-line list of changes for each 
                              model version.
doc/UsersGuide -------------- CTSM Users Guide

bld/README ------------------ Description of how to use the build-namelist scripts.
bld/build-namelist ---------- Lower level script to build CTSM namelists.

cime_config/buildnml ------------- Build the CTSM namelist for CIME
cime_config/buildlib ------------- Build the CTSM library
cime_config/config_compsets.xml -- Define CTSM compsets
cime_config/config_component.xml - Define CTSM XML settings
cime_config/config_tests.xml ----- Define CTSM specific tests 
cime_config/config_pes.xml ------- Define Processor layouts for various CTSM grids and compsets
cime_config/testdefs ------------- Directory for specification of CTSM testing
cime_config/testdefs/ExpectedTestFails.xml -- List of tests that are expected to fail
cime_config/usermods_dirs/clm ---- Directories of sets of user-modification subdirs
                                   (These are directories that add specific user modifications to
                                    simulations created using "cime/scripts/create_newcase --user-mods-dir clm/*)

tools/mksurfdata_esmf --------- Directory to build program to create surface dataset 
                                at any resolution.
tools/mkmapgrids -------------- NCL script to create a SCRIP grid file for a regular lat/lon grid (deprecated)
tools/crop_calendars ---------- Tools to process and process and create crop calendar datasets for CTSM
tools/modify_input_files ------ Script to modify existing CTSM input datasets in standard ways
tools/site_and_regional ------- Scripts to create input datasets for single site and regional
                                cases, primarily by modifying existing global datasets
tools/contrib ----------------- Miscellansous useful scripts for pre and post processing
                                as well as case management of CTSM. These scripts are
                                contributed by users and may not be as well tested or
                                supported as other tools.


=============================================================================================
Source code directory structure:
=============================================================================================

src/biogeochem ---- Biogeochemisty
src/main ---------- Main control and high level code
src/cpl ----------- Land model high level caps for NUOPC driver (and LILAC)
src/biogeophys ---- Biogeophysics (Hydrology)
src/dyn_subgrid --- Dynamic land unit change
src/init_interp --- Online interpolation
scr/fates --------- FATES model and sub-directories 
                    Functionally Assembled Terrestrial Ecosystem Simulator (FATES)
                    Ecosystem Demography model
src/utils --------- Utility codes
src/self_tests ---- Internal testing (unit tests run as a part of a CTSM system test)
src/unit_test_shr - Unit test shared modules for unit testing
src/unit_test_stubs Unit test stubs that replicate CTSM code simpler

=============================================================================================
    QUICKSTART: using the NUOPC driver scripts
=============================================================================================

         cd $CIMEROOT/scripts
         ./create_newcase            # get help on how to run create_newcase
         ./create_newcase --case testI --res f19_g17_gl4 --compset I2000Clm60BgcCrop
                                     # create new "I" case for default machine at 1.9x2.5_gx1v7 
                                     # "I2000Clm60BgcCrop" case is clm6_0 physics, CDEPS, and inactive ice/ocn/glc
                                     # and MOSART for river-routing
         cd testI
         ./case.setup                # create the $CASE.run file
         ./case.build                # build model and create namelists
         ./case.submit               # submit script
                                     # (NOTE: ./xmlchange RESUBMIT=10 to set RESUBMIT to number
                                     # #  of times to automatically resubmit -- 10 in this example)


        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 3 days ago

Total Commits: 11,424
Total Committers: 112
Avg Commits per committer: 102.0
Development Distribution Score (DDS): 0.734

Commits in past year: 1,791
Committers in past year: 23
Avg Commits per committer in past year: 77.87
Development Distribution Score (DDS) in past year: 0.674

Name Email Commits
Erik Kluzek e****k@u****u 3041
Bill Sacks s****s@u****u 1875
Sam Rabin s****n@g****m 1595
Samuel Levis s****g@g****m 1439
Negin Sobhani n****3@g****m 504
Gregory Lemieux g****x 493
Mariana Vertenstein m****s@u****u 319
Ryan Knox r****x@l****v 237
Sean Swenson s****c@u****u 217
Keith Oleson o****n@u****u 185
adrifoster a****t@u****u 160
Teagan King t****g@u****u 149
Jim Edwards j****s@u****u 138
wwieder w****r@u****u 106
Adrianna Foster a****r@u****u 70
mvdebolskiy m****y@a****u 66
chen693 y****g@p****v 56
Stefan Muszala m****a@u****u 54
Ben Andre a****e@u****u 51
sunnivin s****s@g****m 50
Joseph Hamman j****n@u****u 44
Danny M. Leung d****g@u****u 36
cathyxinchangli 5****i 33
rosiealice r****r@g****m 31
ckoven c****n@g****m 26
Daniel Kennedy d****0@c****u 23
Danica Lombardozzi d****l@t****u 21
Keith Oleson o****n@r****u 19
Mathew Rothstein m****r@u****u 19
ivanderkelen i****n@v****e 19
and 82 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 1,175
Total pull requests: 483
Average time to close issues: over 1 year
Average time to close pull requests: 3 months
Total issue authors: 69
Total pull request authors: 43
Average comments per issue: 4.22
Average comments per pull request: 7.93
Merged pull request: 305
Bot issues: 0
Bot pull requests: 7

Past year issues: 498
Past year pull requests: 280
Past year average time to close issues: about 2 months
Past year average time to close pull requests: 18 days
Past year issue authors: 35
Past year pull request authors: 26
Past year average comments per issue: 2.78
Past year average comments per pull request: 5.41
Past year merged pull request: 173
Past year bot issues: 0
Past year bot pull requests: 7

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ESCOMP/CTSM

Top Issue Authors

  • ekluzek (438)
  • samsrabin (200)
  • billsacks (134)
  • wwieder (83)
  • slevis-lmwg (74)
  • olyson (48)
  • glemieux (28)
  • rgknox (21)
  • adrifoster (18)
  • dlawrenncar (9)
  • lifang0209 (7)
  • TeaganKing (6)
  • jedwards4b (5)
  • adamrher (5)
  • cathyxinchangli (5)

Top Pull Request Authors

  • samsrabin (131)
  • slevis-lmwg (77)
  • ekluzek (54)
  • rgknox (46)
  • jedwards4b (20)
  • olyson (19)
  • glemieux (18)
  • adrifoster (14)
  • wwieder (14)
  • TeaganKing (7)
  • dependabot[bot] (7)
  • mvdebolskiy (7)
  • billsacks (6)
  • johnpaulalex (5)
  • ShannonRoos (5)

Top Issue Labels

  • enhancement (352)
  • bug (254)
  • science (208)
  • bfb (183)
  • priority: low (142)
  • testing (107)
  • code health (99)
  • type: bug (83)
  • type: enhancement (75)
  • good first issue (74)
  • closed: wontfix (65)
  • usability (63)
  • documentation (56)
  • priority: high (46)
  • type: code cleanup (44)
  • test: python (33)
  • type: documentation (31)
  • tag: next (28)
  • blocked: dependency (27)
  • type: tests (24)
  • investigation (24)
  • done (21)
  • FATES (19)
  • external (18)
  • tag: simple bfb (17)
  • blocker (15)
  • priority: Immediate (14)
  • type: -discussion (14)
  • test: mksurfdata (14)
  • next (14)

Top Pull Request Labels

  • bfb (120)
  • enhancement (119)
  • science (64)
  • type: enhancement (60)
  • PR status: ready (48)
  • bug (35)
  • priority: high (29)
  • tag: enh - new science (26)
  • tag: simple bfb (23)
  • test: aux_clm (20)
  • PR status: needs testing (19)
  • testing (19)
  • code health (18)
  • type: code cleanup (17)
  • FATES update requiring an API change (17)
  • blocked: dependency (16)
  • priority: Immediate (15)
  • tag: bfb (15)
  • documentation (14)
  • PR status: work in progress (14)
  • usability (14)
  • type: documentation (14)
  • type: tests (12)
  • test: fates (12)
  • blocker (12)
  • FATES change (12)
  • non-bfb (11)
  • test: python (11)
  • simple (10)
  • PR status: awaiting review (10)

Dependencies

.github/workflows/black.yml actions
  • actions/checkout v2 composite
  • psf/black stable composite
manage_externals/test/repos/container.git/description cran
manage_externals/test/repos/mixed-cont-ext.git/description cran
manage_externals/test/repos/simple-ext-fork.git/description cran
manage_externals/test/repos/simple-ext.git/description cran
lilac/Dockerfile docker
  • jhamman/esmf latest build
lilac/docker-compose.yml docker
lilac/ci/environment.yml pypi
lilac/docs/requirements.txt pypi
  • numpy *
  • sphinx ==1.6.7
  • sphinx-fortran *
manage_externals/test/requirements.txt pypi
  • autopep8 >=1.3.0 test
  • coverage >=4.4.0 test
  • coveralls >=1.2.0 test
  • pylint >=1.7.0 test
  • sphinx >=1.6.0 test
python/pyproject.toml pypi
python/requirements.txt pypi
  • Requirementsfortesting *
  • thestandardlibraryinpython3.3 *

Score: 11.684523058401208