package carbon

  1. Overview
  2. Docs

Module Gb.IntensitySource

Sourcetype t
Sourcetype index = [
  1. | `Very_low
  2. | `Low
  3. | `Moderate
  4. | `High
  5. | `Very_high
]

The index is a measure of the Carbon Intensity represented as a scale

Sourceval period : t -> Period.t

The period of time for which the Carbon Intensity information is valid.

Sourceval forecast : t -> int

The forecast Carbon Intensity for the period in units gCO2/kWh

Sourceval actual : t -> int option

The forecast Carbon Intensity for the period in units gCO2/kWh. This is optional as the data might be for the future.

Sourceval index : t -> index

Extracts the index for a given intensity

Sourceval pp : t Fmt.t

A simple pretty printer for intensity information

OCaml

Innovation. Community. Security.