Skip to main content

Class: WeatherRadarUtils

Defined in: src/garminsdk/components/weatherradar/WeatherRadarUtils.ts:6

Provides utility functions for working with Garmin weather radars.

Constructors​

Constructor​

new WeatherRadarUtils(): WeatherRadarUtils

Returns​

WeatherRadarUtils

Methods​

dbzToPrecipRate()​

static dbzToPrecipRate(dbz): number

Defined in: src/garminsdk/components/weatherradar/WeatherRadarUtils.ts:54

Converts a radar return signal strength in dBZ to an approximate precipitation rate in millimeters per hour.

Parameters​

ParameterTypeDescription
dbznumberA radar return signal strength in dBZ.

Returns​

number

The precipitation rate, in millimeters per hour, that is approximately correlated with the specified radar return signal strength.


extendedColors()​

static extendedColors(): readonly readonly [number, number][]

Defined in: src/garminsdk/components/weatherradar/WeatherRadarUtils.ts:92

Gets the calibrated (zero-gain) extended Garmin 16-color weather radar color array.

Returns​

readonly readonly [number, number][]

The calibrated (zero-gain) extended Garmin 16-color weather radar color array.


standardColors()​

static standardColors(): readonly readonly [number, number][]

Defined in: src/garminsdk/components/weatherradar/WeatherRadarUtils.ts:84

Gets the calibrated (zero-gain) standard Garmin three-color weather radar color array.

Returns​

readonly readonly [number, number][]

The calibrated (zero-gain) standard Garmin three-color weather radar color array.