gdalextras.gxbaui

GDAL Band Arithmetic tool.

Functions

Trait(*value_type, **metadata) Creates a trait definition.
on_trait_change(name, *names[, post_init]) Marks the following method definition as being a handler for the extended trait change specified by name(s).

Classes

BAOutputComponent
BaseBAComponent Base class for all Band Arithmetic tool descriptors.
Bool(**metadata[, default_value]) Defines a trait whose value must be a Python boolean using a C-level
DatasetAndBand Trait with dataset and band
DoubleInputBAComponent
Enum(*args, **metadata) Defines a trait whose value must be one of a specified set of values
GXDoubleInputBA([cwd, env, isextraenv, ...])
GXMultipleInputBA([cwd, env, isextraenv, ...]) Tool descriptor for double input band arithmetic tools.
GXSingleInputBA([cwd, env, isextraenv, ...]) Tool descriptor for single input band arithmetic tools.
GdalInputComponent Input section component in tool configuration
GdalMultipleInputComponent Double Input section component in tool configuration
GdalOutputComponent Output section component in tool configuration
GdalSpecificComponent Specific section component in tool configuration
GdalToolDescriptor([executable, cwd, env, ...]) Base tool configuration and cmdline building for gdal tools.
Group(*values, **traits) Represents a grouping of items in a user interface view.
HGroup(*values, **traits) A group whose items are laid out horizontally.
Instance(**metadata[, klass, factory, args, ...]) Defines a trait whose value must be an instance of a specified class,
Item(**traits[, value]) An element in a Traits-based user interface.
List(**metadata[, trait, value, minlen, ...]) Defines a trait whose value must be a list whose items are of the
MultipleInputBAComponent
MultipleInputBASpecificComponent Specific Traits component for Band Arithmetic operations with two
OptionalTrait(object[, style]) Base Trait component to make an optional Trait Type GUI.
OrderedDict(*args, **kwds)
RangeEditor Editor factory for range editors.
SingleInputBASpecificComponent Specific Traits component for Band Arithmetic operations with only one
Tabbed(*values, **traits) A group that is shown as a tabbed notebook.
TraitsToolDescriptor([executable, cwd, env, ...]) Tool configuration and cmdline building.
View(*values, **traits) A Traits-based user interface for one or more objects.
class gdalextras.gxbaui.BAOutputComponent
extractargs()

Override standard method.

“of” and “ot” parameter form is different from gdal standard one

class gdalextras.gxbaui.BaseBAComponent

Base class for all Band Arithmetic tool descriptors.

This class is meant to be subclassed

extractargs()
class gdalextras.gxbaui.DoubleInputBAComponent
class gdalextras.gxbaui.GXDoubleInputBA(cwd=None, env=None, isextraenv=True, stdout_handler=None, stderr_handler=None, mainwin=None)
class gdalextras.gxbaui.GXMultipleInputBA(cwd=None, env=None, isextraenv=True, stdout_handler=None, stderr_handler=None, mainwin=None)

Tool descriptor for double input band arithmetic tools.

Usage: gxmba.py [options] pixel_function src_dataset dst_dataset

gxmba.py generates images using pixelfuntion src1dataset srcrb1 src2dataset srcrb2 dstfilename

Options:
--version show program’s version number and exit
-h, --help show this help message and exit
-v, --verbose print verbose status messages to stdout
-q, --quiet quiet mode
input options:
-w XMIN YMIN XMAX YMAX, –srcwin=XMIN YMIN XMAX YMAX
in pixel coordinates
–srcwoff=XOFF YOFF XSIZE YSIZE
in pixel coordinates
–projwin=XMIN YMIN XMAX YMAX
in geographicprojected coordinates
–projoff=XOFF YOFF XSIZE YSIZE
in geographicprojected coordinates
output options:
-o OUTRASTERBAND, --outrasterband=OUTRASTERBAND
 rasterband index starting from 1
-f FORMAT, --of=FORMAT
 output file format (see –format) [default=GTiff]
--formats display available output formats
-t TYPE, --ot=TYPE
 output data type (‘Byte’, ‘UInt16’, ‘UInt32’, ‘Int16’, ‘Int32’, ‘Float32’, ‘Float64’)
Band Arithmetic options:
-x TYPE, --transfer-type=TYPE
 output data type (‘Byte’, ‘UInt16’, ‘UInt32’, ‘Int16’, ‘Int32’, ‘Float32’, ‘Float64’)
extractargs()

Return args for GXDoubleInputBA tool.

This method does not use inputsection.extractargs, because params order is different from it. Override standard method

setup_tool(datasetname, operation='', workdir='/home/valentino', findoverview_cb=None, area_selected=None)
Initialize a GXDoubleInputBA window
trait_view(parent=None)
class gdalextras.gxbaui.GXSingleInputBA(cwd=None, env=None, isextraenv=True, stdout_handler=None, stderr_handler=None, mainwin=None)

Tool descriptor for single input band arithmetic tools.

extractargs()

Return args for GXSingleInputBA tool.

Override standard method.

setup_tool(datasetname, operation='', workdir='/home/valentino', findoverview_cb=None, area_selected=None)
Initialize the window that allow user to export an image.
trait_view(parent=None)
class gdalextras.gxbaui.MultipleInputBAComponent
trait_view(parent=None)
class gdalextras.gxbaui.MultipleInputBASpecificComponent
Specific Traits component for Band Arithmetic operations with two input datasets
class gdalextras.gxbaui.SingleInputBASpecificComponent
Specific Traits component for Band Arithmetic operations with only one input dataset

Previous topic

gdalextras.gxba

Next topic

gdalextras.gxfir

This Page