Executive Summary
A new Applied Ocean Research paper presents metocean-stats v1.2, an MIT-licensed Python framework covering extreme value analysis, environmental contours, current profiles, weather windows and dataset verification. It is not a standard, but it gives clients and verifiers a way to rerun the statistics behind a design basis rather than accept tabulated values. A rerun only proves that the calculation can be repeated. It does not prove the calculation is right, and defaults, dependency versions and input harmonisation remain the analyst's responsibility. We set out how to specify, rerun and stress-test an open metocean workflow so it can sit inside a design basis or a marine operations assessment.
On this page 11 sections
- What metocean-stats v1.2 puts on the table
- Reading the analysis chain step by step
- Where it sits against the design and operations standards
- Gaps and gotchas in an open metocean chain
- 1. Reproducible is not the same as correct
- 2. Defaults are design decisions
- 3. Version and dependency drift
- 4. Input harmonisation happens before the tool
- 5. Hindcast bias passes through untouched
- 6. The licence transfers no responsibility
- What to do before relying on it in a design basis
What metocean-stats v1.2 puts on the table
The November 2026 issue of Applied Ocean Research (Volume 176, article 105257, DOI 10.1016/j.apor.2026.105257) carries a paper titled “Metocean-stats v1.2: An open-source framework for reproducible and actionable metocean data analysis”. The authors are Konstantinos Christakos (lead author), Clio Michel, Erik Furevik, Sigrid Christine Pedersen, Jan-Victor Björkqvist, Birgitte R. Furevik and Øyvind Breivik.
The framework is a Python package for statistical analysis and visualisation of metocean time series at a single location. It handles wind, waves, ocean currents, tide levels, air and water temperature, sea ice and related variables. It has been developed in the open since 2023 and is published at github.com/MET-OM/metocean-stats under the MIT licence. The workflow runs on pandas DataFrames.
Most of the heavy statistics are handed off to established libraries:
- pyextremes (Bocharov, 2022) selects the extremes and gives empirical return levels for univariate analysis.
- scipy.stats fits the parametric distributions: GP, GEV, Gumbel, Exponential and Weibull.
- virocon (Haselsteiner et al., 2019, 2022) supplies the multivariate dependence models. The IFORM and ISORM contour routines in the package are local copies of virocon’s, slightly modified, as the source file itself states.
The v1.2.0 source also carries routines of its own, among them a three-parameter Weibull method-of-moments fit (stats/aux_funcs.py) and the LoNoWe Hs–Tp joint model and contour (CMA/predefined.py).
The abstract describes a framework that unifies statistical characterisation, extreme value analysis, spectral analysis, weather-window assessment and dataset verification in one reproducible Python workflow, demonstrated on long-term hindcast and reanalysis datasets for the Norwegian Sea. The package also computes CCA current profiles and joint wave-parameter models with environmental contours.
In the package, a weather window is a run of consecutive time steps in which the operational limits are met, and waiting on weather (WoW) is the time to the next such window. The monthly weather-window functions accept up to three limiting variables, each with its own threshold, and report the statistics month by month. The authors position the package around the analyses commonly needed for offshore design studies and operability assessments. They present it as a way to improve reproducibility and transparency where analyses are otherwise run from ad hoc scripts, and to narrow the gap between new methods in metocean statistics and their routine use in engineering.
Metocean-stats is not a standard and does not claim to be one. We review it here as a standards question because a design basis is only as auditable as the calculation chain behind it. Open libraries for parts of that chain, pyextremes and virocon among them, already existed. Metocean design bases are often delivered from proprietary or in-house tools that a verifier cannot rerun. A framework that wraps the whole site-assessment sequence in one open package makes that harder to justify.
Reading the analysis chain step by step
The paper describes the usual sequence of a site assessment:
- seasonal statistics capture variability
- trend diagnostics test for non-stationarity
- extreme value analysis gives design conditions
- joint distributions and contours handle multivariate dependence
- weather-window statistics address operational feasibility
At each step, the parameters govern the answer more than the software does. A reviewer has to read the outputs with those parameters in view.
Seasonal and directional statistics. Monthly and sectoral percentiles depend on record length, sampling interval and sector definition. A 30° sector scheme and a 45° scheme give different directional maxima from the same data. Sea states are strongly autocorrelated over storm timescales. Monthly statistics from a few decades of hindcast therefore rest on far fewer independent storm events than the hourly sample count suggests.
Trend estimation. A trend diagnostic tests the stationarity on which the rest of the extreme value chain depends. A significant trend in a hindcast can have three quite different causes:
- real climate variability
- changes in the assimilated observing system
- a change of model version partway through the record
The statistic alone cannot tell these apart, so the analyst has to check the dataset’s production history.
Extreme value analysis. Return levels are most sensitive to the analyst’s choices:
- block maxima or peaks over threshold
- threshold level and declustering window
- distribution family (GEV, GP, Weibull variants)
- fitting method
- how confidence intervals are built
At return periods of 100 years and beyond, these choices often move the answer by more than the sampling uncertainty the fit reports. Directional extremes add a consistency check. DNV-RP-C205, a recommended practice that we bring in here as the reference point, advises that the directional exceedance probabilities should combine to reproduce the omnidirectional value. Where they do not, the sector values carry hidden conservatism or, worse, hidden non-conservatism.
Joint models and environmental contours. Contours depend first on the marginal and conditional models, typically a Weibull-type marginal for Hs with a conditional distribution for Tp. They also depend on the contour method: IFORM, ISORM, direct sampling or highest-density. A contour defines a set of sea states and says nothing directly about structural response. Using it for design therefore needs one of two adjustments: a short-term response percentile above the median, or an inflated return period that accounts for short-term variability. That step sits outside the contour calculation and is easily omitted.
CCA current profiles. The package computes and plots CCA current profiles for a chosen percentile or return period. Teams should take the method’s definition and implementation from the package documentation before relying on it. For riser, mooring and jacket work, the shape of the profile matters as much as the surface speed. A reviewer should confirm which depth levels fed the analysis and how the profile is associated with the governing return period.
Weather windows and waiting on weather. Both window and WoW statistics depend on four settings: the time step, the definition of window start, the treatment of gaps, and the way the limiting criteria are combined. Because WoW is the time between windows, any change in how a window is defined shifts the waiting time directly. With up to three conditions, an operation can be limited jointly by, for example, Hs, wind speed and current. That is closer to real operational limits than a single Hs threshold.
Verification diagnostics. Comparison of the hindcast against measurements decides whether any of the above deserves trust. We would run it first, because every later step inherits whatever bias it reveals.
Where it sits against the design and operations standards
None of the governing documents prescribes software. ISO 19901-1, DNV-RP-C205, NORSOK N-003 and, for wind, IEC 61400-3-1 set out three things:
- the metocean parameters that are needed
- the statistical methods considered acceptable
- the documentation that should support them
They leave the implementation to the analyst. In practice the metocean design basis arrives as tables of return values, contour plots and persistence curves. The reviewer gets a report, and the calculation behind it stays with the analyst.
An open workflow changes what the client and the verifier can ask for. If the input dataset, the code version and the analysis script are delivered, a third party can regenerate every table. Verification then becomes a repeat calculation, with the plausibility review still carried out on top. This matters most for long-lived assets. A life extension decades later has to reconstruct the original basis and often cannot.
For marine operations, our yardstick is DNV-ST-N001. It separates two categories:
- Weather-restricted operations are planned against a forecast. In current DNV wording they normally have a planned operation time (TPOP) under 72 hours and a reference period including contingency (TR) under 96 hours. Older DNV rules and some other guidelines applied the 72-hour limit to the reference period instead, so it is worth checking which convention a contractor has used.
- Weather-unrestricted operations are designed to seasonal or annual extremes.
The two categories need different outputs from a metocean tool:
- Weather-unrestricted operations need seasonal extreme value statistics for the period of exposure. If seasonal reduction is to be taken, that calls for a properly fitted monthly or seasonal EVA; an ad hoc reduction of the annual value is not adequate, and otherwise the all-year value applies.
- Weather-restricted operations use window and WoW statistics for planning and scheduling risk. The alpha factor reduces the operational limit (OPLIM) to the forecast-based criterion (OPWF), and that reduction is what accounts for forecast uncertainty.
Hindcast window statistics describe the persistence of the climate and contain no forecast error. WoW statistics computed against OPLIM therefore understate the time spent waiting on weather and overstate the workable time actually available on site. We would compute windows and WoW against OPWF, or at least state explicitly which limit was used. The window length required should be the reference period including contingency. The bare operation duration is too short.
The same logic carries over to design work, where the question is which return period and which conditional parameters the structural team needs. A metocean tool can produce a 100-year Hs and an associated Tp range in minutes. The software does not decide whether that combination governs a given response. That remains an engineering judgement.
Gaps and gotchas in an open metocean chain
An open tool brings failure modes of its own. Many of them are organisational rather than mathematical.
1. Reproducible is not the same as correct
A script that reruns to the last decimal reproduces its errors as faithfully as its correct results. Reproducibility makes an audit possible; it does not replace the audit.
2. Defaults are design decisions
An analyst who accepts a package’s default arguments for threshold, distribution, declustering, sector width or fitting method has made design decisions without recording them. Defaults change between releases, so the audit trail has to capture every argument.
3. Version and dependency drift
The paper describes v1.2.0, released on 8 April 2026; v1.3.0 followed on 3 November 2026, before this review. Every release depends on pyextremes, scipy, virocon and the scientific Python stack beneath them. An update to any layer can change an optimiser’s convergence, a default or a numerical tolerance. Two runs of “the same” analysis a year apart can then disagree in the reported return levels. Without a pinned environment, the reproducibility claim holds only on the day of the run.
4. Input harmonisation happens before the tool
Users often need to combine atmospheric, wave and ocean products that differ in spatial resolution, time coverage, variable naming and grid representation. Harmonisation is where many real errors live. Typical examples:
- Direction convention. Waves and wind are conventionally reported as “coming from” and currents as “going to”.
- Wave height definitions. Spectral Hm0 is often labelled interchangeably with H1/3.
- Time base. Datasets may be in UTC or local time.
- Sampling interval. Hourly and three-hourly records are sometimes merged without resampling.
A single-location framework also inherits whatever grid-point selection or interpolation was done upstream. For sites near steep bathymetry or coastlines, the choice of grid point can matter more than the statistical method.
5. Hindcast bias passes through untouched
Verification diagnostics, in any tool, show bias and scatter. They do not correct them. Whether to apply a correction, and how, remains the analyst’s decision. A common case is underestimated storm peaks from a coarse wind forcing. Corrections such as quantile mapping act most strongly on the tail, which is exactly where design values come from. We make the case for doing this work up front in our piece on validating hindcast models before committing to a site campaign. The same discipline applies to water levels, covered in what metocean leads must validate for extreme sea level.
6. The licence transfers no responsibility
The MIT licence disclaims warranty. Responsibility for the numbers in a design basis stays with the engineer who signs it.
What to do before relying on it in a design basis
These steps apply whether a team adopts metocean-stats, an in-house code or a proprietary package. In our view, the evidence package around the tool counts for more than the choice of tool.
-
Specify a reproducibility deliverable in metocean scopes of work. Require four items:
- the input dataset identifier and version, with a SHA-256 checksum of the extracted time series
- the analysis scripts or notebooks
- the tool version tag or commit hash
- an environment lock file listing exact versions of every dependency
Reject any design basis that cannot be regenerated from these items.
-
Run an independent rerun as part of verification. The verifier rebuilds the environment on a clean machine from the lock file and regenerates the return-value, window and WoW tables. The results should agree with the reported values within a stated numerical tolerance, normally identical at the precision reported. Investigate any difference before the basis is approved.
-
Mandate an EVA sensitivity matrix. For each governing parameter, fit:
- both annual maxima and peaks over threshold
- at least two distribution families
- a minimum of three thresholds
Report the spread of the 50- and 100-year values. If the spread across methods exceeds the confidence interval of the selected fit, the method choice dominates the uncertainty. The report then has to justify the selection explicitly.
-
Check directional consistency. Confirm that the combined directional exceedance probabilities reproduce the omnidirectional return level, following the guidance in DNV-RP-C205. Document any sector scaling.
-
State the contour method and the response step. Report whether contours use IFORM, ISORM or another method, and run a second method as a cross-check. State how short-term variability is handled: a response percentile above the median, or an inflated return period.
-
Compute weather windows and WoW against OPWF, not OPLIM. Apply the DNV-ST-N001 alpha factor for the planned operation period (TPOP), and require windows at least as long as the reference period including contingency (TR). Record the time step and gap treatment. Hand-count the windows and waiting periods in one month to confirm that the tool’s definitions match the planning question.
-
Gate the chain on verification. No extreme, window or WoW statistics should be accepted until the hindcast-to-measurement comparison is in. It should report bias, RMSE and scatter index, with a quantile-quantile plot that extends above the 99th percentile. Record any bias correction, its method and its effect on the 100-year values.
-
Register the tool in the QMS. Enter the package and version in the engineering software register. Verify each method used against at least one independent calculation or published benchmark. Assign an owner to review release notes before any version change on a live project.
-
Write the input conventions into the analysis header. Each script should open by declaring:
- units
- time zone
- direction convention for each variable
- wave height definition
- sampling interval
The reviewer checks these against the source dataset documentation before reading any result.
Adopting an open framework does not by itself make a metocean design basis more reliable, but it does make every number checkable. Clients who write that into their scopes of work, and verifiers who use it, will catch errors that tabulated reports can conceal.
Based on: Metocean-stats v1.2: An open-source framework for reproducible and actionable metocean data analysis
Published by
Ocean & Climate Observatory
Tides, Currents, Waves & Weather Forecasting
An observatory group covering metocean data analysis, hindcast modelling, oceanographic survey planning, and environmental risk assessment for marine operations.
Read next
Extreme sea level for offshore design: what metocean leads must validate
A senior engineering read on extreme sea level estimation for offshore design – datum integrity, extreme value method choice, non-stationarity and the air-gap consequence.
Deep-sea mining EIAs: ADCP deployment reality vs regulatory demand
Deep-sea mining EIA baseline monitoring with ADCPs: what ISA rules require for currents and sediment plumes, and where survey managers under-scope.
ISO 19901-7 3rd edition: what NorMoor changes for mooring analysis
ISO 19901-7:2026 aligns its methods with NorMoor; the calibrated factors sit in the NCS annex. Effects on mooring analysis, metocean and anchor surveys.
Offshore Geomatics Foundation Certificate · October 2026
Turn reading into certified competence
You have just read what a standard actually requires – and where it stops. The Foundation Certificate exists to prove you can work with that distinction.
Early-access list gets 40% off at launch. No spam – the waitlist is only ever used for the certificate. What the certificate covers →