Skip to content

Commit

Permalink
Merge pull request #53 from wwieder/Testbed_CN
Browse files Browse the repository at this point in the history
Bring in CN code to main branch
  • Loading branch information
wwieder authored Feb 10, 2023
2 parents c1a72bf + 53ba3b8 commit a894305
Show file tree
Hide file tree
Showing 89 changed files with 120,307 additions and 1,014 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# from compiling the model
*.o
*.mod

# compiled code
/SOURCE_CODE/casaclm_mimics_corpse_test
/SOURCE_CODE/casaclm_mimics-cn_corpse

# model output
*.nc
2 changes: 2 additions & 0 deletions GRID_CN/CASACNP_mod5_GSWP3_JAMES/co2delta_control.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CO2 ppm, dtSoil, dtAir, year to start, NPP_mult
360.0 0.0 0.0 10000 1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
4263 !! mp, number of points to simulate (formerly 3864)
18 !! mvt, number of vegetation types, =13 for CASA, =18 for IGBP+tundra
1 !! mloop, number of times to cycle through met file
1 !! mdaily, =1 output daily and annual fluxes, =0 output annual fluxes only
2 !! initcasa, =0 spin; =1 read restart file; =2 transient (mloop=1); 3= repeated transient (mloop>1)
1901 2014 !! Transient years, contents of this line are ignored if initcasa < 2
1 !! isomModel, SOM model: 1=CASACNP, 2=MIMICS, 3=CORPSE
2 !! icycle, =1 for C only, =2 for C+N; =3 for C+N+P
../gridinfo_igbpz_CLM5_GSWP3.csv !! 9) Input file with grid info
../pftlookup_igbp_updated4_exud0.csv !! 10) Input file with CASA PFT parameters
../modis_phenology_wtundra.txt !! 11) Input file with CASA phenonlogy
../gridinfo_soil_CLM5_GSWP3.csv !! 12) Input file with soil properties for each grid cell
../INPUT_GSWP3_CLM5dev110_hist/met_1901_1901.nc !! 13) Input File for met data, for transient one file per yea
./cnppool_end_spin_1901-1920_x500b.csv !! 14) CASA initial conditions (initcasa > 0 only)
./cnppool_end_1901_2014_hist.csv !! 15) CASA end-of-simulation output file (pools)
./cnpflux_end_1901_2014_hist.csv !! 16) CASA end-of-simulation output file (fluxes)
./OUTPUT_CN/HIST/casaclm_pool_flux_yyyy.nc !! 17) CASA annual/daily netcdf output file
./pftlookup_LIDET-MIM-REV_CN_desorb2xKO4_micCN_FI30.csv !! 18) MIMICS input parameter file
./mimicspool_end_spin_1901-1920_x500b.csv !! 19) MIMICS initial conditions (initcasa > 0 only)
./mimicspool_end_1901_2014_hist.csv !! 20) MIMICS end-of-simulation output file (pools)
./OUTPUT_CN/HIST/mimics_pool_flux_yyyy.nc !! 21) MIMICS annual/daily netcdf output file
./corpsepool_init_litopt_1.csv !! 22) CORPSE initial conditions (initcasa > 0 only)
./corpsepool_end_1901_1920_spin_x499a.csv !! 23) CORPSE end-of-simulation output file (pools)
./corpse_params_12.06.2017.nml !! 24) CORPSE input parameter file
../OUTPUT_GRID_CRU_NCEP/CORPSE_SPIN_a/corpse_pool_flux_yyyy.nc !! 25) CORPSE annual/daily netcdf output file
./co2delta_control.txt !! 26) Input file for perturbations (Tair, Tsoil, NPP)
-1 !! Save daily output for this point. Set to -1 if no daily point file is to be generated.
/project/bgc01/melannie/PointSimulations/ !! 27) Location to write point files (if applicable)
1 !! 29) netCDF output interval (years)


