Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docs-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- 'src/README.unit_testing'
- 'tools/README'
- 'doc/test/test_container_eq_ctsm_pylib.sh'
- 'cime/CIME/non_py/cprnc/README.md'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- 'src/README.unit_testing'
- 'tools/README'
- 'doc/test/test_container_eq_ctsm_pylib.sh'
- 'cime/CIME/non_py/cprnc/README.md'

pull_request:
# Run on pull requests that change the listed files
Expand All @@ -30,6 +31,7 @@ on:
- 'src/README.unit_testing'
- 'tools/README'
- 'doc/test/test_container_eq_ctsm_pylib.sh'
- 'cime/CIME/non_py/cprnc/README.md'

workflow_dispatch:

Expand Down
25 changes: 25 additions & 0 deletions doc/source/users_guide/using-clm-tools/compare-history-files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
(comparing-history-files)=

# Comparing History Files

## `nccmp`

`nccmp` allows you to compare data and/or metadata between two netCDF files. It is available as a module (`module load nccmp`) on Derecho and Casper. See the project's [GitLab](https://gitlab.com/remikz/nccmp/-/blob/master/README.md) for more information and installation instructions.

## `cprnc`

`cprnc` ([GitHub](https://github.com/ESMCI/cprnc)) is a tool shared across CESM to compare two NetCDF history files. It differences every field that is shared on both files, and reports a summary of the difference. The summary includes the three largest differences, as well as the root mean square (RMS) difference. It also gives some summary information on the field as well. You have to enter at least one file, and up to two files. With one file it gives you summary information on the file, and with two it gives you information on the differences between the two. At the end it will give you a summary of the fields compared and how many fields were different and how many were identical.

`cprnc` is available as a module (`module load cprnc`) on Derecho and Casper. To install on a different machine, from the top level of a CTSM checkout, do:
```shell
cd cime/CIME/non_py/cprnc
mkdir bld
cd bld
cmake ../
make
```

The `cprnc` README is embedded below for your convenience. Note that this is for the version included with CTSM (via CIME), which might differ from the version (if any) available on your machine.

```{include} ../../../../cime/CIME/non_py/cprnc/README.md
```
24 changes: 0 additions & 24 deletions doc/source/users_guide/using-clm-tools/cprnc.rst

This file was deleted.

2 changes: 1 addition & 1 deletion doc/source/users_guide/using-clm-tools/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Using CLM tools
creating-surface-datasets.rst
creating-domain-files.rst
observational-sites-datasets.rst
cprnc.rst
compare-history-files.md
paramfile-tools.md
Loading