コード例 #1
0
import os

from LOO_postproc import LOO_post, killer

# user-specified variables
infile = 'LOO_output_consolidated_corr.csv'
clean_slate = True

# logging information
if os.path.exists(os.path.join(os.getcwd(),'figures')) == False:
    os.mkdir(os.path.join(os.getcwd(),'figures'))
logfile = open('figures/LOO_postprocALLONLY.log','w')
logfile.write('Postprocessing of LOO analysis\n\n\n')

# initialize a class for output
LOO = LOO_post(infile,logFlag = True)

# load the data
LOO.load_data()

# parse the data
LOO.parse_input()

# make misfit plots - one plot with all values
curr_plots = 'figures/consolidated'
if clean_slate:
    killer(curr_plots)
LOO.plot_consolidated_misfit(logfile,subf = curr_plots)

maincutoff = 20
# make individual species-specific misfit plots
コード例 #2
0
import os
from matplotlib.backends.backend_pdf import PdfPages
from LOO_postproc import LOO_post, killer

# user-specified variables
infile = 'LOO_for_plotting_4_2_2012.csv'
clean_slate = True
maincutoff = 30
# logging information
if os.path.exists(os.path.join(os.getcwd(),'figures')) == False:
    os.mkdir(os.path.join(os.getcwd(),'figures'))
logfile = open('figures/LOO_postprocSpC.log','w')
logfile.write('Postprocessing of LOO analysis for species-cut combos\n\n\n')

# initialize a class for output
LOO = LOO_post(infile,logFlag = True)

# load the data
LOO.load_data()

# parse the data
LOO.parse_input()


# make individual species_cut_combo-specific misfit plots
curr_plots = 'figures/species_cut'
if clean_slate:
    killer(curr_plots)
LOO.plot_each_series_misfit(logfile, cutoff = maincutoff,series = 'SpC',subf = curr_plots)

logfile.close()