lencmd

package
v0.0.0-...-26dca7e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package lencmd implements a command to get the number of pixels in a pixelation based on equal area partitioning.

Index

Constants

This section is empty.

Variables

View Source
var Command = &command.Command{
	Usage: "len [-e|--equator <value>] [--box <lat,lon,lat,lon>] [--rings]",
	Short: "get the number of pixels in a pixelation",
	Long: `
Command len retrieves the number of pixels produced by a pixelation based on
an equal area partitioning of a sphere with the given number of pixels at the
equator, as well as the number of isolatitude rings.

By default the pixelation will be of 360 pixels at the equator. Use the flag
--equator, or -e, to define a different pixelation.

If the flag --box is defined, only pixels inside the box will be count. The box
is defined using the format "lat,lon,lat,lon", for example "14,-94,-58,-26"
will enclose South America.

If the flag --mask is defined, the read image file will be used as a mask, so
only pixels that are white in the mask will be count. This flag can be combined
with --box.

If the flag --rings is defined, the number of pixels at each ring will be
printed.
	`,
	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