Skip to content

Commit

Permalink
Merge pull request #1872 from wwieder/neon_updates
Browse files Browse the repository at this point in the history
Neon updates
  • Loading branch information
ekluzek authored Nov 20, 2022
2 parents 979c71f + 01b4118 commit fe0fa29
Show file tree
Hide file tree
Showing 65 changed files with 853 additions and 713 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ unit_test_build
/tools/mkmapdata/regrid.o*
/tools/mkmapdata/map*.nc

# run_neon output directories
/tools/site_and_regional/listing.csv
/tools/site_and_regional/????/
/tools/site_and_regional/????.ad/
/tools/site_and_regional/????.postad/
/tools/site_and_regional/????.transient/

# build output
*.o
*.mod
Expand Down
2 changes: 1 addition & 1 deletion Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ required = True
local_path = components/mosart
protocol = git
repo_url = https://github.com/ESCOMP/MOSART
tag = mosart1_0_45
tag = mosart1_0_47
required = True

[mizuRoute]
Expand Down
2 changes: 2 additions & 0 deletions bld/CLMBuildNamelist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4560,6 +4560,8 @@ sub check_use_case_name {
} else {
$log->fatal_error($diestring);
}
} elsif ( $use_case =~ /^([0-9]+|PI)-PD_*($desc)_transient$/ ) {
# valid name
} elsif ( $use_case =~ /^([0-9]+)_*($desc)_control$/ ) {
# valid name
} elsif ( $use_case =~ /^($desc)_pd$/ ) {
Expand Down
16 changes: 16 additions & 0 deletions bld/namelist_files/namelist_defaults_ctsm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ attributes from the config_cache.xml file (with keys converted to upper-case).
<co2_ppmv sim_year="2000" >379.0</co2_ppmv>
<co2_ppmv sim_year="2010" >388.8</co2_ppmv>
<co2_ppmv sim_year="2015" >397.5</co2_ppmv>
<co2_ppmv sim_year="2018" >408.83</co2_ppmv>
<co2_ppmv sim_year="1850" >284.7</co2_ppmv>
<co2_ppmv sim_year="PtVg" >284.7</co2_ppmv>

Expand Down Expand Up @@ -1449,6 +1450,9 @@ lnd/clm2/surfdata_map/release-clm5.0.30/surfdata_ne0np4.CONUS.ne30x8_hist_78pfts
<stream_year_last_ndep phys="clm5_1" use_cn=".true." sim_year_range="1850-2100" >2101</stream_year_last_ndep>
<model_year_align_ndep phys="clm5_1" use_cn=".true." sim_year_range="1850-2100" >2015</model_year_align_ndep>

<stream_year_first_ndep use_cn=".true." sim_year="2018" >2018</stream_year_first_ndep>
<stream_year_last_ndep use_cn=".true." sim_year="2018" >2018</stream_year_last_ndep>

<stream_year_first_ndep use_cn=".true." sim_year="2010" >2010</stream_year_first_ndep>
<stream_year_last_ndep use_cn=".true." sim_year="2010" >2010</stream_year_last_ndep>

Expand Down Expand Up @@ -1601,6 +1605,9 @@ lnd/clm2/surfdata_map/release-clm5.0.30/surfdata_ne0np4.CONUS.ne30x8_hist_78pfts
<stream_year_last_popdens phys="clm5_1" cnfireson=".true." sim_year_range="1850-2100" >2100</stream_year_last_popdens>
<model_year_align_popdens phys="clm5_1" cnfireson=".true." sim_year_range="1850-2100" >2015</model_year_align_popdens>

<stream_year_first_popdens use_cn=".true." sim_year="2018" >2018</stream_year_first_popdens>
<stream_year_last_popdens use_cn=".true." sim_year="2018" >2018</stream_year_last_popdens>

<stream_year_first_popdens use_cn=".true." sim_year="2010" >2010</stream_year_first_popdens>
<stream_year_last_popdens use_cn=".true." sim_year="2010" >2010</stream_year_last_popdens>

Expand All @@ -1619,6 +1626,9 @@ lnd/clm2/surfdata_map/release-clm5.0.30/surfdata_ne0np4.CONUS.ne30x8_hist_78pfts
<stream_year_first_popdens use_cn=".true." sim_year="constant" sim_year_range="1000-1004" >2000</stream_year_first_popdens>
<stream_year_last_popdens use_cn=".true." sim_year="constant" sim_year_range="1000-1004" >2000</stream_year_last_popdens>

<stream_year_first_popdens use_fates=".true." sim_year="2018" >2018</stream_year_first_popdens>
<stream_year_last_popdens use_fates=".true." sim_year="2018" >2018</stream_year_last_popdens>

<stream_year_first_popdens use_fates=".true." sim_year="2010" >2010</stream_year_first_popdens>
<stream_year_last_popdens use_fates=".true." sim_year="2010" >2010</stream_year_last_popdens>

Expand Down Expand Up @@ -1706,6 +1716,12 @@ lnd/clm2/surfdata_map/release-clm5.0.30/surfdata_ne0np4.CONUS.ne30x8_hist_78pfts
<stream_year_last_urbantv phys="clm4_5" sim_year_range="1850-2100" >2106</stream_year_last_urbantv>
<model_year_align_urbantv phys="clm4_5" sim_year_range="1850-2100" >2015</model_year_align_urbantv>

<stream_year_first_urbantv sim_year="2018" >2018</stream_year_first_urbantv>
<stream_year_last_urbantv sim_year="2018" >2018</stream_year_last_urbantv>

<stream_year_first_urbantv sim_year="2010" >2010</stream_year_first_urbantv>
<stream_year_last_urbantv sim_year="2010" >2010</stream_year_last_urbantv>

<stream_year_first_urbantv sim_year="2000" >2000</stream_year_first_urbantv>
<stream_year_last_urbantv sim_year="2000" >2000</stream_year_last_urbantv>

Expand Down
2 changes: 1 addition & 1 deletion bld/namelist_files/namelist_definition_ctsm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ If 1, turn on the MEGAN model for BVOC's (Biogenic Volitile Organic Compounds)

<entry id="sim_year" type="char*4" category="default_settings"
group="default_settings" valid_values=
"PtVg,1000,850,1100,1350,1600,1850,1855,1865,1875,1885,1895,1905,1915,1925,1935,1945,1955,1965,1975,1979,1980,1982,1985,1995,2000,2005,2010,2013,2015,2025,2035,2045,2055,2065,2075,2085,2095,2105">
"PtVg,1000,850,1100,1350,1600,1850,1855,1865,1875,1885,1895,1905,1915,1925,1935,1945,1955,1965,1975,1979,1980,1982,1985,1995,2000,2005,2010,2013,2015,2018,2025,2035,2045,2055,2065,2075,2085,2095,2105">
Year to simulate and to provide datasets for (such as surface datasets, initial conditions, aerosol-deposition, Nitrogen deposition rates etc.)
A sim_year of 1000 corresponds to data used for testing only, NOT corresponding to any real datasets.
A sim_year greater than 2015 corresponds to ssp_rcp scenario data
Expand Down
29 changes: 29 additions & 0 deletions bld/namelist_files/use_cases/2018-PD_transient.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>

<namelist_defaults>

<use_case_desc>Simulate transient land-use, and aerosol deposition changes from 2018 to current day with a mix of historical data, and future scenario data</use_case_desc>

<!-- Have a minimal list of things set here, sim_year, sim_year_range, and ssp_rcp, other things should be dependent on these and
set in a namelist_defaults xml file -->

<sim_year>2018</sim_year>

<sim_year_range>1850-2100</sim_year_range>

<!-- Use future data as needed from the SSP3-7.0 scenario-->
<ssp_rcp>SSP3-7.0</ssp_rcp>

<stream_year_first_ndep use_cn=".true." >2018</stream_year_first_ndep>
<stream_year_last_ndep use_cn=".true." >2022</stream_year_last_ndep>
<model_year_align_ndep use_cn=".true." >2018</model_year_align_ndep>

<stream_year_first_popdens cnfireson=".true." >2018</stream_year_first_popdens>
<stream_year_last_popdens cnfireson=".true." >2022</stream_year_last_popdens>
<model_year_align_popdens cnfireson=".true." >2018</model_year_align_popdens>

<stream_year_first_urbantv >2018</stream_year_first_urbantv>
<stream_year_last_urbantv >2022</stream_year_last_urbantv>
<model_year_align_urbantv >2018</model_year_align_urbantv>

</namelist_defaults>
14 changes: 14 additions & 0 deletions bld/namelist_files/use_cases/2018_control.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>

<namelist_defaults>

<use_case_desc>Conditions to simulate 2018 land-use</use_case_desc>

<sim_year>2018</sim_year>

<sim_year_range>constant</sim_year_range>

<!-- Use future data as needed from the SSP3-7.0 scenario-->
<ssp_rcp>SSP3-7.0</ssp_rcp>

</namelist_defaults>
5 changes: 5 additions & 0 deletions bld/namelist_files/use_cases/README
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Transient cases:

20thC$desc_transient (means nominal 1850-2000 although some datasets are 1850-2005)

or

yyyy-PD_$desc_transient (means nominal year yyyy through present day (PD) (with the year for PD advancing)

Control cases:

yyyy$desc_control
Expand All @@ -30,6 +34,7 @@ Where

yyyy = Simulation year (such as 1850 or 2000).
yyyy-yyyy = Range of simulation years to run over (i.e.. 1850-2000).
yyyy-PD = Range of simulation years to run over until present day (i.e.. 2018-2024).
$ssp_rcp = Shared Socieconomic Pathway (SSP) Representative concentration pathway (RCP) description string
for future scenarios:
SSP#-#.# (for example: SSP5-8.5, SSP1-2.6, SSP4-6.0
Expand Down
2 changes: 1 addition & 1 deletion bld/unit_testers/build-namelist_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ sub cat_and_create_namelistinfile {
#
# Now run the site
#
my $options = "-res CLM_USRDAT -clm_usr_name NEON -no-megan -bgc bgc -sim_year 2000 -infile $namelistfile";
my $options = "-res CLM_USRDAT -clm_usr_name NEON -no-megan -bgc bgc -sim_year 2018 -infile $namelistfile";
eval{ system( "$bldnml -envxml_dir . $options > $tempfile 2>&1 " ); };
is( $@, '', "options: $options" );
$cfiles->checkfilesexist( "$options", $mode );
Expand Down
3 changes: 2 additions & 1 deletion cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,11 @@

<entry id="NEONSITE">
<type>char</type>
<!-- NOTE: Be sure to have a comma at the last site-name - otherwise there will be issues see CTSM github issue #1901 -->
<valid_values>
ABBY,BLAN,CPER,DEJU,GRSM,HEAL,KONA,LENO,NIWO,ONAQ,PUUM,SERC,SRER,TALL,TREE,WOOD,
BARR,BONA,DCFS,DELA,GUAN,JERC,KONZ,MLBS,NOGP,ORNL,RMNP,SJER,STEI,TEAK,UKFS,WREF,
BART,CLBJ,DSNY,HARV,JORN,LAJA,MOAB,OAES,OSBS,SCBI,SOAP,STER,TOOL,UNDE,YELL
BART,CLBJ,DSNY,HARV,JORN,LAJA,MOAB,OAES,OSBS,SCBI,SOAP,STER,TOOL,UNDE,YELL,
</valid_values>
<default_value/>
<group>run_component_ctsm</group>
Expand Down
12 changes: 8 additions & 4 deletions cime_config/usermods_dirs/NEON/BARR/shell_commands
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

./xmlchange NEONSITE=BARR
./xmlchange PTS_LON=203.349781
./xmlchange PTS_LAT=71.281711
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019,DATM_YR_END=2022
./xmlchange STOP_N=39

./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019
# Different default start date and number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange STOP_N=39
fi
3 changes: 3 additions & 0 deletions cime_config/usermods_dirs/NEON/CPER/shell_commands
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
./xmlchange NEONSITE=CPER
./xmlchange PTS_LON=255.25545
./xmlchange PTS_LAT=40.81297
if [[ $compset =~ ^HIST ]]; then
./xmlchange STOP_N=50
fi
9 changes: 7 additions & 2 deletions cime_config/usermods_dirs/NEON/GUAN/shell_commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash

./xmlchange NEONSITE=GUAN
./xmlchange PTS_LON=293.13112
./xmlchange PTS_LAT=17.96882
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019
./xmlchange STOP_N=39
# Different default start date and number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange STOP_N=39
fi
4 changes: 4 additions & 0 deletions cime_config/usermods_dirs/NEON/KONA/shell_commands
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
./xmlchange NEONSITE=KONA
./xmlchange PTS_LON=263.38956
./xmlchange PTS_LAT=39.10828
# Setup to run with prognostic crops for this site
# If you want to explicitly run in SP mode or add other
# options you'll need to add that after this...
./xmlchange CLM_BLDNML_OPTS="--bgc bgc --crop"
8 changes: 6 additions & 2 deletions cime_config/usermods_dirs/NEON/LAJA/shell_commands
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/bin/bash
./xmlchange NEONSITE=LAJA
./xmlchange PTS_LON=292.92392
./xmlchange PTS_LAT=18.02184
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019
./xmlchange STOP_N=39
# Different default start date and number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange STOP_N=39
fi


9 changes: 7 additions & 2 deletions cime_config/usermods_dirs/NEON/LENO/shell_commands
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash

./xmlchange NEONSITE=LENO
./xmlchange PTS_LON=271.83897
./xmlchange PTS_LAT=31.8531
./xmlchange RUN_STARTDATE=2021-01-01
./xmlchange DATM_YR_ALIGN=2021,DATM_YR_START=2021
./xmlchange STOP_N=15
# Different default start date and number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange RUN_STARTDATE=2021-01-01
./xmlchange STOP_N=15
fi

8 changes: 6 additions & 2 deletions cime_config/usermods_dirs/NEON/MLBS/shell_commands
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
./xmlchange NEONSITE=MLBS
./xmlchange PTS_LON=279.47575
./xmlchange PTS_LAT=37.37783
./xmlchange STOP_N=24
./xmlchange DATM_YR_END=2019

# Different default number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange DATM_YR_END=2020
./xmlchange STOP_N=24
fi
12 changes: 7 additions & 5 deletions cime_config/usermods_dirs/NEON/MOAB/shell_commands
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
./xmlchange NEONSITE=MOAB
./xmlchange PTS_LON=250.61118
./xmlchange PTS_LAT=38.25136
./xmlchange RUN_STARTDATE=2018-01-01
./xmlchange DATM_YR_ALIGN=2018,DATM_YR_START=2018,DATM_YR_END=2020
./xmlchange STOP_N=36


./xmlchange DATM_YR_END=2020
# Different default number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange DATM_YR_END=2021
./xmlchange STOP_N=36
fi
12 changes: 7 additions & 5 deletions cime_config/usermods_dirs/NEON/ONAQ/shell_commands
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
./xmlchange NEONSITE=ONAQ
./xmlchange PTS_LON=276.49815
./xmlchange PTS_LAT=35.68839
./xmlchange RUN_STARTDATE=2018-01-01
./xmlchange DATM_YR_ALIGN=2018,DATM_YR_START=2018,DATM_YR_END=2019
./xmlchange STOP_N=24


./xmlchange DATM_YR_END=2019
# Different default number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange DATM_YR_END=2020
./xmlchange STOP_N=24
fi
9 changes: 6 additions & 3 deletions cime_config/usermods_dirs/NEON/SJER/shell_commands
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash
./xmlchange NEONSITE=SJER
./xmlchange PTS_LON=240.267
./xmlchange PTS_LAT=37.107117
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019
./xmlchange STOP_N=39
# Different default start date and number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange STOP_N=39
fi

#./xmlchange RUN_STARTDATE=2018-09-01
4 changes: 4 additions & 0 deletions cime_config/usermods_dirs/NEON/STER/shell_commands
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
./xmlchange NEONSITE=STER
./xmlchange PTS_LON=256.96992
./xmlchange PTS_LAT=40.45984
# Setup to run with prognostic crops for this site
# If you want to explicitly run in SP mode or add other
# # options you'll need to add that after this...
./xmlchange CLM_BLDNML_OPTS="--bgc bgc --crop"
11 changes: 7 additions & 4 deletions cime_config/usermods_dirs/NEON/TEAK/shell_commands
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
./xmlchange NEONSITE=TEAK
./xmlchange PTS_LON=240.99424199999999
./xmlchange PTS_LAT=37.006472
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019
./xmlchange STOP_N=39

./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019
# Different default start date and number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange STOP_N=39
fi
10 changes: 6 additions & 4 deletions cime_config/usermods_dirs/NEON/TOOL/shell_commands
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
./xmlchange NEONSITE=TOOL
./xmlchange PTS_LON=210.629872
./xmlchange PTS_LAT=68.66045
./xmlchange RUN_STARTDATE=2020-01-01
./xmlchange DATM_YR_ALIGN=2020,DATM_YR_START=2020
./xmlchange STOP_N=27


# Different default start date and number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange RUN_STARTDATE=2020-01-01
./xmlchange STOP_N=27
fi
7 changes: 7 additions & 0 deletions cime_config/usermods_dirs/NEON/WREF/shell_commands
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/bash
./xmlchange NEONSITE=WREF
./xmlchange PTS_LON=238.04162
./xmlchange PTS_LAT=45.81637
./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019
# Different default start date and number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange STOP_N=39
fi
11 changes: 7 additions & 4 deletions cime_config/usermods_dirs/NEON/YELL/shell_commands
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash
./xmlchange NEONSITE=YELL
./xmlchange PTS_LON=249.45803999999998
./xmlchange PTS_LAT=44.95597
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019
./xmlchange STOP_N=39
# ./xmlchange RUN_STARTDATE=2018-08-01
./xmlchange DATM_YR_ALIGN=2019,DATM_YR_START=2019
# Different default start date and number of months to run for transient case
if [[ $compset =~ ^HIST ]]; then
./xmlchange RUN_STARTDATE=2019-01-01
./xmlchange STOP_N=39
fi
Loading

0 comments on commit fe0fa29

Please sign in to comment.