raster

package
v0.0.0-...-616f46f Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Raster

type Raster struct {
	Names  map[string]*Taxon // a map of name (in lower caps) to taxon
	Fields int               // number of fields in the raster bitfield
	Pixel  map[int]int       // map of pixel:bit
	Cols   int               // number of columns
	Fill   int               // fill of the raster
	Resol  float64           // resolution of the raster
}

A Raster is a rasterized data set.

func Rasterize

func Rasterize(d *biogeo.DataSet, cols, fill int) *Raster

Rasterize creates a new raster from a given dataset.

func (*Raster) Taxon

func (r *Raster) Taxon(name string) *Taxon

Taxon returns a taxon for a given name.

type Taxon

type Taxon struct {
	Name string
	// rasterized data
	Obs  bitfield.Bitfield
	Fill bitfield.Bitfield
}

A Taxon is a named terminal taxon with a defined rasterized data.

Jump to

Keyboard shortcuts

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