Documentation
¶
Overview ¶
Internal API, not to be exported
Index ¶
- Constants
- func IsValidNetCDFName(name string) bool
- func NewFillValueReader(repeat []byte) io.Reader
- func NewSlicer(getSlice func(begin, end int64) (any, error), ...) api.VarGetter
- func SliceMD(data any, dimensions []uint64, begin, end []int64) (any, error)
- type FillValueReader
- type LogLevel
- type Logger
- func (l *Logger) Error(v ...any)
- func (l *Logger) Errorf(format string, v ...any)
- func (l *Logger) Fatal(v ...any)
- func (l *Logger) Fatalf(format string, v ...any)
- func (l *Logger) Info(v ...any)
- func (l *Logger) Infof(format string, v ...any)
- func (l *Logger) LogLevel() LogLevel
- func (l *Logger) SetLogLevel(level LogLevel) LogLevel
- func (l *Logger) Warn(v ...any)
- func (l *Logger) Warnf(format string, v ...any)
Constants ¶
View Source
const ( // NetCDF default fill values as defined in the NetCDF4 specification FillByte int8 = -127 FillChar uint8 = 0 FillShort int16 = -32767 FillInt int32 = -2147483647 FillFloat uint32 = 0x7cf00000 FillDouble uint64 = 0x479e000000000000 // NetCDF additions defined in the CDF-5 specification FillUByte uint8 = 255 FillUShort uint16 = 65535 FillUInt uint32 = 4294967295 FillInt64 int64 = -9223372036854775806 FillUInt64 uint64 = 0xfffffffffffffffe )
View Source
const ( // error levels that should almost always be printed LevelFatal LogLevel = iota // error that must stop the program (panics) LevelError // error that does not need to stop execution // debugging levels, okay to disable LevelWarn // something may be wrong, but not necessarily an error LevelInfo // nothing wrong, informational only // Production code by default only shows warnings and above. LogLevelDefault = LevelWarn // min, max levels for setting print level LevelMin = LevelFatal LevelMax = LevelInfo )
Variables ¶
This section is empty.
Functions ¶
func IsValidNetCDFName ¶
IsValidNetCDFName returns true if name is a valid NetCDF name.
func NewFillValueReader ¶
Types ¶
type FillValueReader ¶
type FillValueReader struct {
// contains filtered or unexported fields
}
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) SetLogLevel ¶
SetLogLevel returns the old level
Click to show internal directories.
Click to hide internal directories.