!---------------------------------------------------------------------------------------------------------
!NOTES: text below line 27 is not read by casaclm_mimics_corpse
!Any text following a ' ' or '!' on Lines 9-27 is considered a comment and is not part of the filename
Line 9: Input File. Location of gridinfo file that assigns PFT and area to
each grid cell. Includes annual N fixation. N deposition amount in this file is ignored
(N deposition is read from met.nc files now).
Internally named filename_cnppoint.
Line 10: Input File. Contains CASACNP parameters for each PFT.
Internally named filename_cnpbiome.
Line 11: Input File. Describes phenological stages for each grid cell.
Internally named filename_phen.
Line 12: Input File. Contains soil properties for each grid cell.
Internally named filename_soilprop.
Line 13: Input File. The name of the met file that drives CASACNP.
For transient runs (initcasa=2), the year in the filename is
replaced by the transient year so N deposition can change over time.
Internally named filename_cnpmet.
Line 14: Input (startup) file. Contains initial values for the CASACNP pools
when initcasa > 0.
Internally named filename_cnpipool.
Line 15: Output file. End-of-simulation pool values for CASACNP.
Can be used to initialize subsequent runs.
Internally named filename_cnpepool.
Line 16: Output file. Average annual CASACNP fluxes during the last "myear"
years of the simulation, where myear is the number of years in the
met.nc file. Can be used to initialize subsequent runs.
Internally named filename_cnpflux.
Line 17: Output file. NetCDF file that contains the average daily CASACNP pools
during the last "myear" years plus average annual CASACNP fluxes during
the last "myear" years of the simulation, where myear is the number of
years in the met.nc file. Each year of the transient run will have an
output file with 1901 replaced by the transient year, 1901 ... 2100 in
this case. Note: for transient simulations, myear = 1.
Internally named filename_ncOut.
Line 18: Input File. Contains MIMICS parameters, some are PFT-specific.
Internally named filename_mimicsbiome.
Line 19: Input (startup) file. Initial values for MIMICS pools when initcasa > 0.
Internally named filename_mimicsipool.
Line 20: Output file. End-of-simulation pool values for MIMICS.
Can be used to initialize subsequent runs.
Internally named filename_mimicsepool.
Line 21: Output file. NetCDF file that contains the average daily MIMICS pools
during the last "myear" years plus average annual MIMICS fluxes during
the last "myear" years of the simulation, where myear is the number of
years in the met.nc file. Each year of the transient run will have an
output file with 1901 replaced by the transient year, 1901 ... 2100 in
this case. Note: for transient simulations, myear = 1.
Internally named filename_ncOut_mimics.
Line 22: Input File. Initial CORPSE pool values. Contains initial values for the CORPSE pools
when initcasa > 0. When initcasa=0 use initial_C values (LABILE,RECALCITRANT,PROTECTED)
in corpse_param.nml (filename_corpsenamelist) file.
Internally named filename_corpseipool.
Line 23: Output file. End-of-simulation pool values for CASACNP.
Internally named filename_corpseepool.
Line 24: Input file. Namelist parameters for CORPSE.
Internally named filename_corpsenamelist.
Line 25: Output file. NetCDF file that contains end-of-simulation CORPSE pools and fluxes.
Internally named filename_ncOut_corpse.
Line 26: Input file. Controls changes in air/soil temperature and NPP during the simulation (formerly co2delta.tx)
Line 27: Save daily output for this point. Set to -1 if no daily point file is to be generated.
TEST_daily_casa_pt.csv and (TEST_daily_mimics_pt.csv or TEST_daily_corpse_pt.csv)
Line 28: Directory for point file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
4263 !! mp, number of points to simulate (formerly 3864)
18 !! mvt, number of vegetation types, =13 for CASA, =18 for IGBP+tundra
1 !! mloop, number of times to cycle through met file
1 !! mdaily, =1 output daily and annual fluxes, =0 output annual fluxes only
2 !! initcasa, =0 spin; =1 read restart file; =2 transient (mloop=1); 3= repeated transient (mloop>1)
2015 2100 !! Transient years, contents of this line are ignored if initcasa < 2
1 !! isomModel, SOM model: 1=CASACNP, 2=MIMICS, 3=CORPSE
2 !! icycle, =1 for C only, =2 for C+N; =3 for C+N+P
../gridinfo_igbpz_CLM5_GSWP3.csv !! 9) Input file with grid info
../pftlookup_igbp_updated4_exud0.csv !! 10) Input file with CASA PFT parameters
../modis_phenology_wtundra.txt !! 11) Input file with CASA phenonlogy
../gridinfo_soil_CLM5_GSWP3.csv !! 12) Input file with soil properties for each grid cell
../INPUT_MET_clm50_dev110_spSSP370/met_2015_2015.nc !! 13) Input File for met data, for transient one file per yea
./cnppool_end_1901_2014_hist.csv !! 14) CASA initial conditions (initcasa > 0 only)
./cnppool_end_2015_2100_ssp370.csv !! 15) CASA end-of-simulation output file (pools)
./cnpflux_end_2015_2100_ssp370.csv !! 16) CASA end-of-simulation output file (fluxes)
./OUTPUT_CN/SSP370/casaclm_pool_flux_yyyy.nc !! 17) CASA annual/daily netcdf output file
./pftlookup_LIDET-MIM-REV_CN_desorb2xKO4_micCN_FI30.csv !! 18) MIMICS input parameter file
./mimicspool_end_1901_2014_hist.csv !! 19) MIMICS initial conditions (initcasa > 0 only)
./mimicspool_end_2015_2100_ssp370.csv !! 20) MIMICS end-of-simulation output file (pools)
./OUTPUT_CN/SSP370/mimics_pool_flux_yyyy.nc !! 21) MIMICS annual/daily netcdf output file
./corpsepool_init_litopt_1.csv !! 22) CORPSE initial conditions (initcasa > 0 only)
./corpsepool_end_1901_1920_spin_x499a.csv !! 23) CORPSE end-of-simulation output file (pools)
./corpse_params_12.06.2017.nml !! 24) CORPSE input parameter file
../OUTPUT_GRID_CRU_NCEP/CORPSE_SPIN_a/corpse_pool_flux_yyyy.nc !! 25) CORPSE annual/daily netcdf output file
./co2delta_control.txt !! 26) Input file for perturbations (Tair, Tsoil, NPP)
-1 !! Save daily output for this point. Set to -1 if no daily point file is to be generated.
/project/bgc01/melannie/PointSimulations/ !! 27) Location to write point files (if applicable)
1 !! 29) netCDF output interval (years)


