Skip to content

Commit d0c2b5f

Browse files
authored
Merge pull request #371 from wwieder/clm-diags
Updates for LDF
2 parents 1c9ab6f + cd7ba74 commit d0c2b5f

10 files changed

+5777
-556
lines changed

LAND-DIAGS_README.md

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
### Here's a quick start that you can use for Land Diagnostics
2+
#### Download the adf repo
3+
On casper:
4+
1. Navigate to the directory where you want the adf (e.g., `cd ~`)
5+
2. Clone the ADF
6+
`git clone https://github.com/NCAR/ADF.git`
7+
3. Set your personal repository as the upstream repo
8+
```
9+
cd ADF
10+
git remote add upstream https://github.com/<git_user_name>/ADF.git
11+
```
12+
4. Switch to the clm-diags branch
13+
`git switch -c clm-diags origin/clm-diags`
14+
15+
#### Set up your computing environment
16+
1. Create a conda environment. On NCAR's CISL machines (derecho and casper), these can be loaded by running the following on the command line:
17+
```
18+
module load conda
19+
conda env create -f env/ldf_v0.0.yaml
20+
conda activate ldf_v0.0
21+
```
22+
23+
**Note** This is somewhat redundant, as it's a clone of cupid-analysis, but land diagnostics need the latest version of uxarray (25.3.0), and this will prevent overwriting your other conda environments.
24+
25+
Also, along with these python requirements, the `ncrcat` NetCDF Operator (NCO) is also needed. On the CISL machines this can be loaded by simply running:
26+
```
27+
module load nco/5.2.4
28+
```
29+
on the command line.
30+
_Note_, I'm not sure specifying the nco version is critical, but it does seem to help get around an issues where nco errors seemed to prevent additiof area and landfrac onto timeseries files when using the default 5.3.1 version of NCO on casper.
31+
32+
## Running ADF diagnostics
33+
34+
Detailed instructions for users and developers are availabe on this repository's [wiki](https://github.com/NCAR/ADF/wiki).
35+
36+
`./run_adf_diag config_clm_unstructured_plots.yaml`
37+
38+
This should generate a collection of time series files, climatology (climo) files, re-gridded climo files, and example ADF diagnostic figures, all in their respective directories.
39+
40+
If you get NCO failures at the generate timeseries stage that end up causing LDF to fail, see issue [#365](https://github.com/NCAR/ADF/issues/365)
41+
42+
When additional memory is needed sometimes need to run interactive session on casper:
43+
`execcasper -A P93300041 -l select=1:ncpus=4:mem=64GB`
44+
145
## TEST for Land Diags:
246

347
For this branch there are (3) ways to run the ADF:
@@ -10,7 +54,7 @@ For (1), the config yaml file will be essentially the same, but with a couple of
1054
- in `diag_basic_info` set the `unstructured_plotting` argument to `true`
1155
- in each of the test and baseline section supply a mesh file in the `mesh_file` argument
1256

13-
Example yaml file: `config_unstructured_plots.yaml`
57+
Example yaml file: `config_clm_unstructured_plots.yaml`
1458

1559
For (2), the config yaml file will need some additional arguments:
1660
- in each of the test and baseline sections, supply the following arguments:
@@ -21,14 +65,15 @@ For (2), the config yaml file will need some additional arguments:
2165

2266
Regridding method:
2367

24-
`regrid_method: 'conservative'`
25-
68+
`regrid_method: 'coservative'`
69+
(Yes, spelled incorectly for a bug in xESMF)
70+
2671
Lat/lon file:
2772

2873
`latlon_file: /glade/derecho/scratch/wwieder/ctsm5.3.018_SP_f09_t232_mask/run/ctsm5.3.018_SP_f09_t232_mask.clm2.h0.0001-01.nc`
2974

3075
NOTE: The regridding method set in `regrid_method` MUST match the method in the weights file
3176

32-
Example yaml file: `config_ldf_native_grid_to_latlon.yaml`
77+
Example yaml file: `config_clm_native_grid_to_latlon.yaml`
3378

3479

0 commit comments

Comments
 (0)