bean

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeTable31

func CodeTable31(gdtn int32) string

func CodeTable32

func CodeTable32(shape int32) string

func CodeTable40

func CodeTable40(productDefinition int32) string

func CodeTable43

func CodeTable43(typeGenProcess int32) string

func CodeTable45

func CodeTable45(id int32) string

func GetCenterIdName

func GetCenterIdName(center int32) string

Types

type Category

type Category struct {
	Id         string     `xml:"id,attr"`
	Number     int32      `xml:"number,attr"`
	Quantities []Quantity `xml:"quantity"`
}

func (*Category) GetParameter

func (d *Category) GetParameter(p int32) *Quantity

type Discipline

type Discipline struct {
	Id         string     `xml:"id,attr"`
	Number     int32      `xml:"number,attr"`
	Categories []Category `xml:"category"`
}

func (*Discipline) GetCategory

func (d *Discipline) GetCategory(c int32) *Category

type GribHeader

type GribHeader struct {
	Datasource                string  `json:"datasource"`
	Discipline                int32   `json:"discipline"`
	DisciplineName            string  `json:"disciplineName"`
	GribEdition               int32   `json:"gribEdition"`
	GribLength                int32   `json:"gribLength"`
	RefTime                   int64   `json:"refTime"`
	ProductType               int32   `json:"productType"`
	ProductTypeName           string  `json:"productTypeName"`
	ProductDefinitionTemplate int32   `json:"productDefinitionTemplate"`
	ParameterCategoryName     string  `json:"parameterCategoryName"`
	ParameterCategory         int32   `json:"parameterCategory"`
	ParameterNumberName       string  `json:"parameterNumberName"`
	ParameterNumber           int32   `json:"parameterNumber"`
	ParameterUnit             string  `json:"parameterUnit"`
	GenProcessType            int32   `json:"genProcessType"`
	ForecastTime              int32   `json:"forecastTime"`
	Surface1Type              int32   `json:"surface1Type"`
	Surface1Value             string  `json:"surface1Value"`
	Surface2Type              int32   `json:"surface2Type"`
	Surface2Value             string  `json:"surface2Value"`
	GridUnits                 string  `json:"gridUnits"`
	Nx                        int32   `json:"nx"`
	Ny                        int32   `json:"ny"`
	Lo1                       float64 `json:"lo1"`
	La1                       float64 `json:"la1"`
	Lo2                       float64 `json:"lo2"`
	La2                       float64 `json:"la2"`
	Dx                        float64 `json:"dx"`
	Dy                        float64 `json:"dy"`
	Ver                       string  `json:"ver"`
	SourceFile                string  `json:"sourceFile"`
	TargetFile                string  `json:"targetFile"`
	Tm                        int64   `json:"tm"`
}

type Quantity

type Quantity struct {
	Id          string `xml:"id,attr"`
	Number      int32  `xml:"number,attr"`
	Unit        string `xml:"unit,attr"`
	Description string `xml:"description,attr"`
}

type RootProduct

type RootProduct struct {
	Disciplines []Discipline `xml:"discipline"`
}

func NewGribParameterTable

func NewGribParameterTable() (*RootProduct, error)

func (*RootProduct) GetCategoryName

func (r *RootProduct) GetCategoryName(d int32, c int32) string

func (*RootProduct) GetDiscipline

func (r *RootProduct) GetDiscipline(aDis int32) *Discipline

func (*RootProduct) GetDisciplineName

func (r *RootProduct) GetDisciplineName(aDis int32) string

func (*RootProduct) GetParameter

func (r *RootProduct) GetParameter(d int32, c int32, p int32) *Quantity

func (*RootProduct) GetParameterByCenter

func (r *RootProduct) GetParameterByCenter(d int32, c int32, p int32, center int32) *Quantity

func (*RootProduct) GetParameterDescription

func (r *RootProduct) GetParameterDescription(d int32, c int32, p int32) string

func (*RootProduct) GetParameterName

func (r *RootProduct) GetParameterName(d int32, c int32, p int32) string

func (*RootProduct) GetParameterUnit

func (r *RootProduct) GetParameterUnit(d int32, c int32, p int32) string

Jump to

Keyboard shortcuts

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