metrics.msssBootstrap

Class with special methods for bootstrapping the MSESS

msssBootstrap Module

class metrics.msssBootstrap.MsssBootstrap(output='/tmp/msss/output/', output_plots='/tmp/msss/output/', decadals='1960, 1965, 1970, 1975, 1980, 1985, 1990, 1995, 2000', variable='tas', project1='baseline1', product1='output', institute1='mpi-m', model1='mpi-esm-lr', experiment1='decs4e', ensemblemembers1='*', project2='baseline0', product2='output1', institute2='mpi-m', model2='mpi-esm-lr', experiment2='decadal', ensemblemembers2='*', leadtimes='1, 2-9', observation='HadCrut', observation_ensemble='*', maskMissingValues=True, result_grid=None, cache='/tmp/msss/cache/', baseDir='..', timeFreq='mon', basic_output=True, bootstrap=None, bootstrap2=None, obsRemapped=None, leadtimes_mode='yearly', level=None, lonlatbox=None, fieldmean=False, zonalmean=False, colormap='RedBlu', observation_type='REANALYSIS', reanpath='', months=None)[source]

Class with special method for bootstrapping

_prepareBootstrap(year)[source]

Searches the files for specific year, remaps them, and calculates ensemblemean

:param year :return ensmeanProject1, ensmeanProject2

prepareBootstrap()[source]

Multiprocess approach Uses _prepareBootstrap to prepare the Bootstrap files for input1 and input2

Returns:ensMeanProject1Dict, ensMeanProject2Dict
bootstrapGoddard(outputFolder='./tmp/')[source]

Actual method for selecting files of a bootstrap run. Select input data from bootstrap pool by choice from bootstrap pool together with corresponding obs data –> constraint is to select within a 5 Year range only (because of a trend in the data)

Parameters:outputFolder – temp folder
_calcSignificance(bootstrap_folders, output_folder, plot_folder, file_to_check)[source]

Caluclate the significance for the intput field (file_to_check) The field is also plotted with significance crosses

Parameters:
  • bootstrap_folder – path of bootstraped data
  • output_folder – path
  • plot_folder – path
  • file_to_check – fn
calcSignificance(bootstrap_folders, output_folder, plot_folder)[source]

Multiprocessing of “_calcSignificance”. Start 1 Process for every result file

Parameters:
  • bootstrap_folder – path of bootstraped data
  • output_folder – path
  • plot_folder – path

Table Of Contents

This Page