!---------------------------------------------------------------------------------------------------------
!NOTES: text below line 27 is not read by casaclm_mimics_corpse
!Any text following a ' ' or '!' on Lines 9-27 is considered a comment and is not part of the filename
Line 9: Input File. Location of gridinfo file that assigns PFT and area to
each grid cell. Includes annual N fixation. N deposition amount in this file is ignored
(N deposition is read from met.nc files now).
Internally named filename_cnppoint.
Line 10: Input File. Contains CASACNP parameters for each PFT.
Internally named filename_cnpbiome.
Line 11: Input File. Describes phenological stages for each grid cell.
Internally named filename_phen.
Line 12: Input File. Contains soil properties for each grid cell.
Internally named filename_soilprop.
Line 13: Input File. The name of the met file that drives CASACNP.
For transient runs (initcasa=2), the year in the filename is
replaced by the transient year so N deposition can change over time.
Internally named filename_cnpmet.
Line 14: Input (startup) file. Contains initial values for the CASACNP pools
when initcasa > 0.
Internally named filename_cnpipool.
Line 15: Output file. End-of-simulation pool values for CASACNP.
Can be used to initialize subsequent runs.
Internally named filename_cnpepool.
Line 16: Output file. Average annual CASACNP fluxes during the last "myear"
years of the simulation, where myear is the number of years in the
met.nc file. Can be used to initialize subsequent runs.
Internally named filename_cnpflux.
Line 17: Output file. NetCDF file that contains the average daily CASACNP pools
during the last "myear" years plus average annual CASACNP fluxes during
the last "myear" years of the simulation, where myear is the number of
years in the met.nc file. Each year of the transient run will have an
output file with 1901 replaced by the transient year, 1901 ... 2100 in
this case. Note: for transient simulations, myear = 1.
Internally named filename_ncOut.
Line 18: Input File. Contains MIMICS parameters, some are PFT-specific.
Internally named filename_mimicsbiome.
Line 19: Input (startup) file. Initial values for MIMICS pools when initcasa > 0.
Internally named filename_mimicsipool.
Line 20: Output file. End-of-simulation pool values for MIMICS.
Can be used to initialize subsequent runs.
Internally named filename_mimicsepool.
Line 21: Output file. NetCDF file that contains the average daily MIMICS pools
during the last "myear" years plus average annual MIMICS fluxes during
the last "myear" years of the simulation, where myear is the number of
years in the met.nc file. Each year of the transient run will have an
output file with 1901 replaced by the transient year, 1901 ... 2100 in
this case. Note: for transient simulations, myear = 1.
Internally named filename_ncOut_mimics.
Line 22: Input File. Initial CORPSE pool values. Contains initial values for the CORPSE pools
when initcasa > 0. When initcasa=0 use initial_C values (LABILE,RECALCITRANT,PROTECTED)
in corpse_param.nml (filename_corpsenamelist) file.
Internally named filename_corpseipool.
Line 23: Output file. End-of-simulation pool values for CASACNP.
Internally named filename_corpseepool.
Line 24: Input file. Namelist parameters for CORPSE.
Internally named filename_corpsenamelist.
Line 25: Output file. NetCDF file that contains end-of-simulation CORPSE pools and fluxes.
Internally named filename_ncOut_corpse.
Line 26: Input file. Controls changes in air/soil temperature and NPP during the simulation (formerly co2delta.tx)
Line 27: Save daily output for this point. Set to -1 if no daily point file is to be generated.
TEST_daily_casa_pt.csv and (TEST_daily_mimics_pt.csv or TEST_daily_corpse_pt.csv)
Line 28: Directory for point file.
Loading

0 comments on commit a894305

Please sign in to comment.