analysis.amwg_table module

scripts.analysis.amwg_table.amwg_table(adf)[source]

Main function goes through series of steps: - load the variable data - Determine whether there are spatial dims; if yes, do global average (TODO: regional option) - Apply annual average (TODO: add seasonal here) - calculates the statistics

  • mean

  • sample size

  • standard deviation

  • standard error of the mean

  • 5/95% confidence interval of the mean

  • linear trend

  • p-value of linear trend

  • puts statistics into a CSV file

  • generates simple HTML that can display the data

Description of needed inputs from ADF:

case_names -> Name(s) of CAM case provided by “cam_case_name” input_ts_locs -> Location(s) of CAM time series files provided by “cam_ts_loc” output_loc -> Location to write AMWG table files to, provided by “cam_diag_plot_loc” var_list -> List of CAM output variables provided by “diag_var_list” var_defaults -> Dict that has keys that are variable names and values that are plotting preferences/defaults.

and if doing a CAM baseline comparison:

baseline_name -> Name of CAM baseline case provided by “cam_case_name” input_ts_baseline -> Location of CAM baseline time series files provied by “cam_ts_loc”