Sidereon.Terrain.MmapTerrain.Egm96FifteenMinuteGeoid (Sidereon v0.20.0)

Copy Markdown View Source

Loaded EGM96 15-minute WW15MGH.DAC geoid grid.

This grid is only used when a caller explicitly chooses the :egm96_fifteen_minute terrain geoid model. Missing files return a typed TerrainDatumError and do not fall back to the embedded 1-degree grid.

Summary

Types

t()

Loaded EGM96 15-minute geoid handle.

Functions

Load WW15MGH.DAC bytes as an EGM96 15-minute geoid grid.

Load a WW15MGH.DAC path as an EGM96 15-minute geoid grid.

Types

t()

@type t() :: %Sidereon.Terrain.MmapTerrain.Egm96FifteenMinuteGeoid{
  handle: reference()
}

Loaded EGM96 15-minute geoid handle.

Functions

from_ww15mgh_dac_bytes(bytes)

@spec from_ww15mgh_dac_bytes(binary()) ::
  {:ok, t()}
  | {:error, Sidereon.Terrain.MmapTerrain.TerrainDatumError.t() | term()}

Load WW15MGH.DAC bytes as an EGM96 15-minute geoid grid.

from_ww15mgh_dac_path(path)

@spec from_ww15mgh_dac_path(String.t()) ::
  {:ok, t()}
  | {:error, Sidereon.Terrain.MmapTerrain.TerrainDatumError.t() | term()}

Load a WW15MGH.DAC path as an EGM96 15-minute geoid grid.

If the file is absent, the result is {:error, %TerrainDatumError{kind: :missing_egm96_dac}} with the path and a remediation string.