Skip to content

Commit

Permalink
move summary table header info and column descriptions to separate fi…
Browse files Browse the repository at this point in the history
…le to allow csv file rendering in github
  • Loading branch information
tobeycarman committed Dec 15, 2020
1 parent b81dc27 commit cc94526
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 34 deletions.
25 changes: 25 additions & 0 deletions README_prior_posterior_summary_tables.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# README for prior and posterior summary tables

PEcAn's method for keeping the prior and posteriors for the runs is that
each run has a small `.Rdata` file for priors and posteriors used for that run.
We assembled some scripts that can merge all these disparate files into
one larger csv file so that we could browse the data in one place without needing
to use `R`.

The scripts are as follows:
1. `collate_priors_posteriors.sh` - collects all the .Rdata files converst so csv, and merges to single file
2. `fix_priors_posteriors_table.py` - prettify parameter names, add units column
3. `fix_priors_posteriors_table2.R` - adds median and confidence interval columns

## Column Descriptions

* pftname = name of the community type and PFT (4 = shrub tundra, 5 = tussock tundra, 6 = wet sedge tundra , 7 = heath tundra)
* vname = variable (parameter) name
* units = the units of measurement
* distname = statistical distribution assigend to the parameter range of values, using R distributions
* parama = first parameter of the distribution
* paramb = second parameter of the distribution
* n = the number of samples in the Bety DB for the parameter/variable
* cimin = lower confidence interval
* cimax = upper confidence interval
* median = median value of the parameter
File renamed without changes.
17 changes: 0 additions & 17 deletions posteriors_table.csv
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
# Posteriors summary table. Generated 12/10/2020 using scripts
# that collate data from the run directories, and then
# adjusted using scripts that add the confidence interval,
# median, and units columns.
#
# Column descriptions:
# pftname = name of the community type (4 = shrub tundra, 5= tussock tundra, 6 = wet sedge tundra , 7 = heath tundra)
# vname = variable name
# units = the units of measurement
# distname = statistical distribution assigend to the parameter range of values, using R distributions
# parama = first parameter of the distribution
# paramb = second parameter of the distribution
# n = the number of samples in the Bety DB for the parameter
# cimin = lower confidence interval
# cimax = upper confidence interval
# median = median value of the parameter
#
"pft","vname","units","distname","parama","paramb","n","cimin","cimax","median"
"CMT04-Salix","Extinction coefficient","unitless","weibull",4,0.4,NA,0.0711400720617792,0.554854357511702,0.365298460704564
"CMT04-Salix","SW_albedo; Shortwave albedo","W m-2","unif",0.01,0.3,NA,0.01029,0.292756966966967,0.155144854854855
Expand Down
17 changes: 0 additions & 17 deletions priors_table.csv
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
# Priors summary table. Generated 12/10/2020 using scripts
# that collate data from the run directories, and then
# adjusted using scripts that add the confidence interval,
# median, and units columns.
#
# Column descriptions:
# pftname = name of the community type (4 = shrub tundra, 5= tussock tundra, 6 = wet sedge tundra , 7 = heath tundra)
# vname = variable name
# units = the units of measurement
# distname = statistical distribution assigend to the parameter range of values, using R distributions
# parama = first parameter of the distribution
# paramb = second parameter of the distribution
# n = the number of samples in the Bety DB for the parameter
# cimin = lower confidence interval
# cimax = upper confidence interval
# median = median value of the parameter
#
"pft","vname","units","distname","parama","paramb","n","cimin","cimax","median"
"CMT04-Feather","Extinction coefficient","unitless","gamma",5,10,NA,0.0739371731917833,1.02499118557003,0.46786487062656
"CMT04-Feather","SW_albedo; Shortwave albedo","W m-2","unif",0.01,0.3,NA,0.01029,0.292756966966967,0.155144854854855
Expand Down

0 comments on commit cc94526

Please sign in to comment.