metardata

package
v0.0.0-...-7e22eb6 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 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        float32 `csv:"latitude"`         // The latitude (in decimal degrees )of the station that reported this METAR
	Longitude       float32 `csv:"longitude"`        // The longitude (in decimal degrees) of the station that reported this METAR
	TempC           float32 `csv:"temp_c"`           // Air temperature
	DewpointC       float32 `csv:"dewpoint_c"`       // Dewpoint temperature
	WindDirDegrees  int     `csv:"wind_dir_degrees"` // Direction from which the wind is blowing.  0 degrees=variable wind direction.

	VisibilityStatuteMi       float32 `csv:"visibility_statute_mi"`         // Horizontal visibility
	AltimInHg                 float32 `csv:"altim_in_hg"`                   // Altimeter
	SeaLevelPressureMb        float32 `csv:"sea_level_pressure_mb"`         // Sea-level pressure
	QualityControlFlags       string  `csv:"quality_control_flags"`         // Quality control flags (see below) provide useful information about the METAR station(s) that provide the data.
	WxString                  string  `csv:"wx_string"`                     // wx_string descriptions
	SkyCondition              string  `csv:"sky_condition"`                 // sky_cover - up to four levels of sky cover and base can be reported under the sky_conditions field; OVX present when vert_vis_ft is reported.  Allowed values: SKC|CLR|CAVOK|FEW|SCT|BKN|OVC|OVX"
	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 float32 `csv:"three_hr_pressure_tendency_mb"` // Pressure change in the past 3 hours
	MaxTC                     float32 `csv:"maxT_c"`                        // Maximum air temperature from the past 6 hours
	MinTC                     float32 `csv:"minT_c"`                        // Minimum air temperature from the past 6 hours
	MaxT24hrC                 float32 `csv:"maxT24hr_c"`                    // Maximum air temperature from the past 24 hours
	MinT24hrC                 float32 `csv:"minT24hr_c"`                    // Minimum air temperature from the past 24 hours
	PrecipIn                  float32 `csv:"precip_in"`                     // Liquid precipitation since the last regular METAR
	Pcp3hrIn                  float32 `csv:"pcp3hr_in"`                     // Liquid precipitation from the past 3 hours. 0.0005 in = trace precipitation
	Pcp6hrIn                  float32 `csv:"pcp6hr_in"`                     // Liquid precipitation from the past 6 hours. 0.0005 in = trace precipitation
	Pcp24hrIn                 float32 `csv:"pcp24hr_in"`                    // Liquid precipitation from the past 24 hours. 0.0005 in = trace precipitation
	SnowIn                    float32 `csv:"snow_in"`                       // Snow depth on the ground
	VertVisFt                 int     `csv:"vert_vis_ft"`                   // Vertical Visibility
	MetarType                 string  `csv:"metar_type"`                    // METAR or SPECI
	ElevationM                int     `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