Documentation ¶
Index ¶
- Constants
- func ReadBigMET(fp string, print bool) (*Header, *Coll, error)
- func ReadMET(fp string, print bool) (*Header, *Coll, error)
- func WBcodeToMap(wbdc uint64) map[uint64]string
- type Coll
- type Header
- func (h *Header) AddLocationIndex(iid int)
- func (h *Header) BeginEndInterval() (time.Time, time.Time, int64)
- func (h *Header) Copy() *Header
- func (h *Header) HasWBDC(wbdc uint64) bool
- func (h *Header) IntervalSec() float64
- func (h *Header) LocationCode() int
- func (h *Header) Nloc() int
- func (h *Header) Nstep() int
- func (h *Header) Print()
- func (h *Header) SetWBDC(wbdc uint64)
- func (h *Header) WBDCkeys() ([]uint64, int)
- func (h *Header) WBDCxr() map[string]int
- func (h *Header) WBlist() []string
- type Writer
Constants ¶
View Source
const ( Temperature = 1 << iota MaxDailyT MinDailyT Precipitation Rainfall Snowfall Snowdepth SnowpackSWE SnowMelt AtmosphericYield AtmosphericDemand Radiation RadiationSW RadiationLW CloudCover RH AtmosphericPressure Windspeed Windgust WindDirection HeatDegreeDays CoolDegreeDays Unspecified23 HeadStage Flux UnitDischarge Unspecified27 Unspecified28 Unspecified29 Unspecified30 Storage SnowPackCover SnowPackLWC SnowPackAlbedo SnowSurfaceTemp Unspecified36 Unspecified37 DepressionWaterContent InterceptionWaterContent SoilSurfaceTemp SoilSurfaceRH SoilMoistureContent SoilMoisturePressure Unspecified44 Unspecified45 Unspecified46 Unspecified47 Evaporation Transpiration Evapotranspiration Infiltration Runoff Recharge TotalHead PressureHead SubSurfaceLateralFlux FluxLeft FluxRight FluxFront FluxBack FluxBottom FluxTop OutgoingRadiationLW Reserved )
WaterBalanceDataType (bit-wise type code)
Variables ¶
This section is empty.
Functions ¶
func ReadBigMET ¶
ReadBigMET reads a .met blob in chunks to be more memory-conservative
func WBcodeToMap ¶
WBcodeToMap converts a wbdc into a list of metrics
Types ¶
type Coll ¶
type Coll struct { T []time.Time // [date ID] D [][][]float64 // D [date ID][location ID][type ID] or [cell ID][date ID][type ID] }
Coll holds met data
type Header ¶
type Header struct { Locations map[int][]interface{} WBCD uint64 // waterbalance data code ESPG uint32 // contains filtered or unexported fields }
Header contains metadata for the .met file
func (*Header) AddLocationIndex ¶
AddLocationIndex adds locations of code 1
func (*Header) BeginEndInterval ¶
BeginEndInterval returns the begining and end dates
func (*Header) IntervalSec ¶
IntervalSec returns the time interval of the .met file
func (*Header) LocationCode ¶
LocationCode returns the location code of the .met file
func (*Header) WBDCkeys ¶
WBDCkeys returns an ordered key index associated with the waterbalance codes
Click to show internal directories.
Click to hide internal directories.