qc

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartQcRMain

func StartQcRMain(q *QC) error

Types

type CanalCells

type CanalCells struct {
	Node     int     `db:"node"`
	CArea    float64 `db:"cell_area"`
	SoilCode int     `db:"soil_code"`
	Zone     int     `db:"zone"`
	CZone    int     `db:"coeff_zone"`
	Name     string  `db:"name"`
	Eff      float64 `db:"eff"`
	CLink    int     `db:"clink_id"`
}

type GroupedResult added in v1.3.7

type GroupedResult struct {
	Node   int     `db:"cell_node"`
	Result float64 `db:"result"`
}

type Node added in v1.3.7

type Node struct {
	CellNode int `db:"cell_node"`
}

type NodeCentroid added in v1.3.6

type NodeCentroid struct {
	Gjson []byte `db:"geojson"`
	Node  int    `db:"node"`
}

type NodeData added in v1.3.7

type NodeData struct {
	GJson []byte `db:"geojson"`
	Node  int    `db:"node"`
}

type Note added in v1.3.1

type Note struct {
	Nt string `db:"note"`
}

type Option

type Option func(*QC)

func WithGJson

func WithGJson() Option

func WithGraph

func WithGraph() Option

func WithMonthly

func WithMonthly() Option

func WithRechargeBalance added in v1.3.7

func WithRechargeBalance() Option

func WithWellAnnGJson added in v1.3.7

func WithWellAnnGJson() Option

func WithWellGJson added in v1.3.6

func WithWellGJson() Option

func WithYear

func WithYear(year int) Option

type QC

type QC struct {
	Graph bool
	Year  int
	GJson bool

	Monthly      bool
	WellGJson    bool
	WellAnnGJson bool

	SYear int
	EYear int
	// contains filtered or unexported fields
}

func NewQC

func NewQC(v *database.Setup, fileName string, options ...Option) *QC

func (*QC) WellPumpingGJson added in v1.3.6

func (q *QC) WellPumpingGJson() error

func (*QC) WellsAnnPumping added in v1.3.7

func (q *QC) WellsAnnPumping() error

type Well added in v1.3.6

type Well struct {
	Gjson  []byte `db:"geojson"`
	Wellid int    `db:"wellid"`
	Nrd    string `db:"nrd"`
}

type WellData added in v1.3.6

type WellData struct {
	Wellid   int     `db:"well_id"`
	FileType int     `db:"file_type"`
	Result   float64 `db:"result"`
	Node     int     `db:"cell_node"`
}

Jump to

Keyboard shortcuts

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