inmet

package
v0.0.0-...-c94209e Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnimation

func GetAnimation(sat Satellite, area Area, param Param, dateTime time.Time, delay int, repeat bool, threads int) (anim gif.GIF, err error)

func GetDefaultParam

func GetDefaultParam(sat Satellite) (par string, err error)

func GetHours

func GetHours(sat Satellite, are Area, par Param, dateTime time.Time) (dates []string, err error)

func GetImages

func GetImages(sat Satellite, area Area, param Param, dateTime time.Time) (images []image.Image, err error)

func PrintAreas

func PrintAreas(sat Satellite) (err error)

func PrintHours

func PrintHours(sat Satellite, are Area, par Param, dateTime time.Time) (err error)

func PrintParams

func PrintParams(sat Satellite, are Area) (err error)

Types

type Area

type Area int
const (
	AS Area = iota
	BR Area = iota
	CO Area = iota
	DF Area = iota
	N  Area = iota
	NE Area = iota
	S  Area = iota
	SE Area = iota
)

func GetAreaCode

func GetAreaCode(str string) (are Area, err error)

func GetAreas

func GetAreas(sat Satellite) (ars []Area, err error)

func (Area) GetAreaStr

func (are Area) GetAreaStr() (str string, err error)

type ImageResp

type ImageResp struct {
	Nome, Satelite, Parametro, Data, Hora, Base64 string
}

type ImagesResp

type ImagesResp []ImageResp

type Info

type Info struct {
	Sigla, Nome string
}

type InfoResp

type InfoResp []Info

type Param

type Param int
const (
	// GOES params
	IV Param = iota
	TN Param = iota
	VA Param = iota
	VI Param = iota
	VP Param = iota

	// GOESIM params
	CH Param = iota

	// SATELITE parmas
	P    Param = iota
	V10  Param = iota
	V200 Param = iota
	V500 Param = iota
	V700 Param = iota
	V850 Param = iota
)

func GetParamCode

func GetParamCode(str string) (par Param, err error)

func GetParams

func GetParams(sat Satellite, are Area) (prs []Param, err error)

func (Param) GetParamStr

func (par Param) GetParamStr() (str string, err error)

type Satellite

type Satellite int
const (
	GOES     Satellite = iota
	GOESIM   Satellite = iota
	SATELITE Satellite = iota
)

func GetSatelliteCode

func GetSatelliteCode(str string) (sat Satellite, err error)

func (Satellite) GetSatelliteStr

func (sat Satellite) GetSatelliteStr() (str string, err error)

Jump to

Keyboard shortcuts

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