metardata

package
v0.0.0-...-c19916e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchRoutine

func FetchRoutine(c config.Config, leds chan display.Pixel) chan bool

Types

type Metar

type Metar struct {
	RawText         string `csv:"raw_text"`         // The raw METAR
	StationID       string `csv:"station_id"`       // Station identifier; Always a four character alphanumeric( A-Z, 0-9)
	ObservationTime string `csv:"observation_time"` // Time( in ISO8601 date/time format) this METAR was observed.
	Latitude        string `csv:"latitude"`         // The latitude (in decimal degrees )of the station that reported this METAR
	Longitude       string `csv:"longitude"`        // The longitude (in decimal degrees) of the station that reported this METAR
	TempC           string `csv:"temp_c"`           // Air temperature
	DewpointC       string `csv:"dewpoint_c"`       // Dewpoint temperature
	WindDirDegrees  string `csv:"wind_dir_degrees"` // Direction from which the wind is blowing.  0 degrees=variable wind direction.

	VisibilityStatuteMi       string `csv:"visibility_statute_mi"` // Horizontal visibility
	AltimInHg                 string `csv:"altim_in_hg"`           // Altimeter
	SeaLevelPressureMb        string `csv:"sea_level_pressure_mb"` // Sea-level pressure
	Corrected                 string `csv:"corrected"`
	Auto                      string `csv:"auto"`
	AutoStation               string `csv:"auto_station"`
	MaintenanceIndicatorOn    string `csv:"maintenance_indicator_on"`
	NoSignal                  string `csv:"no_signal"`
	LightningSensorOff        string `csv:"lightning_sensor_off"`
	FreezingRainSensorOff     string `csv:"freezing_rain_sensor_off"`
	PresentWeatherSensorOff   string `csv:"present_weather_sensor_off"`
	WxString                  string `csv:"wx_string"` // wx_string descriptions
	SkyCover                  string `csv:"sky_cover"`
	CloudBaseftAGL            string `csv:"cloud_base_ft_agl"`
	SkyCover2                 string `csv:"sky_cover"`
	CloudBaseftAGL2           string `csv:"cloud_base_ft_agl"`
	SkyCover3                 string `csv:"sky_cover"`
	CloudBaseftAGL3           string `csv:"cloud_base_ft_agl"`
	SkyCover4                 string `csv:"sky_cover"`
	CloudBaseftAGL4           string `csv:"cloud_base_ft_agl"`
	FlightCategory            string `csv:"flight_category"`               // Flight category of this METAR. Values: VFR|MVFR|IFR|LIFR See http://www.aviationweather.gov/metar/help?page=plot#fltcat"
	ThreeHrPressureTendencyMb string `csv:"three_hr_pressure_tendency_mb"` // Pressure change in the past 3 hours
	MaxTC                     string `csv:"maxT_c"`                        // Maximum air temperature from the past 6 hours
	MinTC                     string `csv:"minT_c"`                        // Minimum air temperature from the past 6 hours
	MaxT24hrC                 string `csv:"maxT24hr_c"`                    // Maximum air temperature from the past 24 hours
	MinT24hrC                 string `csv:"minT24hr_c"`                    // Minimum air temperature from the past 24 hours
	PrecipIn                  string `csv:"precip_in"`                     // Liquid precipitation since the last regular METAR
	Pcp3hrIn                  string `csv:"pcp3hr_in"`                     // Liquid precipitation from the past 3 hours. 0.0005 in = trace precipitation
	Pcp6hrIn                  string `csv:"pcp6hr_in"`                     // Liquid precipitation from the past 6 hours. 0.0005 in = trace precipitation
	Pcp24hrIn                 string `csv:"pcp24hr_in"`                    // Liquid precipitation from the past 24 hours. 0.0005 in = trace precipitation
	SnowIn                    string `csv:"snow_in"`                       // Snow depth on the ground
	VertVisFt                 string `csv:"vert_vis_ft"`                   // Vertical Visibility
	MetarType                 string `csv:"metar_type"`                    // METAR or SPECI
	ElevationM                string `csv:"elevation_m"`                   // The elevation of the station that reported this METAR
	// contains filtered or unexported fields
}

https://www.aviationweather.gov/dataserver/fields?datatype=metar

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL