Skip to content

Commit

Permalink
Merge branch 'main' into derecho-cce
Browse files Browse the repository at this point in the history
  • Loading branch information
hkershaw-brown authored Jun 1, 2023
2 parents 3b029f0 + 72e5740 commit 6c7a51f
Show file tree
Hide file tree
Showing 13 changed files with 2,042 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ individual files.

The changes are now listed with the most recent at the top.

**May 10 2023 :: Doc-fix. Tag v10.7.2**

- conf.py changes for latest readthedocs. Fixes search and flyout menu.

**May 8 2023 :: CLM-DART: CAM reanalysis site-level bias correction tool. Tag v10.7.1**

- Initial version of bias correction for CAM reanalysis forcing for
site-level assimilation with CLM-DART.
- mkmf change: make clean removes .mod files.
- bug-fix: readthedocs yaml file for online documentation build.

**April 21 2023 :: MOM6. Tag v10.7.0**

- CESM-MOM6 interface added to DART.
Expand Down
2 changes: 1 addition & 1 deletion build_templates/mkmf
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ my $noff = scalar keys %off_sources;
&print_formatted_list( "OFF =", keys %off_sources ) if $noff > 0;

#write targets
print MAKEFILE "clean: neat\n\t-rm -f .cppdefs \$(OBJ) $opt_p\n";
print MAKEFILE "clean: neat\n\t-rm -f .cppdefs *.mod \$(OBJ) $opt_p\n";
print MAKEFILE "neat:\n\t-rm -f \$(TMPFILES)\n";
print MAKEFILE "localize: \$(OFF)\n\tcp \$(OFF) .\n" if $noff > 0;
print MAKEFILE "TAGS: \$(SRC)\n\tetags \$(SRC)\n";
Expand Down
3 changes: 2 additions & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
author = 'Data Assimilation Research Section'

# The full version, including alpha/beta/rc tags
release = '10.7.0'
release = '10.7.2'
master_doc = 'README'

# -- General configuration ---------------------------------------------------
Expand All @@ -30,6 +30,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx_rtd_theme',
'sphinx.ext.autodoc',
'sphinx.ext.mathjax'
]
Expand Down
511 changes: 511 additions & 0 deletions models/clm/CAM_bias_correction/CAM4_bias_correct.m

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions models/clm/CAM_bias_correction/CAM4_site_grid.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/bin/bash

# Extracts site level grid cell from CAM4 reanalysis

# CAM4 reanalysis
CAM4_grid_path="/glade/collections/rda/data/ds199.1/"
# Site Level grid cell from CAM4 renanalysis
CAM4_site_path="/glade/work/bmraczka/CAM4_NR1/"

# The US-NR1 flux tower site is used as an example
# NR1 location (40.03, -105.55) or (40.03, 254.45)
# CAM4 grid is 1.95x2.5 or 288 longitude grid points and 96 latitude grid points
# This lat/lon corresponds with doma_lon= 102 (255 degrees east) ; doma_lat= 69 ; (40.7368 degrees)


for YEAR in {1997..2010..1}

do

echo " "
echo "entering YEAR loop where value of YEAR is:"
echo ${YEAR}
echo " "
for NINST in {0001..0080..1} # Will create 0001, 0002, ... 0080
do
echo " "
echo "entering NINST loop where value of YEAR is:"
echo ${NINST}
echo " "

#Create output directory if necessary
OUTDIR=${CAM4_site_path}${NINST}
if [[ ! -d ${OUTDIR} ]] ; then
mkdir ${OUTDIR}
fi


ncks -d doma_nx,102,102 -d doma_ny,69,69 -d a2x6h_nx,102,102 -d a2x6h_ny,69,69 \
${CAM4_grid_path}/CAM_DATM.cpl_${NINST}.ha2x1dx6h.${YEAR}.nc \
${CAM4_site_path}${NINST}/CAM4_NR1.cpl_${NINST}.ha2x1dx6h.${YEAR}.nc

echo " "
echo "Completed CAM4 NR1 extract"
echo " "

done
done


exit 0


Loading

0 comments on commit 6c7a51f

Please sign in to comment.