Skip to content

@windy/metrics

Contains already initialized instances of Metric classes, to recalculate raw weather data, into units, that has user selected as his favorite, units

Example

typescript
import metrics from '@windy/metrics';

metrics.temp.convertNumber(234.9);
// converts 234.9 from Kelvin to Celsius or Fahrenheit
// based on users settings

metrics.temp.convertValue(234.9);
// outputs string either -24.2°C or -11.5°F

Complete list of Windy's supported metrics

Table of contents

Properties

Properties

altitude

altitude: NumberedMetric


aod550

aod550: NumberedMetric


area

area: NumberedMetric


capAlerts

capAlerts: NumberedMetric


cape

cape: NumberedMetric


clouds

clouds: NumberedMetric


cosc

cosc: NumberedMetric


currents

currents: NumberedMetric


dfm10h

dfm10h: NumberedMetric


distance

distance: NumberedMetric


drought

drought: NumberedMetric


dust

dust: NumberedMetric


efiRain

efiRain: NumberedMetric


efiTemp

efiTemp: NumberedMetric


efiWind

efiWind: NumberedMetric


elevation

elevation: NumberedMetric


fog

fog: FogMetric


fwi

fwi: NumberedMetric


gh

gh: NumberedMetric


go3

go3: NumberedMetric


gtco3

gtco3: NumberedMetric


icing

icing: NumberedMetric


lightDensity

lightDensity: NumberedMetric


moistureAnom100

moistureAnom100: PrecipMetric


moistureAnom40

moistureAnom40: PrecipMetric


no2

no2: NumberedMetric


pm2p5

pm2p5: NumberedMetric


pressure

pressure: NumberedMetric


ptype

ptype: PtypeMetric


radar

radar: NumberedMetric


rain

rain: PrecipMetric


rh

rh: NumberedMetric


satellite

satellite: SatelliteMetric


snow

snow: NumberedMetric


so2

so2: NumberedMetric


solarpower

solarpower: NumberedMetric


speed

speed: NumberedMetric


tcso2

tcso2: NumberedMetric


temp

temp: NumberedMetric


turbulence

turbulence: NumberedMetric


uvindex

uvindex: UVIndexMetric


visibility

visibility: NumberedMetric


visibilityNoRules

visibilityNoRules: NumberedMetric


waves

waves: NumberedMetric


wind

wind: NumberedMetric