What’s New

climpred v1.2.1 (2020-01-07)

Depreciated

  • mad no longer a keyword for the median absolute error metric. Users should now use median_absolute_error, which is identical to changes in xskillscore version 0.0.10. (GH#283) Riley X. Brady
  • pacc no longer a keyword for the p value associated with the Pearson product-moment correlation, since it is used by the correlation coefficient. (GH#283) Riley X. Brady
  • msss no longer a keyword for the Murphy’s MSSS, since it is reserved for the standard MSSS. (GH#283) Riley X. Brady

New Features

  • Metrics pearson_r_eff_p_value and spearman_r_eff_p_value account for autocorrelation in computing p values. (GH#283) Riley X. Brady

  • Metric effective_sample_size computes number of independent samples between two time series being correlated. (GH#283) Riley X. Brady

  • Added keywords for metrics: (GH#283) Riley X. Brady

    • 'pval' for pearson_r_p_value
    • ['n_eff', 'eff_n'] for effective_sample_size
    • ['p_pval_eff', 'pvalue_eff', 'pval_eff'] for pearson_r_eff_p_value
    • ['spvalue', 'spval'] for spearman_r_p_value
    • ['s_pval_eff', 'spvalue_eff', 'spval_eff'] for spearman_r_eff_p_value
    • 'nev' for nmse

Bug Fixes

  • climpred now requires xarray version 0.14.1 so that the drop_vars() keyword used in our package does not throw an error. (GH#276) Riley X. Brady
  • Update to xskillscore version 0.0.10 to fix errors in weighted metrics with pairwise NaNs. (GH#283) Riley X. Brady

Internals/Minor Fixes

Documentation

climpred v1.2.0 (2019-12-17)

Depreciated

  • Abbreviation pval depreciated. Use p_pval for pearson_r_p_value instead. (GH#264) Aaron Spring.

New Features

  • Users can now apply arbitrary xarray methods to HindcastEnsemble and PerfectModelEnsemble. (GH#243) Riley X. Brady.

  • Add “getter” methods to HindcastEnsemble and PerfectModelEnsemble to retrieve xarray datasets from the objects. (GH#243) Riley X. Brady.

    >>> hind = climpred.tutorial.load_dataset('CESM-DP-SST')
    >>> ref = climpred.tutorial.load_dataset('ERSST')
    >>> hindcast = climpred.HindcastEnsemble(hind)
    >>> hindcast = hindcast.add_reference(ref, 'ERSST')
    >>> print(hindcast)
    <climpred.HindcastEnsemble>
    Initialized Ensemble:
        SST      (init, lead, member) float64 ...
    ERSST:
        SST      (time) float32 ...
    Uninitialized:
        None
    >>> print(hindcast.get_initialized())
    <xarray.Dataset>
    Dimensions:  (init: 64, lead: 10, member: 10)
    Coordinates:
    * lead     (lead) int32 1 2 3 4 5 6 7 8 9 10
    * member   (member) int32 1 2 3 4 5 6 7 8 9 10
    * init     (init) float32 1954.0 1955.0 1956.0 1957.0 ... 2015.0 2016.0 2017.0
    Data variables:
        SST      (init, lead, member) float64 ...
    >>> print(hindcast.get_reference('ERSST'))
    <xarray.Dataset>
    Dimensions:  (time: 61)
    Coordinates:
    * time     (time) int64 1955 1956 1957 1958 1959 ... 2011 2012 2013 2014 2015
    Data variables:
        SST      (time) float32 ...
    
  • metric_kwargs can be passed to Metric. (GH#264) Aaron Spring.

Bug Fixes

Internals/Minor Fixes

Documentation

climpred v1.1.0 (2019-09-23)

Features

Bug Fixes

  • Correct implementation of probabilistic metrics from xskillscore in compute_perfect_model, bootstrap_perfect_model, compute_hindcast and bootstrap_hindcast, now requires xskillscore>=0.05 (GH#232) Aaron Spring

Internals/Minor Fixes

Documentation

climpred v1.0.1 (2019-07-04)

Bug Fixes

Internals/Minor Fixes

climpred v1.0.0 (2019-07-03)

climpred v1.0.0 represents the first stable release of the package. It includes HindcastEnsemble and PerfectModelEnsemble objects to perform analysis with. It offers a suite of deterministic and probabilistic metrics that are optimized to be run on single time series or grids of data (e.g., lat, lon, and depth). Currently, climpred only supports annual forecasts.

Features

  • Bootstrap prediction skill based on resampling with replacement consistently in ReferenceEnsemble and PerfectModelEnsemble. (GH#128) Aaron Spring
  • Consistent bootstrap function for climpred.stats functions via bootstrap_func wrapper. (GH#167) Aaron Spring
  • many more metrics: _msss_murphy, _less and probabilistic _crps, _crpss (GH#128) Aaron Spring

Bug Fixes

Internals/Minor Fixes

Documentation

  • Documentation built extensively in multiple PRs.

climpred v0.3 (2019-04-27)

climpred v0.3 really represents the entire development phase leading up to the version 1 release. This was done in collaboration between Riley X. Brady, Aaron Spring, and Andrew Huang. Future releases will have less additions.

Features

  • Introduces object-oriented system to climpred, with classes ReferenceEnsemble and PerfectModelEnsemble. (GH#86) Riley X. Brady

  • Expands bootstrapping module for perfect-module configurations. (GH#78, GH#87) Aaron Spring

  • Adds functions for computing Relative Entropy (GH#73) Aaron Spring

  • Sets more intelligible dimension expectations for climpred (GH#98, GH#105) Riley X. Brady and Aaron Spring:

    • init: initialization dates for the prediction ensemble
    • lead: retrospective forecasts from prediction ensemble; returned dimension for prediction calculations
    • time: time dimension for control runs, references, etc.
    • member: ensemble member dimension.
  • Updates open_dataset to display available dataset names when no argument is passed. (GH#123) Riley X. Brady

  • Change ReferenceEnsemble to HindcastEnsemble. (GH#124) Riley X. Brady

  • Add probabilistic metrics to climpred. (GH#128) Aaron Spring

  • Consolidate separate perfect-model and hindcast functions into singular functions (GH#128) Aaron Spring

  • Add option to pass proxy through to open_dataset for firewalled networks. (GH#138) Riley X. Brady

Bug Fixes

Internals/Minor Fixes

climpred v0.2 (2019-01-11)

Name changed to climpred, developed enough for basic decadal prediction tasks on a perfect-model ensemble and reference-based ensemble.

climpred v0.1 (2018-12-20)

Collaboration between Riley Brady and Aaron Spring begins.