Documentation ¶
Index ¶
- func CodeTable31(gdtn int32) string
- func CodeTable32(shape int32) string
- func CodeTable40(productDefinition int32) string
- func CodeTable43(typeGenProcess int32) string
- func CodeTable45(id int32) string
- func GetCenterIdName(center int32) string
- type Category
- type Discipline
- type GribHeader
- type Quantity
- type RootProduct
- func (r *RootProduct) GetCategoryName(d int32, c int32) string
- func (r *RootProduct) GetDiscipline(aDis int32) *Discipline
- func (r *RootProduct) GetDisciplineName(aDis int32) string
- func (r *RootProduct) GetParameter(d int32, c int32, p int32) *Quantity
- func (r *RootProduct) GetParameterByCenter(d int32, c int32, p int32, center int32) *Quantity
- func (r *RootProduct) GetParameterDescription(d int32, c int32, p int32) string
- func (r *RootProduct) GetParameterName(d int32, c int32, p int32) string
- func (r *RootProduct) GetParameterUnit(d int32, c int32, p int32) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeTable31 ¶
func CodeTable32 ¶
func CodeTable40 ¶
func CodeTable43 ¶
func CodeTable45 ¶
func GetCenterIdName ¶
Types ¶
type Category ¶
type Category struct { Id string `xml:"id,attr"` Number int32 `xml:"number,attr"` Quantities []Quantity `xml:"quantity"` }
func (*Category) GetParameter ¶
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 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 (*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
Click to show internal directories.
Click to hide internal directories.