plot

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: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AverageFactor

type AverageFactor struct {
	Rng validate.NaturalInt `json:"range"`
	Azi validate.NaturalInt `json:"azimuth"`
}

type BytePlotter

type BytePlotter PlotCommand

func (BytePlotter) Plot

func (b BytePlotter) Plot(t Type, o Options) (err error)

type Channel

type Channel int
const (
	Red   Channel = 1
	Green Channel = 2
	Blue  Channel = 3
)

type CommandNamer

type CommandNamer interface {
	CommandNames() CommandNames
}

type CommandNames

type CommandNames struct {
	Raster, Display string
}

type Common

type Common struct {
	ScaleExp
	Start                    validate.PositiveInt `json:"start"`
	NumLines                 validate.PositiveInt `json:"num_lines"`
	MinMax                   geometry.MinMaxFloat `json:"min_max"`
	HeaderSize               validate.NaturalInt  `json:"header_size,omitempty"`
	Raster                   path.Path            `json:"output_raster,omitempty"`
	settings.RasterExtension `json:"raste_extension,omitempty"`
}

type CommonOptions

type CommonOptions struct {
	Common
	AverageFactor AverageFactor `json:"average_factor"`
	Flip          bool          `json:"flip"`
}

func (CommonOptions) Parse

func (c CommonOptions) Parse(p Plottable) (o Options)

type DataDescription

type DataDescription struct {
	DataFile path.ValidFile
	Type     data.Type
	Mode     Mode
	common.RngAzi
}

type DefaultService

type DefaultService struct {
	// contains filtered or unexported fields
}

func (DefaultService) Plot

func (d DefaultService) Plot(dd DataDescription, t Type, op Options) (err error)

type DisArgs

type DisArgs struct {
	Sec        string  `name:"sec" default:""`
	StartSec   int     `name:"startSec" default:"1"`
	StartCC    int     `name:"startCC" default:"1"`
	Coh        string  `name:"coh" default:""`
	Cycle      float64 `name:"cycle" default:"160.0"`
	Elev       float64 `name:"elev" default:"45.0"`
	Orient     float64 `name:"orient" default:"135.0"`
	ColPost    float64 `name:"colpost" default:"0"`
	RowPost    float64 `name:"rowpost" default:"0"`
	Offset     float64 `name:"offset" default:"0.0"`
	PhaseScale float64 `name:"scale" default:"0.0"`
	CC         string
	CCMin      float64 `name:"ccMin" default:"0.2"`
	// contains filtered or unexported fields
}

type Inverse

type Inverse int
const (
	Float2Raster Inverse = 1
	Raster2Float Inverse = -1
)

type Mode

type Mode int
const (
	Byte Mode = iota
	CC
	Decibel
	Deform
	Height
	Linear
	MagPhase
	MagPhasePwr
	Power
	SingleLook
	Unwrapped
	Undefined
	MaximumMode
)

func (Mode) CommandNames

func (m Mode) CommandNames() (c CommandNames)

func (Mode) NewPlotCommand

func (m Mode) NewPlotCommand(c settings.Commands) (p PlotCommand, err error)

type Options

type Options struct {
	AveragePixels common.RngAzi
	MinMax        geometry.MinMaxFloat
	Meta          data.Meta
	LR            int
	Mode
	Common
}

func (*Options) GetRaster

func (o *Options) GetRaster() (p path.Path)

type PlotCommand

type PlotCommand struct {
	// contains filtered or unexported fields
}

type Plottable

type Plottable interface {
	PlotMode() Mode
	MetaData() data.Meta
}

type Plotter

type Plotter interface {
	Raster(RasterOptions) error
}

type RasterOptions

type RasterOptions struct {
	Options
}

type ScaleExp

type ScaleExp struct {
	Scale float64 `json:"scale"`
	Exp   float64 `json:"exp"`
}

/ TODO: constrain scale and exp to a range

type Service

type Service interface {
	Plot(DataDescription, Type, Options) error
}

type Type

type Type int
const (
	Raster Type = iota
	Display
)

func (*Type) Set

func (t *Type) Set(s string) (err error)

func (Type) String

func (t Type) String() (s string)

func (*Type) UnmarshalJSON

func (t *Type) UnmarshalJSON(b []byte) (err error)

type ZeroFlag

type ZeroFlag int
const (
	Missing ZeroFlag = iota
	Valid
)

Jump to

Keyboard shortcuts

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