earthdiagnostics.statistics

earthdiagnostics.statistics.climatologicalpercentile

Calculates the climatological percentiles for the given leadtime

class earthdiagnostics.statistics.climatologicalpercentile.ClimatologicalPercentile(data_manager, domain, variable, start_year, end_year, forecast_month, experiment_config)[source]

Bases: earthdiagnostics.diagnostic.Diagnostic

Calculates the climatological percentiles for the given leadtime

Parameters:
alias = 'climpercent'

Diagnostic alias for the configuration file

compute()[source]

Run the diagnostic

declare_data_generated()[source]

Declare data to be generated by the diagnostic

classmethod generate_jobs(diags, options)[source]

Create a job for each chunk to compute the diagnostic

Parameters:
  • diags (Diags) – Diagnostics manager class
  • options (list[str]) – domain, variable, percentil number, maximum depth (level)
Returns:

request_data()[source]

Request data required by the diagnostic

requested_startdates()[source]

Required startdates to compute the percentile

Returns:
Return type:list of str

earthdiagnostics.statistics.monthlypercentile

Calculates the montlhy percentiles

class earthdiagnostics.statistics.monthlypercentile.MonthlyPercentile(data_manager, startdate, member, chunk, domain, variable, percentiles)[source]

Bases: earthdiagnostics.diagnostic.Diagnostic

Calculates the montlhy percentiles

Parameters:
  • data_manager (DataManager) – data management object
  • startdate (str) – startdate
  • member (int) – member number
  • chunk (int) – chunk’s number
  • variable (str) – variable to average
alias = 'monpercent'

Diagnostic alias for the configuration file

compute()[source]

Run the diagnostic

declare_data_generated()[source]

Declare data to be generated by the diagnostic

classmethod generate_jobs(diags, options)[source]

Create a job for each chunk to compute the diagnostic

Parameters:
  • diags (Diags) – Diagnostics manager class
  • options (list[str]) – domain, variable, percentil number, maximum depth (level)
Returns:

percentile(percentile)[source]

Variable name for the given percentile

Parameters:percentile (int) –
Returns:
Return type:str
request_data()[source]

Request data required by the diagnostic

variable_max

Variable name for the maximum

Returns:
Return type:str
variable_min

Variable name for the minimum

Returns:
Return type:str