Skip to content

Add hillslope scripts (to python/ctsm/) and external, plus docs - #2425

Open
samsrabin wants to merge 205 commits into
ESCOMP:b4b-devfrom
samsrabin:hillslope-scripts-2
Open

samsrabin wants to merge 205 commits into
ESCOMP:b4b-devfrom
samsrabin:hillslope-scripts-2

Conversation

@samsrabin

@samsrabin samsrabin commented Mar 15, 2024 •

Copy link
Copy Markdown
Member

Description of changes

Sean Swenson has various scripts related to making files/variables for use in hillslope runs. Some of these are not CTSM-specific, so they're in a separate Representative_Hillslopes repo. Some are CTSM-specific, though, so this PR will add those to python/ctsm/. It also adds the Representative_Hillslopes repo as an optional external to CTSM.

Replaces PR #2401, which I couldn't get to rebase properly.

Specific notes

Contributors other than yourself, if any: Sean Swenson (@swensosc)

CTSM Issues Fixed (include github issue #):

Are answers expected to change (and if so in what way)? No

Any User Interface Changes (namelist or namelist defaults changes)? No

Testing performed, if any: Python unit and system tests

Remaining work

  • Finish testing and pylint cleanup of combine_chunk_files
  • Finish pylint cleanup of synthetic_hillslope
  • Add Python system tests
  • Add Python unit tests
  • Rework scripts to make hillslope_file instead of fsurdat
  • Add documentation
  • Add CIME SystemTest (or some other way of testing everything from hillslope file generation through a CLM run)

@samsrabin samsrabin added enhancement new capability or improved behavior of existing capability tag: support tools only b4b bit-for-bit labels Mar 15, 2024
@samsrabin samsrabin self-assigned this Mar 15, 2024
* -i/--input-file
* -o/--output-file
* --overwrite
@samsrabin

Copy link
Copy Markdown
Member Author

Doc-building Workflows will fail until #3231 is brought in.

@samsrabin samsrabin mentioned this pull request Jul 7, 2025
3 of 8 tasks
@samsrabin

Copy link
Copy Markdown
Member Author

Built documentation for reference while we wait for this to come in: hillslope_docs_2055a54.pdf

b4b-dev merge 2026-11-12

# Conflicts:
#	.git-blame-ignore-revs
#	.github/workflows/docs-build-and-deploy.yml
#	.github/workflows/docs-omnibus.yml
#	.github/workflows/docs.yml
#	.gitignore
#	doc/source/users_guide/using-clm-tools/index.rst
@github-actions

Copy link
Copy Markdown

❌ Docs build failed

Build logs
Cleaning documentation build directory...
Done.
Building documentation...
/home/user/mounted_home/doc/source/users_guide/using-clm-tools/creating-hillslope-datasets.rst:22: ERROR: Unknown directive type "mdinclude".
/home/user/mounted_home/doc/source/users_guide/using-clm-tools/index.rst:12: WARNING: toctree contains reference to nonexisting document 'users_guide/using-clm-tools/creating-domain-files' [toc.not_readable]
Documentation build completed, but with problems that must be resolved.
Re-run with --verbose for full output.

@samsrabin
samsrabin changed the base branch from master to b4b-dev November 23, 2026 21:41
@samsrabin
samsrabin marked this pull request as ready for review November 23, 2026 21:43
@samsrabin
samsrabin requested a review from swensosc November 23, 2026 21:43
@samsrabin

Copy link
Copy Markdown
Member Author

@swensosc Could you review the new User's Guide page for clarity and accuracy? Please let me know if you'd like to look at a rendered HTML version instead of the raw Markdown.

@samsrabin samsrabin added the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Nov 23, 2026
@samsrabin

Copy link
Copy Markdown
Member Author

Adding next to discuss:

  • Does the Representative Hillslopes submodule's remote need to be owned by ESCOMP instead of Sean?
  • I did a lot of refactoring of the original scripts Sean sent me. Does someone other than me need to review the final versions? If so, would we be okay with that someone being an LLM?
  • I used Claude to generate some system and unit tests. I confirmed that I understood them all, but does someone else need to review?

@swensosc

Copy link
Copy Markdown
Contributor

I read through it, and it looks good to me. I don't know if it's worth adding, but the reason why I chose to save gridcell files, then combine to chunk, was that sometimes it would fail and in that case all the progress was lost. By saving each gridcell, it was easy to continue after a fail.
Combine the per-gridcell files from the HAND analysis into one file per chunk.

@samsrabin

Copy link
Copy Markdown
Member Author

Thanks, @swensosc! That much was obvious to me, but it's probably worth preserving for posterity.

I will:

  • Do that

@samsrabin
samsrabin removed the request for review from swensosc November 24, 2026 21:50
@samsrabin samsrabin changed the title [WIP] Add hillslope scripts (to python/ctsm/) and external, plus docs Add hillslope scripts (to python/ctsm/) and external, plus docs Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

b4b bit-for-bit devops Development Operations to improve development throughput, E.g., adding GitHub Workflows documentation additions or edits to user-facing documentation or its infrastructure enhancement new capability or improved behavior of existing capability next this should get some attention in the next week or two. Normally each Thursday SE meeting. test: python Pass clm_pymods test suite plus Python sys/unit tests before merging

Projects

Status: Stalled

Development

Successfully merging this pull request may close these issues.

Add hillslope input-creation scripts

2 participants