forked from NCAR/DART
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into derecho-cce
- Loading branch information
Showing
13 changed files
with
2,042 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
Oops, something went wrong.