Documentation ¶
Overview ¶
Package add implements a command to add pixel values to a time pixelation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &command.Command{
Usage: `add [--from <age>] [--to <age>] [--at <age>]
[-f|--format <format>]
[--source <value>] [--only <value>] --val <value>
--in <model-file>
<time-pix-file>`,
Short: "add pixels to a time pixelation",
Long: `
Command add reads pixels from a reconstruction model at a given age, and them
to a time pixelation.
The flag --in is required and is used to provide the name of the input file.
By default, a tectonic reconstruction model will be used, other kind of files
can be used, defined by the flag --format, or -f. Valid formats are:
mask an image used as mask
model default value, a tectonic reconstruction model
pix a pixelated plates file
timepix a time pixelation
In the case of a mask image a pixelated plates file, a single time (defined
with the flag --at in million years) must be defined. For the mask image also
it requires that the base time pixelation exists. The image mask should be in
plate carrée projection (also known as equirectangular projection), and only
pixels in white will be set with the indicated value.
In the case of a time pixelation, the value of the source pixelation is the
same as the value to be added. To read a different source pixel value, use the
--source flag.
The flag --val is required and sets the value used for the pixels to be
assigned. If the pixel has a value already, the largest value will be stored.
With the flag --only, only the pixels defined with the given value in the
destination pixelation will be modified.
The argument of the command is the file that contains the time pixelation. If
the files does not exist, it will create a new file, if it exists, pixels will
be added to that file.
By default, all time stages of the source model (as defined by --in) will be
used. With the flags --from and --to, it will use only the stages inside of the
indicated ages (in million years). Another possibility is using the flag --at
to set a particular time stage.
`,
SetFlags: setFlags,
Run: run,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.