AbstractEGM96Geoid

abstract class AbstractEGM96Geoid(offsetsFile: AssetResource, scope: CoroutineScope) : Geoid

Computes EGM96 geoid offsets.

A file with the offset grid must be passed to the constructor. This file must have 721 rows of 1440 2-byte integer values. Each row corresponding to a latitude, with the first row corresponding to +90 degrees (90 North). The integer values must be in centimeters.

Parameters

offsetsFile

a resource pointing to a file with the geoid offsets. See the class description above for a description of the file.

Inheritors

Constructors

Link copied to clipboard
constructor(offsetsFile: AssetResource, scope: CoroutineScope)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val displayName: String

This Gravitational Model display name.

Functions

Link copied to clipboard
suspend fun awaitDataLoaded()

Suspend until the offsets grid is resident (requesting the load if needed), so callers that bake offsets into long-lived data never read the 0 fallback getOffset returns while loading.

Link copied to clipboard

Request data load once

Link copied to clipboard
open override fun getOffset(latitude: Angle, longitude: Angle): Float

Calculates Gravitational Model offset at specified location

Link copied to clipboard
open fun release()

Release loaded data to free memory