probmap

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package probmap implements a map image for a probability density, in a plate carrée (equirectangular) projection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gradienter added in v0.4.0

type Gradienter interface {
	Gradient(v float64) color.Color
}

Gradientes is an interface for types that return a color gradient

type HalfGrayScale added in v0.4.0

type HalfGrayScale struct{}

HalfGrayScale returns a gray scale between 0 (black) and 128 (gray).

func (HalfGrayScale) Gradient added in v0.4.0

func (h HalfGrayScale) Gradient(v float64) color.Color

type Image

type Image struct {
	// Number of columns in the image
	Cols int

	// Age of the time stage of the image
	Age int64

	// Landscape model
	Landscape *model.TimePix

	// Total rotation for the pixels to the present stage
	Tot map[int][]int

	// Color keys
	Keys *pixkey.PixKey

	// Map of Pixels to Probabilities
	Rng map[int]float64

	// Contour image
	Contour image.Image

	// If present is true,
	// it will use the present geography
	Present bool

	// If gray is true,
	// it will use a gray scale.
	Gray bool

	// A Gradient color scheme
	Gradient Gradienter
	// contains filtered or unexported fields
}

func (*Image) At

func (i *Image) At(x, y int) color.Color

func (*Image) Bounds

func (i *Image) Bounds() image.Rectangle

func (*Image) ColorModel

func (i *Image) ColorModel() color.Model

func (*Image) Format

func (i *Image) Format(tot *model.Total)

type Incandescent added in v0.4.0

type Incandescent struct{}

Incandescent is the incandescent color scheme of Paul Tol <https://personal.sron.nl/~pault/#fig:scheme_incandescent>.

func (Incandescent) Gradient added in v0.4.0

func (i Incandescent) Gradient(v float64) color.Color

type Iridescent added in v0.4.0

type Iridescent struct{}

Iridescent is the iridescent color scheme of Paul Tol <https://personal.sron.nl/~pault/#fig:scheme_iridescent>.

func (Iridescent) Gradient added in v0.4.0

func (i Iridescent) Gradient(v float64) color.Color

type LightGrayScale added in v0.4.0

type LightGrayScale struct{}

LightGrayScale returns a gray scale between 0 (black) to 200 (light gray).

func (LightGrayScale) Gradient added in v0.4.0

func (l LightGrayScale) Gradient(v float64) color.Color

type RainbowPurpleToRed added in v0.4.0

type RainbowPurpleToRed struct{}

RainbowPurpleToRed is the rainbow color scheme of Paul Tol <https://personal.sron.nl/~pault/#fig:scheme_rainbow_smooth> starting at purple and ending at red.

func (RainbowPurpleToRed) Gradient added in v0.4.0

func (r RainbowPurpleToRed) Gradient(v float64) color.Color

Jump to

Keyboard shortcuts

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