Conversions

This section provides functions to handle transformations between different units or representations of coral cover.

ADRIAIndicators.ltmp_cover_to_relative_cover!Method
ltmp_cover_to_relative_cover!(ltmp_cover::Array{T,N}, habitable_area_m²::AbstractVector{T}, reef_area_m²::AbstractVector{T}, location_dim::Int64, out_relative_cover::Array{T,N})::Nothing where {T<:AbstractFloat,N}

Convert LTMP cover to relative cover. If location dimension is -1, then assume the location dimension has already been aggregated and multiply by the ratio of total reef area to total habitable area.

Arguments

  • ltmp_cover : LTMP cover with value in [0, 1].
  • habitable_area_m² : Habitable area of reef in m².
  • reef_area_m² : Area of entire reef in m².
  • location_dim : Index of the location dimensions. Use -1 for no location dimension.
  • out_relative_cover : Array buffer of the same shape as ltmp_cover.
source
ADRIAIndicators.ltmp_cover_to_relative_coverMethod
ltmp_cover_to_relative_cover(ltmp_cover::Array{T}, habitable_area_m²::AbstractVector{T}, reef_area_m²::AbstractVector{T}, location_dim::Int64)::Array{T} where {T<:AbstractFloat}

Convert LTMP cover to relative cover. The conversion is given by

\[\begin{align*} \text{RC} = \text{LTMP} \cdot \frac{A_R}{A_H}, \end{align*}\]

where LTMP, RC, $A_H$ and $A_R$ represent LTMP cover, relative cover, habitable area and reef area respectively.

If location dimension is -1, then assume the location dimension has already been aggregated and multiply by the ratio of total reef area to total habitable area.

Arguments

  • ltmp_cover : LTMP cover with value in [0, 1].
  • habitable_area_m² : Habitable area of reef in m².
  • reef_area_m² : Area of entire reef in m².
  • location_dim : Index of the location dimensions. Use -1 for no location dimension.

Returns

Relative cover with same array shape as the input ltmp_cover.

source
ADRIAIndicators.relative_cover_to_ltmp_cover!Method
relative_cover_to_ltmp_cover!(relative_cover::Array{T,N}, habitable_area_m²::AbstractVector{T}, reef_area_m²::AbstractVector{T}, location_dim::Int64, out_ltmp_cover::Array{T,N})::Nothing where {T<:AbstractFloat,N}

Convert relative cover to LTMP cover. If location dimension is -1, then assume the location dimension has already been aggregated and multiply by the ratio of total reef area to total habitable area.

Arguments

  • relative_cover : Relative cover (relative to habitable area) with value in [0, 1].
  • habitable_area_m² : Habitable area of reef in m².
  • reef_area_m² : Area of entire reef in m².
  • location_dim : Index of the location dimensions. Use -1 for no location dimension.
  • out_ltmp_cover : Array buffer of the same shape as relative_cover.
source
ADRIAIndicators.relative_cover_to_ltmp_coverMethod
relative_cover_to_ltmp_cover(relative_cover::Array{T}, habitable_area_m²::AbstractVector{T}, reef_area_m²::AbstractVector{T}, location_dim::Int64)::Array{T} where {T<:AbstractFloat}

Convert relative cover to LTMP cover. The conversion is given by

\[\begin{align*} \text{LTMP} = \text{RC} \cdot \frac{A_H}{A_R}, \end{align*}\]

where LTMP, RC, $A_H$ and $A_R$ represent LTMP cover, relative cover, habitable area and reef area respectively.

If location dimension is -1, then assume the location dimension has already been aggregated and multiply by the ratio of total reef area to total habitable area.

Arguments

  • relative_cover : Relative cover (relative to habitable area) with value in [0, 1].
  • habitable_area_m² : Habitable area of reef in m².
  • reef_area_m² : Area of entire reef in m².
  • location_dim : Index of the location dimensions. Use -1 for no location dimension.

Returns

LTMP cover with same array shape as the input relative_cover.

source