mapcmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package mapcmd implements a command to draw the geographic range of the taxa in a PhyGeo project with defined distribution ranges.

Index

Constants

This section is empty.

Variables

View Source
var Command = &command.Command{
	Usage: `map [-c|--columns <value>] [--key <key-file>] [--gray]
	[-t|--taxon <name>] [--ranges]
	[--unrot] [--present] [--contour <image-file>]
	[-o|--output <file-prefix] <project-file>`,
	Short: "draw a map of the taxa with distribution ranges",
	Long: `
Command map reads the geographic ranges from a PhyGeo project and draws an
image map using a plate carrée (equirectangular) projection.

The argument of the command is the name of the project file.
	
By default, the ranges will be mapped using their respective time stages. If
the flag --unrot is given, then the estimated ranges will be drawn at the
present time. By default, the landscape of the time stage will be used; if the
flag --present is defined, the present landscape will be used for the
background. If the flag --contour is defined with a file, the given image will
be used as a contour of the output map. The contour map will set the size of
the output image and should be fully transparent, except for the contour,
which will always be drawn in black.
	
By default, the output images will be named with the distribution range type
and the taxon name. Use the flag --output, or -o, to set a prefix to each
file.
	
By default, the resulting image will be 3600 pixels wide. Use the flag
--column, or -c, to define a different number of columns. By default, the
images will have a gray background. Use the flag --key to define the landscape
colors of the image. If the flag --gray is set, then gray colors will be used.

By default, map images for all taxa will be produced; use the flag --taxon to
define the map of a particular taxon. By default, maps will be produced using
the ranges defined as points; to make maps based on continuous range maps, use
the flag --ranges.
	`,
	SetFlags: setFlags,
	Run:      run,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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