Skip to main content

Class: WeatherRadarUtils

Provides utility functions for working with Garmin weather radars.

Constructors

constructor

new WeatherRadarUtils(): WeatherRadarUtils

Returns

WeatherRadarUtils

Methods

dbzToPrecipRate

dbzToPrecipRate(dbz): number

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

Parameters

NameTypeDescription
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.

Defined in

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


extendedColors

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

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.

Defined in

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


standardColors

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

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.

Defined in

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