radar

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadData

func LoadData(zipCode string, radarW, radarH int) tea.Cmd

LoadData loads radar data for a given ZIP code

Types

type Data

type Data struct {
	Frames      []Frame
	Location    string
	Station     string
	LastUpdated time.Time
	IsRealData  bool
	Temperature int
	Conditions  string
	Alerts      []weather.Alert
	Lat         float64
	Lon         float64
	RadarW      int // actual radar grid width used
	RadarH      int // actual radar grid height used
	Wind        weather.WindData
	Forecast    []weather.ForecastPeriod
}

Data represents radar data with frames and metadata

type ErrorMsg

type ErrorMsg struct {
	Err error
}

type Frame

type Frame struct {
	Data      [][]int
	Timestamp time.Time
	Product   string
}

Frame represents a single radar frame

type LoadedMsg

type LoadedMsg struct {
	Radar Data
}

Messages for tea.Cmd communication

Jump to

Keyboard shortcuts

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