gmet

package
v0.0.0-...-0f7942d Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DSet

type DSet struct {
	Date string
	Dat  []float64
}

type GMET

type GMET struct {
	Dat       [][]DSet    // [station][]
	Nts, Nsta int         // number timesteps/stations
	Ts        []time.Time // timesteps
	Sids      []int       // station IDs
	Sxy       []XYZ       // station coordinates
	Snams     []string    // station Names (or 'Dat' parameter names)
}

func LoadBin

func LoadBin(prfx string, vars []string) (*GMET, error)

func LoadCsv

func LoadCsv(fp, vartype string) (*GMET, error)

func LoadGob

func LoadGob(fp string) (*GMET, error)

func LoadNC

func LoadNC(fp, prfx string, vars []string) (*GMET, error)

func (*GMET) Append

func (g *GMET) Append(g1 *GMET) bool

func (*GMET) CheckAndPrint

func (g *GMET) CheckAndPrint(timestepsec float64)

func (*GMET) GetAllData

func (g *GMET) GetAllData(varname string) [][]float64

func (*GMET) GetData

func (g *GMET) GetData(stationid int, varname string) []float64

func (GMET) SaveGob

func (g GMET) SaveGob(fp string) error

type XYZ

type XYZ struct{ X, Y, Z float64 }

Jump to

Keyboard shortcuts

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