FindFiles

This packages is a wrapper class around the solr_search module of the evaluation system.

author:Sebastian Illing
contact:sebastian.illing@met.fu-berlin.de

findFiles Module

class metrics.findFiles.FindFiles(tmpDir='/', observation='', level=None, output='/')[source]

Wrapper class to use solr_search with “python friendly” output –> lists or dicts

getFiles(year, fileType, model, variable, time_frequency='mon', product='*', ensemblemembers='*', institute='*', exp_prefix='d*', maxleadtime=10, minLeadtime=1)[source]

Method to get model files with solr_search.

Parameters:
  • year – decadal starting year
  • fileType – baseline1, cmip5, historical or...
  • model – model name i.e. MPI-ESM-LR
  • variable – CMOR variable
  • time_frequency – monthly, yearly, daily and so on
Returns:

list with all ensemblemembers members found

getReanalysis(year, fileType, experiment, variable, filePath='', time_frequency='mon', maxLeadtime=10, observation_ensemble='*', minLeadtime=1)[source]

Wrapper method to find reanalysis file with solr_search.

Parameters:
  • year – startyear
  • fileType – reanalysis or observation
  • experiment – i.e. NCEP, HadCrut or MERRA
  • variable – CMOR Variable
  • time_frequency – monthly, yearly, daily and so on
Returns:

“decadal” file with observations

getObsFiles(variable, year, maxLeadtime=10, minLeadtime=1)[source]

Get the observation files from an specified folder

Parameters:
  • variable
  • year – start year of decadal

:return tmp file with maxLeadtime years of observation

Table Of Contents

Previous topic

metrics.metricAbstract

Next topic

metrics.filehandler

This Page