dem

package
v0.0.0-...-62531ef Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Keys = data.ParamKeys{
	Rng:  "width",
	Azi:  "nlines",
	Type: "",
	Date: "",
}

Functions

func ToRadar

func ToRadar(ll common.LatLon, mpar, hgt, diffPar string) (ra common.RngAzi, err error)

Types

type CodeOpt

type CodeOpt struct {
	common.RngAzi
	Nlines       int               `cli:"nlines" dft:"0"`
	Npoints      int               `cli:"n,npoint" dft:"4"`
	Oversamp     float64           `cli:"o,oversamp" dft:"2.0"`
	MaxRad       float64           `cli:"m,maxRadious" dft:"0.0"`
	InterpolMode InterpolationMode `cli:"int,interpol dft:"NearestNeighbour"`
	FlipInput    bool              `cli:"flipIn"`
	FlipOutput   bool              `cli:"flipOut"`
	Order        int               `cli:"r,order" dft:"5"`
}

func (*CodeOpt) Parse

func (opt *CodeOpt) Parse() (lrIn int, lrOut int)

func (*CodeOpt) SetCli

func (co *CodeOpt) SetCli(c *cli.Cli)

type File

type File struct {
	data.FileWithPar
}

func (File) LoadLookup

func (d File) LoadLookup(p LookupPath) (l Lookup, err error)

func (File) PlotMode

func (_ File) PlotMode() (m plot.Mode)

func (File) Validate

func (f File) Validate() (err error)

type InterpolationMode

type InterpolationMode int
const (
	NearestNeighbour InterpolationMode = iota
	BicubicSpline
	BicubicSplineLog
	BicubicSplineSqrt
	BSpline
	BSplineSqrt
	Lanczos
	LanczosSqrt
	InvDist
	InvSquaredDist
	Constant
	Gauss
)

func (*InterpolationMode) Set

func (i *InterpolationMode) Set(s string) (err error)

func (InterpolationMode) String

func (i InterpolationMode) String() string

type Lookup

type Lookup struct {
	data.File
}

func (Lookup) PlotMode

func (_ Lookup) PlotMode() (m plot.Mode)

func (Lookup) Validate

func (l Lookup) Validate() (err error)

type LookupPath

type LookupPath struct {
	data.Path
}

func NewLookup

func NewLookup(p path.Path) (l LookupPath)

type PathWithPar

type PathWithPar struct {
	data.PathWithPar
}

func New

func New(file path.Path) (p PathWithPar)

func NewWithPar

func NewWithPar(dat, par path.Path) (p PathWithPar)

func (PathWithPar) Load

func (p PathWithPar) Load() (f File, err error)

Jump to

Keyboard shortcuts

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