Generate a new dataset from a source dataset using FIR Filters.
This tool uses the vrtlib to create a kernel filtered source and “gdal_translate” to built the destination dataset according to the parameters set by the user.
The tool perform the following operations:
- temporary vrt dataset creation[default: the entire image is processed]
- output format conversion [default: the entire image is processed]
- output image resizing (optional)
Almost all parameters are configurable and have defaults suitable for common tasks.
Functions
| add_inSection_option(parser) | It defines the input specific options |
| add_outSection_option(parser) | It defines the output specific options |
| add_specSection_option(parser) | It defines the tool specific options |
| check_inopts(options) | It validates the input options |
| check_outopts(options) | It checks the output options |
| check_specopts(options) | It checks the output options |
| check_tool_args(args, parser) | check the correct number of compulsory command line fields |
| choose_method(option, opt_str, value, parser) | It checks if a selection method is present. |
| convert_in_off(coors) | It converts from (xmi,ymin,xmax,ymax) in (xoff,yoff,xsize,ysize) |
| default_transftype(gdtypes, pixfun) | Compute the most appropriate transfer data type for the output image. |
| fixDerivedRasterband(tree, pixfunc[, rbInd, ...]) | It puts in the correct format the derived rasterband in the xml structure. |
| gdal_outformats() | Build dictionary with all drivers supported by GDAL |
| handle_cmdline() | Handle command line arguments and options |
| issubdataset_(fname) | |
| main() | Main function for FIR filtered generation. |
| parse_tree(source[, parser]) | |
| process(options, args, tmpfileobj) | |
| translate(options, args, tmpfileobj) | |
| translatecmd(options, src, dst) | Generate the command line for “gdal_translate” execution. |
Classes
| OptionGroup(parser, title[, description]) | |
| OptionParser([usage, option_list, ...]) | Class attributes: |
Exceptions
| OptionValueError(msg) | Raised if an invalid option value is encountered on the command |
check the correct number of compulsory command line fields
6 at least for all pixel functions : * pixel function * source 1 dataset * source 1 raster band * source 2 dataset * source 2 raster band * output filename
for ‘sum’ args could be more than 6: * base 6 args * other source dataset(s) * other raster band(s)
Compute the most appropriate transfer data type for the output image.
| Parameters : |
|---|
Main function for FIR filtered generation.
Uses “sys.argv” for getting inputs.
Generate the command line for “gdal_translate” execution.
The command line in returned in form of list of strings.