Reference
List of functions
Whitebox.And
Whitebox.Not
Whitebox.Or
Whitebox.absolute_value
Whitebox.adaptive_filter
Whitebox.add
Whitebox.add_point_coordinates_to_table
Whitebox.aggregate_raster
Whitebox.anova
Whitebox.arc_cos
Whitebox.arc_sin
Whitebox.arc_tan
Whitebox.arcosh
Whitebox.arsinh
Whitebox.artanh
Whitebox.ascii_to_las
Whitebox.aspect
Whitebox.atan2
Whitebox.attribute_correlation
Whitebox.attribute_correlation_neighbourhood_analysis
Whitebox.attribute_histogram
Whitebox.attribute_scattergram
Whitebox.average_flowpath_slope
Whitebox.average_normal_vector_angular_deviation
Whitebox.average_overlay
Whitebox.average_upslope_flowpath_length
Whitebox.balance_contrast_enhancement
Whitebox.basins
Whitebox.bilateral_filter
Whitebox.block_maximum_gridding
Whitebox.block_minimum_gridding
Whitebox.boundary_shape_complexity
Whitebox.breach_depressions
Whitebox.breach_depressions_least_cost
Whitebox.breach_single_cell_pits
Whitebox.buffer_raster
Whitebox.burn_streams_at_roads
Whitebox.ceil
Whitebox.centroid
Whitebox.centroid_vector
Whitebox.change_vector_analysis
Whitebox.circular_variance_of_aspect
Whitebox.classify_buildings_in_lidar
Whitebox.classify_overlap_points
Whitebox.clean_vector
Whitebox.clip
Whitebox.clip_lidar_to_polygon
Whitebox.clip_raster_to_polygon
Whitebox.closing
Whitebox.clump
Whitebox.compactness_ratio
Whitebox.conditional_evaluation
Whitebox.conservative_smoothing_filter
Whitebox.construct_vector_tin
Whitebox.contours_from_points
Whitebox.contours_from_raster
Whitebox.convert_nodata_to_zero
Whitebox.convert_raster_format
Whitebox.corner_detection
Whitebox.correct_vignetting
Whitebox.cos
Whitebox.cosh
Whitebox.cost_allocation
Whitebox.cost_distance
Whitebox.cost_pathway
Whitebox.count_if
Whitebox.create_colour_composite
Whitebox.create_hexagonal_vector_grid
Whitebox.create_plane
Whitebox.create_rectangular_vector_grid
Whitebox.crispness_index
Whitebox.cross_tabulation
Whitebox.csv_points_to_vector
Whitebox.cumulative_distribution
Whitebox.d8_flow_accumulation
Whitebox.d8_mass_flux
Whitebox.d8_pointer
Whitebox.d_inf_flow_accumulation
Whitebox.d_inf_mass_flux
Whitebox.d_inf_pointer
Whitebox.decrement
Whitebox.default_callback
Whitebox.depth_in_sink
Whitebox.dev_from_mean_elev
Whitebox.diff_from_mean_elev
Whitebox.diff_of_gaussian_filter
Whitebox.difference
Whitebox.direct_decorrelation_stretch
Whitebox.directional_relief
Whitebox.dissolve
Whitebox.distance_to_outlet
Whitebox.diversity_filter
Whitebox.divide
Whitebox.downslope_distance_to_stream
Whitebox.downslope_flowpath_length
Whitebox.downslope_index
Whitebox.edge_contamination
Whitebox.edge_density
Whitebox.edge_preserving_mean_filter
Whitebox.edge_proportion
Whitebox.elev_above_pit
Whitebox.elev_percentile
Whitebox.elev_relative_to_min_max
Whitebox.elev_relative_to_watershed_min_max
Whitebox.elevation_above_stream
Whitebox.elevation_above_stream_euclidean
Whitebox.eliminate_coincident_points
Whitebox.elongation_ratio
Whitebox.embankment_mapping
Whitebox.emboss_filter
Whitebox.equal_to
Whitebox.erase
Whitebox.erase_polygon_from_lidar
Whitebox.erase_polygon_from_raster
Whitebox.euclidean_allocation
Whitebox.euclidean_distance
Whitebox.exp
Whitebox.exp2
Whitebox.export_table_to_csv
Whitebox.exposure_towards_wind_flux
Whitebox.extend_vector_lines
Whitebox.extract_nodes
Whitebox.extract_raster_values_at_points
Whitebox.extract_streams
Whitebox.extract_valleys
Whitebox.farthest_channel_head
Whitebox.fast_almost_gaussian_filter
Whitebox.fd8_flow_accumulation
Whitebox.fd8_pointer
Whitebox.feature_preserving_smoothing
Whitebox.fetch_analysis
Whitebox.fill_burn
Whitebox.fill_depressions
Whitebox.fill_depressions_planchon_and_darboux
Whitebox.fill_depressions_wang_and_liu
Whitebox.fill_missing_data
Whitebox.fill_single_cell_pits
Whitebox.filter_lidar_classes
Whitebox.filter_lidar_scan_angles
Whitebox.filter_raster_features_by_area
Whitebox.find_flightline_edge_points
Whitebox.find_lowest_or_highest_points
Whitebox.find_main_stem
Whitebox.find_no_flow_cells
Whitebox.find_parallel_flow
Whitebox.find_patch_or_class_edge_cells
Whitebox.find_ridges
Whitebox.flatten_lakes
Whitebox.flightline_overlap
Whitebox.flip_image
Whitebox.flood_order
Whitebox.floor
Whitebox.flow_accumulation_full_workflow
Whitebox.flow_length_diff
Whitebox.gamma_correction
Whitebox.gaussian_contrast_stretch
Whitebox.gaussian_curvature
Whitebox.gaussian_filter
Whitebox.gaussian_scale_space
Whitebox.geomorphons
Whitebox.greater_than
Whitebox.hack_stream_order
Whitebox.height_above_ground
Whitebox.help
Whitebox.high_pass_filter
Whitebox.high_pass_median_filter
Whitebox.highest_position
Whitebox.hillshade
Whitebox.hillslopes
Whitebox.histogram_equalization
Whitebox.histogram_matching
Whitebox.histogram_matching_two_images
Whitebox.hole_proportion
Whitebox.horizon_angle
Whitebox.horton_stream_order
Whitebox.hypsometric_analysis
Whitebox.hypsometrically_tinted_hillshade
Whitebox.idw_interpolation
Whitebox.ihs_to_rgb
Whitebox.image_autocorrelation
Whitebox.image_correlation
Whitebox.image_correlation_neighbourhood_analysis
Whitebox.image_regression
Whitebox.image_stack_profile
Whitebox.impoundment_size_index
Whitebox.in_place_add
Whitebox.in_place_divide
Whitebox.in_place_multiply
Whitebox.in_place_subtract
Whitebox.increment
Whitebox.insert_dams
Whitebox.integer_division
Whitebox.integral_image
Whitebox.intersect
Whitebox.is_no_data
Whitebox.isobasins
Whitebox.jenson_snap_pour_points
Whitebox.join_tables
Whitebox.k_means_clustering
Whitebox.k_nearest_mean_filter
Whitebox.kappa_index
Whitebox.ks_test_for_normality
Whitebox.laplacian_filter
Whitebox.laplacian_of_gaussian_filter
Whitebox.las_to_ascii
Whitebox.las_to_multipoint_shapefile
Whitebox.las_to_shapefile
Whitebox.las_to_zlidar
Whitebox.layer_footprint
Whitebox.lee_sigma_filter
Whitebox.length_of_upstream_channels
Whitebox.less_than
Whitebox.license
Whitebox.lidar_block_maximum
Whitebox.lidar_block_minimum
Whitebox.lidar_classify_subset
Whitebox.lidar_colourize
Whitebox.lidar_digital_surface_model
Whitebox.lidar_elevation_slice
Whitebox.lidar_ground_point_filter
Whitebox.lidar_hex_binning
Whitebox.lidar_hillshade
Whitebox.lidar_histogram
Whitebox.lidar_idw_interpolation
Whitebox.lidar_info
Whitebox.lidar_join
Whitebox.lidar_kappa_index
Whitebox.lidar_nearest_neighbour_gridding
Whitebox.lidar_point_density
Whitebox.lidar_point_stats
Whitebox.lidar_ransac_planes
Whitebox.lidar_rbf_interpolation
Whitebox.lidar_remove_duplicates
Whitebox.lidar_remove_outliers
Whitebox.lidar_rooftop_analysis
Whitebox.lidar_segmentation
Whitebox.lidar_segmentation_based_filter
Whitebox.lidar_shift
Whitebox.lidar_thin
Whitebox.lidar_thin_high_density
Whitebox.lidar_tile
Whitebox.lidar_tile_footprint
Whitebox.lidar_tin_gridding
Whitebox.lidar_tophat_transform
Whitebox.line_detection_filter
Whitebox.line_intersections
Whitebox.line_thinning
Whitebox.linearity_index
Whitebox.lines_to_polygons
Whitebox.list_tools
Whitebox.list_unique_values
Whitebox.ln
Whitebox.local_quadratic_regression
Whitebox.log10
Whitebox.log2
Whitebox.long_profile
Whitebox.long_profile_from_points
Whitebox.longest_flowpath
Whitebox.lowest_position
Whitebox.majority_filter
Whitebox.map_off_terrain_objects
Whitebox.max
Whitebox.max_absolute_overlay
Whitebox.max_anisotropy_dev
Whitebox.max_anisotropy_dev_signature
Whitebox.max_branch_length
Whitebox.max_difference_from_mean
Whitebox.max_downslope_elev_change
Whitebox.max_elev_dev_signature
Whitebox.max_elevation_deviation
Whitebox.max_overlay
Whitebox.max_upslope_elev_change
Whitebox.max_upslope_flowpath_length
Whitebox.maximal_curvature
Whitebox.maximum_filter
Whitebox.md_inf_flow_accumulation
Whitebox.mean_curvature
Whitebox.mean_filter
Whitebox.median_filter
Whitebox.medoid
Whitebox.merge_line_segments
Whitebox.merge_table_with_csv
Whitebox.merge_vectors
Whitebox.min
Whitebox.min_absolute_overlay
Whitebox.min_downslope_elev_change
Whitebox.min_max_contrast_stretch
Whitebox.min_overlay
Whitebox.minimal_curvature
Whitebox.minimum_bounding_box
Whitebox.minimum_bounding_circle
Whitebox.minimum_bounding_envelope
Whitebox.minimum_convex_hull
Whitebox.minimum_filter
Whitebox.modified_k_means_clustering
Whitebox.modify_no_data_value
Whitebox.modulo
Whitebox.mosaic
Whitebox.mosaic_with_feathering
Whitebox.multi_part_to_single_part
Whitebox.multidirectional_hillshade
Whitebox.multiply
Whitebox.multiscale_elevation_percentile
Whitebox.multiscale_roughness
Whitebox.multiscale_roughness_signature
Whitebox.multiscale_std_dev_normals
Whitebox.multiscale_std_dev_normals_signature
Whitebox.multiscale_topographic_position_image
Whitebox.narrowness_index
Whitebox.natural_neighbour_interpolation
Whitebox.nearest_neighbour_gridding
Whitebox.negate
Whitebox.new_raster_from_base
Whitebox.normal_vectors
Whitebox.normalized_difference_index
Whitebox.not_equal_to
Whitebox.num_downslope_neighbours
Whitebox.num_inflowing_neighbours
Whitebox.num_upslope_neighbours
Whitebox.olympic_filter
Whitebox.opening
Whitebox.paired_sample_t_test
Whitebox.panchromatic_sharpening
Whitebox.patch_orientation
Whitebox.pennock_landform_class
Whitebox.percent_elev_range
Whitebox.percent_equal_to
Whitebox.percent_greater_than
Whitebox.percent_less_than
Whitebox.percentage_contrast_stretch
Whitebox.percentile_filter
Whitebox.perimeter_area_ratio
Whitebox.pick_from_list
Whitebox.plan_curvature
Whitebox.polygon_area
Whitebox.polygon_long_axis
Whitebox.polygon_perimeter
Whitebox.polygon_short_axis
Whitebox.polygonize
Whitebox.polygons_to_lines
Whitebox.power
Whitebox.prewitt_filter
Whitebox.principal_component_analysis
Whitebox.print_geo_tiff_tags
Whitebox.profile
Whitebox.profile_curvature
Whitebox.qin_flow_accumulation
Whitebox.quantiles
Whitebox.quinn_flow_accumulation
Whitebox.radial_basis_function_interpolation
Whitebox.radius_of_gyration
Whitebox.raise_walls
Whitebox.random_field
Whitebox.random_sample
Whitebox.range_filter
Whitebox.raster_area
Whitebox.raster_calculator
Whitebox.raster_cell_assignment
Whitebox.raster_histogram
Whitebox.raster_perimeter
Whitebox.raster_streams_to_vector
Whitebox.raster_summary_stats
Whitebox.raster_to_vector_lines
Whitebox.raster_to_vector_points
Whitebox.raster_to_vector_polygons
Whitebox.rasterize_streams
Whitebox.reciprocal
Whitebox.reclass
Whitebox.reclass_equal_interval
Whitebox.reclass_from_file
Whitebox.reinitialize_attribute_table
Whitebox.related_circumscribing_circle
Whitebox.relative_aspect
Whitebox.relative_topographic_position
Whitebox.remove_off_terrain_objects
Whitebox.remove_polygon_holes
Whitebox.remove_short_streams
Whitebox.remove_spurs
Whitebox.resample
Whitebox.rescale_value_range
Whitebox.rgb_to_ihs
Whitebox.rho8_flow_accumulation
Whitebox.rho8_pointer
Whitebox.roberts_cross_filter
Whitebox.root_mean_square_error
Whitebox.round
Whitebox.ruggedness_index
Whitebox.run_tool
Whitebox.scharr_filter
Whitebox.sediment_transport_index
Whitebox.select_tiles_by_polygon
Whitebox.set_compress_rasters
Whitebox.set_nodata_value
Whitebox.set_verbose_mode
Whitebox.set_whitebox_dir
Whitebox.set_working_dir
Whitebox.shape_complexity_index
Whitebox.shape_complexity_index_raster
Whitebox.shreve_stream_magnitude
Whitebox.sigmoidal_contrast_stretch
Whitebox.sin
Whitebox.single_part_to_multi_part
Whitebox.sinh
Whitebox.sink
Whitebox.slope
Whitebox.slope_vs_elevation_plot
Whitebox.smooth_vectors
Whitebox.snap_pour_points
Whitebox.sobel_filter
Whitebox.spherical_std_dev_of_normals
Whitebox.split_colour_composite
Whitebox.split_vector_lines
Whitebox.split_with_lines
Whitebox.square
Whitebox.square_root
Whitebox.standard_deviation_contrast_stretch
Whitebox.standard_deviation_filter
Whitebox.standard_deviation_of_slope
Whitebox.stochastic_depression_analysis
Whitebox.strahler_order_basins
Whitebox.strahler_stream_order
Whitebox.stream_link_class
Whitebox.stream_link_identifier
Whitebox.stream_link_length
Whitebox.stream_link_slope
Whitebox.stream_power_index
Whitebox.stream_slope_continuous
Whitebox.subbasins
Whitebox.subtract
Whitebox.sum_overlay
Whitebox.surface_area_ratio
Whitebox.symmetrical_difference
Whitebox.tan
Whitebox.tangential_curvature
Whitebox.tanh
Whitebox.thicken_raster_line
Whitebox.time_in_daylight
Whitebox.tin_gridding
Whitebox.to_camelcase
Whitebox.to_degrees
Whitebox.to_radians
Whitebox.to_snakecase
Whitebox.tool_help
Whitebox.tool_parameters
Whitebox.toolbox
Whitebox.tophat_transform
Whitebox.topological_stream_order
Whitebox.total_curvature
Whitebox.total_filter
Whitebox.trace_downslope_flowpaths
Whitebox.trend_surface
Whitebox.trend_surface_vector_points
Whitebox.tributary_identifier
Whitebox.truncate
Whitebox.turning_bands_simulation
Whitebox.two_sample_ks_test
Whitebox.union
Whitebox.unnest_basins
Whitebox.unsharp_masking
Whitebox.unzip
Whitebox.update_nodata_cells
Whitebox.upslope_depression_storage
Whitebox.user_defined_weights_filter
Whitebox.vector_hex_binning
Whitebox.vector_lines_to_raster
Whitebox.vector_points_to_raster
Whitebox.vector_polygons_to_raster
Whitebox.version
Whitebox.view_code
Whitebox.viewshed
Whitebox.visibility_index
Whitebox.voronoi_diagram
Whitebox.watershed
Whitebox.weighted_overlay
Whitebox.weighted_sum
Whitebox.wetness_index
Whitebox.wilcoxon_signed_rank_test
Whitebox.write_function_memory_insertion
Whitebox.xor
Whitebox.z_scores
Whitebox.zlidar_to_las
Whitebox.zonal_statistics
Reference
Whitebox.And
— FunctionAnd(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a logical AND operator on two Boolean raster images.
Arguments
input1
: Input raster file.input2
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.Not
— FunctionNot(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a logical NOT operator on two Boolean raster images.
Arguments
input1
: Input raster file.input2
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.Or
— FunctionOr(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a logical OR operator on two Boolean raster images.
Arguments
input1
: Input raster file.input2
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.absolute_value
— Functionabsolute_value(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Calculates the absolute value of every cell in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.adaptive_filter
— Functionadaptive_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, threshold=2.0, callback::Union{Nothing,Function}=nothing)
Performs an adaptive filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.threshold
: Difference from mean threshold, in standard deviations.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.add
— Functionadd(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs an addition operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.add_point_coordinates_to_table
— Functionadd_point_coordinates_to_table(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Modifies the attribute table of a point vector by adding fields containing each point's X and Y coordinates.
Arguments
i
: Input vector Points file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.aggregate_raster
— Functionaggregate_raster(wbt_info::WhiteboxTools = wbt_info; i, output, agg_factor=2, type="mean", callback::Union{Nothing,Function}=nothing)
Aggregates a raster to a lower resolution.
Arguments
i
: Input raster file.output
: Output raster file.agg_factor
: Aggregation factor, in pixels.type
: Statistic used to fill output pixels.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.anova
— Functionanova(wbt_info::WhiteboxTools = wbt_info; i, features, output, callback::Union{Nothing,Function}=nothing)
Performs an analysis of variance (ANOVA) test on a raster dataset.
Arguments
i
: Input raster file.features
: Feature definition (or class) raster.output
: Output HTML file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.arc_cos
— Functionarc_cos(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the inverse cosine (arccos) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.arc_sin
— Functionarc_sin(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the inverse sine (arcsin) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.arc_tan
— Functionarc_tan(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the inverse tangent (arctan) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.arcosh
— Functionarcosh(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the inverse hyperbolic cosine (arcosh) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.arsinh
— Functionarsinh(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the inverse hyperbolic sine (arsinh) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.artanh
— Functionartanh(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the inverse hyperbolic tangent (arctanh) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.ascii_to_las
— Functionascii_to_las(wbt_info::WhiteboxTools = wbt_info; inputs, pattern, proj=nothing, callback::Union{Nothing,Function}=nothing)
Converts one or more ASCII files containing LiDAR points into LAS files.
Arguments
inputs
: Input LiDAR ASCII files (.csv).pattern
: Input field pattern.proj
: Well-known-text string or EPSG code describing projection.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.aspect
— Functionaspect(wbt_info::WhiteboxTools = wbt_info; dem, output, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates an aspect raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.atan2
— Functionatan2(wbt_info::WhiteboxTools = wbt_info; input_y, input_x, output, callback::Union{Nothing,Function}=nothing)
Returns the 2-argument inverse tangent (atan2).
Arguments
input_y
: Input y raster file or constant value (rise).input_x
: Input x raster file or constant value (run).output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.attribute_correlation
— Functionattribute_correlation(wbt_info::WhiteboxTools = wbt_info; i, output=nothing, callback::Union{Nothing,Function}=nothing)
Performs a correlation analysis on attribute fields from a vector database.
Arguments
i
: Input vector file.output
: Output HTML file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.attribute_correlation_neighbourhood_analysis
— Functionattribute_correlation_neighbourhood_analysis(wbt_info::WhiteboxTools = wbt_info; i, field1, field2, radius=nothing, min_points=nothing, stat="pearson", callback::Union{Nothing,Function}=nothing)
Performs a correlation on two input vector attributes within a neighbourhood search windows.
Arguments
i
: Input vector file.field1
: First input field name (dependent variable) in attribute table.field2
: Second input field name (independent variable) in attribute table.radius
: Search Radius (in map units).min_points
: Minimum number of points.stat
: Correlation type; one of 'pearson' (default) and 'spearman'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.attribute_histogram
— Functionattribute_histogram(wbt_info::WhiteboxTools = wbt_info; i, field, output, callback::Union{Nothing,Function}=nothing)
Creates a histogram for the field values of a vector's attribute table.
Arguments
i
: Input raster file.field
: Input field name in attribute table.output
: Output HTML file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.attribute_scattergram
— Functionattribute_scattergram(wbt_info::WhiteboxTools = wbt_info; i, fieldx, fieldy, output, trendline=false, callback::Union{Nothing,Function}=nothing)
Creates a scattergram for two field values of a vector's attribute table.
Arguments
i
: Input raster file.fieldx
: Input field name in attribute table for the x-axis.fieldy
: Input field name in attribute table for the y-axis.output
: Output HTML file (default name will be based on input file if unspecified).trendline
: Draw the trendline.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.average_flowpath_slope
— Functionaverage_flowpath_slope(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Measures the average slope gradient from each grid cell to all upslope divide cells.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.average_normal_vector_angular_deviation
— Functionaverage_normal_vector_angular_deviation(wbt_info::WhiteboxTools = wbt_info; dem, output, filter=11, callback::Union{Nothing,Function}=nothing)
Calculates the circular variance of aspect at a scale for a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.filter
: Size of the filter kernel.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.average_overlay
— Functionaverage_overlay(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Calculates the average for each grid cell from a group of raster images.
Arguments
inputs
: Input raster files.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.average_upslope_flowpath_length
— Functionaverage_upslope_flowpath_length(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Measures the average length of all upslope flowpaths draining each grid cell.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.balance_contrast_enhancement
— Functionbalance_contrast_enhancement(wbt_info::WhiteboxTools = wbt_info; i, output, band_mean=100.0, callback::Union{Nothing,Function}=nothing)
Performs a balance contrast enhancement on a colour-composite image of multispectral data.
Arguments
i
: Input colour composite image file.output
: Output raster file.band_mean
: Band mean value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.basins
— Functionbasins(wbt_info::WhiteboxTools = wbt_info; d8_pntr, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Identifies drainage basins that drain to the DEM edge.
Arguments
d8_pntr
: Input raster D8 pointer file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.bilateral_filter
— Functionbilateral_filter(wbt_info::WhiteboxTools = wbt_info; i, output, sigma_dist=0.75, sigma_int=1.0, callback::Union{Nothing,Function}=nothing)
A bilateral filter is an edge-preserving smoothing filter introduced by Tomasi and Manduchi (1998).
Arguments
i
: Input raster file.output
: Output raster file.sigma_dist
: Standard deviation in distance in pixels.sigma_int
: Standard deviation in intensity in pixels.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.block_maximum_gridding
— Functionblock_maximum_gridding(wbt_info::WhiteboxTools = wbt_info; i, field, output, use_z=false, cell_size=nothing, base=nothing, callback::Union{Nothing,Function}=nothing)
Creates a raster grid based on a set of vector points and assigns grid values using a block maximum scheme.
Arguments
i
: Input vector Points file.field
: Input field name in attribute table.use_z
: Use z-coordinate instead of field?.output
: Output raster file.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.block_minimum_gridding
— Functionblock_minimum_gridding(wbt_info::WhiteboxTools = wbt_info; i, field, output, use_z=false, cell_size=nothing, base=nothing, callback::Union{Nothing,Function}=nothing)
Creates a raster grid based on a set of vector points and assigns grid values using a block minimum scheme.
Arguments
i
: Input vector Points file.field
: Input field name in attribute table.use_z
: Use z-coordinate instead of field?.output
: Output raster file.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.boundary_shape_complexity
— Functionboundary_shape_complexity(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Calculates the complexity of the boundaries of raster polygons.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.breach_depressions
— Functionbreach_depressions(wbt_info::WhiteboxTools = wbt_info; dem, output, max_depth=nothing, max_length=nothing, flat_increment=nothing, fill_pits=false, callback::Union{Nothing,Function}=nothing)
Breaches all of the depressions in a DEM using Lindsay's (2016) algorithm. This should be preferred over depression filling in most cases.
Arguments
dem
: Input raster DEM file.output
: Output raster file.max_depth
: Optional maximum breach depth (default is Inf).max_length
: Optional maximum breach channel length (in grid cells; default is Inf).flat_increment
: Optional elevation increment applied to flat areas.fill_pits
: Optional flag indicating whether to fill single-cell pits.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.breach_depressions_least_cost
— Functionbreach_depressions_least_cost(wbt_info::WhiteboxTools = wbt_info; dem, output, dist, max_cost=nothing, min_dist=true, flat_increment=nothing, fill=true, callback::Union{Nothing,Function}=nothing)
Breaches the depressions in a DEM using a least-cost pathway method.
Arguments
dem
: Input raster DEM file.output
: Output raster file.dist
: Maximum search distance for breach paths in cells.max_cost
: Optional maximum breach cost (default is Inf).min_dist
: Optional flag indicating whether to minimize breach distances.flat_increment
: Optional elevation increment applied to flat areas.fill
: Optional flag indicating whether to fill any remaining unbreached depressions.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.breach_single_cell_pits
— Functionbreach_single_cell_pits(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Removes single-cell pits from an input DEM by breaching.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.buffer_raster
— Functionbuffer_raster(wbt_info::WhiteboxTools = wbt_info; i, output, size, gridcells=false, callback::Union{Nothing,Function}=nothing)
Maps a distance-based buffer around each non-background (non-zero/non-nodata) grid cell in an input image.
Arguments
i
: Input raster file.output
: Output raster file.size
: Buffer size.gridcells
: Optional flag to indicate that the 'size' threshold should be measured in grid cells instead of the default map units.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.burn_streams_at_roads
— Functionburn_streams_at_roads(wbt_info::WhiteboxTools = wbt_info; dem, streams, roads, output, width=nothing, callback::Union{Nothing,Function}=nothing)
Burns-in streams at the sites of road embankments.
Arguments
dem
: Input raster digital elevation model (DEM) file.streams
: Input vector streams file.roads
: Input vector roads file.output
: Output raster file.width
: Maximum road embankment width, in map units.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.ceil
— Functionceil(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the smallest (closest to negative infinity) value that is greater than or equal to the values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.centroid
— Functioncentroid(wbt_info::WhiteboxTools = wbt_info; i, output, text_output=false, callback::Union{Nothing,Function}=nothing)
Calculates the centroid, or average location, of raster polygon objects.
Arguments
i
: Input raster file.output
: Output raster file.text_output
: Optional text output.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.centroid_vector
— Functioncentroid_vector(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Identifies the centroid point of a vector polyline or polygon feature or a group of vector points.
Arguments
i
: Input vector file.output
: Output vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.change_vector_analysis
— Functionchange_vector_analysis(wbt_info::WhiteboxTools = wbt_info; date1, date2, magnitude, direction, callback::Union{Nothing,Function}=nothing)
Performs a change vector analysis on a two-date multi-spectral dataset.
Arguments
date1
: Input raster files for the earlier date.date2
: Input raster files for the later date.magnitude
: Output vector magnitude raster file.direction
: Output vector Direction raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.circular_variance_of_aspect
— Functioncircular_variance_of_aspect(wbt_info::WhiteboxTools = wbt_info; dem, output, filter=11, callback::Union{Nothing,Function}=nothing)
Calculates the circular variance of aspect at a scale for a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.filter
: Size of the filter kernel.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.classify_buildings_in_lidar
— Functionclassify_buildings_in_lidar(wbt_info::WhiteboxTools = wbt_info; i, buildings, output, callback::Union{Nothing,Function}=nothing)
Reclassifies a LiDAR points that lie within vector building footprints.
Arguments
i
: Input LiDAR file.buildings
: Input vector polygons file.output
: Output LiDAR file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.classify_overlap_points
— Functionclassify_overlap_points(wbt_info::WhiteboxTools = wbt_info; i, output, resolution=2.0, filter=false, callback::Union{Nothing,Function}=nothing)
Classifies or filters LAS points in regions of overlapping flight lines.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.resolution
: The size of the square area used to evaluate nearby points in the LiDAR data.filter
: Filter out points from overlapping flightlines? If false, overlaps will simply be classified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.clean_vector
— Functionclean_vector(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Removes null features and lines/polygons with fewer than the required number of vertices.
Arguments
i
: Input vector file.output
: Output vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.clip
— Functionclip(wbt_info::WhiteboxTools = wbt_info; i, clip, output, callback::Union{Nothing,Function}=nothing)
Extract all the features, or parts of features, that overlap with the features of the clip vector.
Arguments
i
: Input vector file.clip
: Input clip polygon vector file.output
: Output vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.clip_lidar_to_polygon
— Functionclip_lidar_to_polygon(wbt_info::WhiteboxTools = wbt_info; i, polygons, output, callback::Union{Nothing,Function}=nothing)
Clips a LiDAR point cloud to a vector polygon or polygons.
Arguments
i
: Input LiDAR file.polygons
: Input vector polygons file.output
: Output LiDAR file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.clip_raster_to_polygon
— Functionclip_raster_to_polygon(wbt_info::WhiteboxTools = wbt_info; i, polygons, output, maintain_dimensions=false, callback::Union{Nothing,Function}=nothing)
Clips a raster to a vector polygon.
Arguments
i
: Input raster file.polygons
: Input vector polygons file.output
: Output raster file.maintain_dimensions
: Maintain input raster dimensions?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.closing
— Functionclosing(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
A closing is a mathematical morphology operation involving an erosion (min filter) of a dilation (max filter) set.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.clump
— Functionclump(wbt_info::WhiteboxTools = wbt_info; i, output, diag=true, zero_back=false, callback::Union{Nothing,Function}=nothing)
Groups cells that form discrete areas, assigning them unique identifiers.
Arguments
i
: Input raster file.output
: Output raster file.diag
: Flag indicating whether diagonal connections should be considered.zero_back
: Flag indicating whether zero values should be treated as a background.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.compactness_ratio
— Functioncompactness_ratio(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates the compactness ratio (A/P), a measure of shape complexity, for vector polygons.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.conditional_evaluation
— Functionconditional_evaluation(wbt_info::WhiteboxTools = wbt_info; i, output, statement="", true=nothing, false=nothing, callback::Union{Nothing,Function}=nothing)
This tool performs a conditional evaluation (if-then-else) operation on a raster.
Arguments
i
: Name of the input raster file.statement
: Conditional statement e.g. value > 35.0. This statement must be a valid Rust statement.True
: Value where condition evaluates TRUE (input raster or constant value).False
: Value where condition evaluates FALSE (input raster or constant value).output
: Name of the output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.conservative_smoothing_filter
— Functionconservative_smoothing_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=3, filtery=3, callback::Union{Nothing,Function}=nothing)
Performs a conservative-smoothing filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.construct_vector_tin
— Functionconstruct_vector_tin(wbt_info::WhiteboxTools = wbt_info; i, output, field=nothing, use_z=false, max_triangle_edge_length=nothing, callback::Union{Nothing,Function}=nothing)
Creates a vector triangular irregular network (TIN) for a set of vector points.
Arguments
i
: Input vector points file.field
: Input field name in attribute table.use_z
: Use the 'z' dimension of the Shapefile's geometry instead of an attribute field?.output
: Output vector polygon file.max_triangle_edge_length
: Optional maximum triangle edge length; triangles larger than this size will not be gridded.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.contours_from_points
— Functioncontours_from_points(wbt_info::WhiteboxTools = wbt_info; i, output, field=nothing, use_z=false, max_triangle_edge_length=nothing, interval=10.0, base=0.0, smooth=5, callback::Union{Nothing,Function}=nothing)
Creates a contour coverage from a set of input points.
Arguments
i
: Input vector points file.field
: Input field name in attribute table.use_z
: Use the 'z' dimension of the Shapefile's geometry instead of an attribute field?.output
: Output vector lines file.max_triangle_edge_length
: Optional maximum triangle edge length; triangles larger than this size will not be gridded.interval
: Contour interval.base
: Base contour height.smooth
: Smoothing filter size (in num. points), e.g. 3, 5, 7, 9, 11.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.contours_from_raster
— Functioncontours_from_raster(wbt_info::WhiteboxTools = wbt_info; i, output, interval=10.0, base=0.0, smooth=9, tolerance=10.0, callback::Union{Nothing,Function}=nothing)
Derives a vector contour coverage from a raster surface.
Arguments
i
: Input surface raster file.output
: Output vector contour file.interval
: Contour interval.base
: Base contour height.smooth
: Smoothing filter size (in num. points), e.g. 3, 5, 7, 9, 11.tolerance
: Tolerance factor, in degrees (0-45); determines generalization level.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.convert_nodata_to_zero
— Functionconvert_nodata_to_zero(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts nodata values in a raster to zero.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.convert_raster_format
— Functionconvert_raster_format(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts raster data from one format to another.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.corner_detection
— Functioncorner_detection(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Identifies corner patterns in boolean images using hit-and-miss pattern matching.
Arguments
i
: Input boolean image.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.correct_vignetting
— Functioncorrect_vignetting(wbt_info::WhiteboxTools = wbt_info; i, pp, output, focal_length=304.8, image_width=228.6, n=4.0, callback::Union{Nothing,Function}=nothing)
Corrects the darkening of images towards corners.
Arguments
i
: Input raster file.pp
: Input principal point file.output
: Output raster file.focal_length
: Camera focal length, in millimeters.image_width
: Distance between photograph edges, in millimeters.n
: The 'n' parameter.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.cos
— Functioncos(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the cosine (cos) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.cosh
— Functioncosh(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the hyperbolic cosine (cosh) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.cost_allocation
— Functioncost_allocation(wbt_info::WhiteboxTools = wbt_info; source, backlink, output, callback::Union{Nothing,Function}=nothing)
Identifies the source cell to which each grid cell is connected by a least-cost pathway in a cost-distance analysis.
Arguments
source
: Input source raster file.backlink
: Input backlink raster file generated by the cost-distance tool.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.cost_distance
— Functioncost_distance(wbt_info::WhiteboxTools = wbt_info; source, cost, out_accum, out_backlink, callback::Union{Nothing,Function}=nothing)
Performs cost-distance accumulation on a cost surface and a group of source cells.
Arguments
source
: Input source raster file.cost
: Input cost (friction) raster file.out_accum
: Output cost accumulation raster file.out_backlink
: Output backlink raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.cost_pathway
— Functioncost_pathway(wbt_info::WhiteboxTools = wbt_info; destination, backlink, output, zero_background=false, callback::Union{Nothing,Function}=nothing)
Performs cost-distance pathway analysis using a series of destination grid cells.
Arguments
destination
: Input destination raster file.backlink
: Input backlink raster file generated by the cost-distance tool.output
: Output cost pathway raster file.zero_background
: Flag indicating whether zero values should be treated as a background.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.count_if
— Functioncount_if(wbt_info::WhiteboxTools = wbt_info; inputs, output, value, callback::Union{Nothing,Function}=nothing)
Counts the number of occurrences of a specified value in a cell-stack of rasters.
Arguments
inputs
: Input raster files.output
: Output raster file.value
: Search value (e.g. countif value = 5.0).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.create_colour_composite
— Functioncreate_colour_composite(wbt_info::WhiteboxTools = wbt_info; red, green, blue, output, opacity=nothing, enhance=true, zeros=false, callback::Union{Nothing,Function}=nothing)
Creates a colour-composite image from three bands of multispectral imagery.
Arguments
red
: Input red band image file.green
: Input green band image file.blue
: Input blue band image file.opacity
: Input opacity band image file (optional).output
: Output colour composite file.enhance
: Optional flag indicating whether a balance contrast enhancement is performed.zeros
: Optional flag to indicate if zeros are nodata values.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.create_hexagonal_vector_grid
— Functioncreate_hexagonal_vector_grid(wbt_info::WhiteboxTools = wbt_info; i, output, width, orientation="horizontal", callback::Union{Nothing,Function}=nothing)
Creates a hexagonal vector grid.
Arguments
i
: Input base file.output
: Output vector polygon file.width
: The grid cell width.orientation
: Grid Orientation, 'horizontal' or 'vertical'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.create_plane
— Functioncreate_plane(wbt_info::WhiteboxTools = wbt_info; base, output, gradient=15.0, aspect=90.0, constant=0.0, callback::Union{Nothing,Function}=nothing)
Creates a raster image based on the equation for a simple plane.
Arguments
base
: Input base raster file.output
: Output raster file.gradient
: Slope gradient in degrees (-85.0 to 85.0).aspect
: Aspect (direction) in degrees clockwise from north (0.0-360.0).constant
: Constant value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.create_rectangular_vector_grid
— Functioncreate_rectangular_vector_grid(wbt_info::WhiteboxTools = wbt_info; i, output, width, height, xorig=0, yorig=0, callback::Union{Nothing,Function}=nothing)
Creates a rectangular vector grid.
Arguments
i
: Input base file.output
: Output vector polygon file.width
: The grid cell width.height
: The grid cell height.xorig
: The grid origin x-coordinate.yorig
: The grid origin y-coordinate.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.crispness_index
— Functioncrispness_index(wbt_info::WhiteboxTools = wbt_info; i, output=nothing, callback::Union{Nothing,Function}=nothing)
Calculates the Crispness Index, which is used to quantify how crisp (or conversely how fuzzy) a probability image is.
Arguments
i
: Input raster file.output
: Optional output html file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.cross_tabulation
— Functioncross_tabulation(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a cross-tabulation on two categorical images.
Arguments
input1
: Input raster file 1.input2
: Input raster file 1.output
: Output HTML file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.csv_points_to_vector
— Functioncsv_points_to_vector(wbt_info::WhiteboxTools = wbt_info; i, output, xfield=0, yfield=1, epsg=nothing, callback::Union{Nothing,Function}=nothing)
Converts a CSV text file to vector points.
Arguments
i
: Input CSV file (i.e. source of data to be imported).output
: Output vector file.xfield
: X field number (e.g. 0 for first field).yfield
: Y field number (e.g. 1 for second field).epsg
: EPSG projection (e.g. 2958).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.cumulative_distribution
— Functioncumulative_distribution(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts a raster image to its cumulative distribution function.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.d8_flow_accumulation
— Functiond8_flow_accumulation(wbt_info::WhiteboxTools = wbt_info; i, output, out_type="cells", log=false, clip=false, pntr=false, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Calculates a D8 flow accumulation raster from an input DEM or flow pointer.
Arguments
i
: Input raster DEM or D8 pointer file.output
: Output raster file.out_type
: Output type; one of 'cells' (default), 'catchment area', and 'specific contributing area'.log
: Optional flag to request the output be log-transformed.clip
: Optional flag to request clipping the display max by 1%.pntr
: Is the input raster a D8 flow pointer rather than a DEM?.esri_pntr
: Input D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.d8_mass_flux
— Functiond8_mass_flux(wbt_info::WhiteboxTools = wbt_info; dem, loading, efficiency, absorption, output, callback::Union{Nothing,Function}=nothing)
Performs a D8 mass flux calculation.
Arguments
dem
: Input raster DEM file.loading
: Input loading raster file.efficiency
: Input efficiency raster file.absorption
: Input absorption raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.d8_pointer
— Functiond8_pointer(wbt_info::WhiteboxTools = wbt_info; dem, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Calculates a D8 flow pointer raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.d_inf_flow_accumulation
— Functiond_inf_flow_accumulation(wbt_info::WhiteboxTools = wbt_info; i, output, out_type="Specific Contributing Area", threshold=nothing, log=false, clip=false, pntr=false, callback::Union{Nothing,Function}=nothing)
Calculates a D-infinity flow accumulation raster from an input DEM.
Arguments
i
: Input raster DEM or D-infinity pointer file.output
: Output raster file.out_type
: Output type; one of 'cells', 'sca' (default), and 'ca'.threshold
: Optional convergence threshold parameter, in grid cells; default is infinity.log
: Optional flag to request the output be log-transformed.clip
: Optional flag to request clipping the display max by 1%.pntr
: Is the input raster a D-infinity flow pointer rather than a DEM?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.d_inf_mass_flux
— Functiond_inf_mass_flux(wbt_info::WhiteboxTools = wbt_info; dem, loading, efficiency, absorption, output, callback::Union{Nothing,Function}=nothing)
Performs a D-infinity mass flux calculation.
Arguments
dem
: Input raster DEM file.loading
: Input loading raster file.efficiency
: Input efficiency raster file.absorption
: Input absorption raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.d_inf_pointer
— Functiond_inf_pointer(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculates a D-infinity flow pointer (flow direction) raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.decrement
— Functiondecrement(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Decreases the values of each grid cell in an input raster by 1.0 (see also InPlaceSubtract).
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.default_callback
— Methoddefault_callback(value)
A simple default callback that outputs using the print function. When tools are called without providing a custom callback, this function will be used to print to standard output.
Whitebox.depth_in_sink
— Functiondepth_in_sink(wbt_info::WhiteboxTools = wbt_info; dem, output, zero_background=false, callback::Union{Nothing,Function}=nothing)
Measures the depth of sinks (depressions) in a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.zero_background
: Flag indicating whether the background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.dev_from_mean_elev
— Functiondev_from_mean_elev(wbt_info::WhiteboxTools = wbt_info; dem, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Calculates deviation from mean elevation.
Arguments
dem
: Input raster DEM file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.diff_from_mean_elev
— Functiondiff_from_mean_elev(wbt_info::WhiteboxTools = wbt_info; dem, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Calculates difference from mean elevation (equivalent to a high-pass filter).
Arguments
dem
: Input raster DEM file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.diff_of_gaussian_filter
— Functiondiff_of_gaussian_filter(wbt_info::WhiteboxTools = wbt_info; i, output, sigma1=2.0, sigma2=4.0, callback::Union{Nothing,Function}=nothing)
Performs a Difference of Gaussian (DoG) filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.sigma1
: Standard deviation distance in pixels.sigma2
: Standard deviation distance in pixels.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.difference
— Functiondifference(wbt_info::WhiteboxTools = wbt_info; i, overlay, output, callback::Union{Nothing,Function}=nothing)
Outputs the features that occur in one of the two vector inputs but not both, i.e. no overlapping features.
Arguments
i
: Input vector file.overlay
: Input overlay vector file.output
: Output vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.direct_decorrelation_stretch
— Functiondirect_decorrelation_stretch(wbt_info::WhiteboxTools = wbt_info; i, output, k=0.5, clip=1.0, callback::Union{Nothing,Function}=nothing)
Performs a direct decorrelation stretch enhancement on a colour-composite image of multispectral data.
Arguments
i
: Input colour composite image file.output
: Output raster file.k
: Achromatic factor (k) ranges between 0 (no effect) and 1 (full saturation stretch), although typical values range from 0.3 to 0.7.clip
: Optional percent to clip the upper tail by during the stretch.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.directional_relief
— Functiondirectional_relief(wbt_info::WhiteboxTools = wbt_info; dem, output, azimuth=0.0, max_dist=nothing, callback::Union{Nothing,Function}=nothing)
Calculates relief for cells in an input DEM for a specified direction.
Arguments
dem
: Input raster DEM file.output
: Output raster file.azimuth
: Wind azimuth in degrees.max_dist
: Optional maximum search distance (unspecified if none; in xy units).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.dissolve
— Functiondissolve(wbt_info::WhiteboxTools = wbt_info; i, output, field=nothing, snap=0.0, callback::Union{Nothing,Function}=nothing)
Removes the interior, or shared, boundaries within a vector polygon coverage.
Arguments
i
: Input vector file.field
: Dissolve field attribute (optional).output
: Output vector file.snap
: Snap tolerance.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.distance_to_outlet
— Functiondistance_to_outlet(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Calculates the distance of stream grid cells to the channel network outlet cell.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.diversity_filter
— Functiondiversity_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Assigns each cell in the output grid the number of different values in a moving window centred on each grid cell in the input raster.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.divide
— Functiondivide(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a division operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.downslope_distance_to_stream
— Functiondownslope_distance_to_stream(wbt_info::WhiteboxTools = wbt_info; dem, streams, output, dinf=false, callback::Union{Nothing,Function}=nothing)
Measures distance to the nearest downslope stream cell.
Arguments
dem
: Input raster DEM file.streams
: Input raster streams file.output
: Output raster file.dinf
: Use the D-infinity flow algorithm instead of D8?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.downslope_flowpath_length
— Functiondownslope_flowpath_length(wbt_info::WhiteboxTools = wbt_info; d8_pntr, output, watersheds=nothing, weights=nothing, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Calculates the downslope flowpath length from each cell to basin outlet.
Arguments
d8_pntr
: Input D8 pointer raster file.watersheds
: Optional input watershed raster file.weights
: Optional input weights raster file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.downslope_index
— Functiondownslope_index(wbt_info::WhiteboxTools = wbt_info; dem, output, drop=2.0, out_type="tangent", callback::Union{Nothing,Function}=nothing)
Calculates the Hjerdt et al. (2004) downslope index.
Arguments
dem
: Input raster DEM file.output
: Output raster file.drop
: Vertical drop value (default is 2.0).out_type
: Output type, options include 'tangent', 'degrees', 'radians', 'distance' (default is 'tangent').callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.edge_contamination
— Functionedge_contamination(wbt_info::WhiteboxTools = wbt_info; dem, output, flow_type="mfd", zfactor="", callback::Union{Nothing,Function}=nothing)
This tool identifies grid cells within an input DEM that may be impacted by edge contamination for hydrological applications.
Arguments
dem
: Name of the input DEM raster file; must be depressionless.output
: Name of the output raster file.flow_type
: Flow algorithm type, one of 'd8', 'mfd', or 'dinf'.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.edge_density
— Functionedge_density(wbt_info::WhiteboxTools = wbt_info; dem, output, filter=11, norm_diff=5.0, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates the density of edges, or breaks-in-slope within DEMs.
Arguments
dem
: Input raster DEM file.output
: Output raster file.filter
: Size of the filter kernel.norm_diff
: Maximum difference in normal vectors, in degrees.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.edge_preserving_mean_filter
— Functionedge_preserving_mean_filter(wbt_info::WhiteboxTools = wbt_info; i, output, threshold, filter=11, callback::Union{Nothing,Function}=nothing)
Performs a simple edge-preserving mean filter on an input image.
Arguments
i
: Input raster file.output
: Output raster file.filter
: Size of the filter kernel.threshold
: Maximum difference in values.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.edge_proportion
— Functionedge_proportion(wbt_info::WhiteboxTools = wbt_info; i, output, output_text=false, callback::Union{Nothing,Function}=nothing)
Calculate the proportion of cells in a raster polygon that are edge cells.
Arguments
i
: Input raster file.output
: Output raster file.output_text
: flag indicating whether a text report should also be output.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.elev_above_pit
— Functionelev_above_pit(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculate the elevation of each grid cell above the nearest downstream pit cell or grid edge cell.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.elev_percentile
— Functionelev_percentile(wbt_info::WhiteboxTools = wbt_info; dem, output, filterx=11, filtery=11, sig_digits=2, callback::Union{Nothing,Function}=nothing)
Calculates the elevation percentile raster from a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.sig_digits
: Number of significant digits.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.elev_relative_to_min_max
— Functionelev_relative_to_min_max(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculates the elevation of a location relative to the minimum and maximum elevations in a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.elev_relative_to_watershed_min_max
— Functionelev_relative_to_watershed_min_max(wbt_info::WhiteboxTools = wbt_info; dem, watersheds, output, callback::Union{Nothing,Function}=nothing)
Calculates the elevation of a location relative to the minimum and maximum elevations in a watershed.
Arguments
dem
: Input raster DEM file.watersheds
: Input raster watersheds file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.elevation_above_stream
— Functionelevation_above_stream(wbt_info::WhiteboxTools = wbt_info; dem, streams, output, callback::Union{Nothing,Function}=nothing)
Calculates the elevation of cells above the nearest downslope stream cell.
Arguments
dem
: Input raster DEM file.streams
: Input raster streams file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.elevation_above_stream_euclidean
— Functionelevation_above_stream_euclidean(wbt_info::WhiteboxTools = wbt_info; dem, streams, output, callback::Union{Nothing,Function}=nothing)
Calculates the elevation of cells above the nearest (Euclidean distance) stream cell.
Arguments
dem
: Input raster DEM file.streams
: Input raster streams file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.eliminate_coincident_points
— Functioneliminate_coincident_points(wbt_info::WhiteboxTools = wbt_info; i, output, tolerance, callback::Union{Nothing,Function}=nothing)
Removes any coincident, or nearly coincident, points from a vector points file.
Arguments
i
: Input vector file.output
: Output vector polygon file.tolerance
: The distance tolerance for points.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.elongation_ratio
— Functionelongation_ratio(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates the elongation ratio for vector polygons.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.embankment_mapping
— Functionembankment_mapping(wbt_info::WhiteboxTools = wbt_info; dem, road_vec, output, search_dist=2.5, min_road_width=6.0, typical_width=30.0, max_height=2.0, max_width=60.0, max_increment=0.05, spillout_slope=4.0, remove_embankments=false, callback::Union{Nothing,Function}=nothing)
Maps and/or removes road embankments from an input fine-resolution DEM.
Arguments
dem
: Input raster DEM file.road_vec
: Input vector polygons file.output
: Output raster file.search_dist
: Search distance used to reposition transportation vectors onto road embankments (in map units).min_road_width
: Minimum road width; this is the width of the paved road surface (in map units).typical_width
: Typical embankment width; this is the maximum width of an embankment with roadside ditches (in map units).max_height
: Typical embankment maximum height; this is the height a typical embankment with roadside ditches (in map units).max_width
: Maximum embankment width, typically where embankments traverse steep-sided valleys (in map units).max_increment
: Maximum upwards increment between neighbouring cells on an embankment (in elevation units).spillout_slope
: Spillout slope (in degrees).remove_embankments
: Optional flag indicating whether to output a DEM with embankments removed (true) or an embankment raster map (false).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.emboss_filter
— Functionemboss_filter(wbt_info::WhiteboxTools = wbt_info; i, output, direction="n", clip=0.0, callback::Union{Nothing,Function}=nothing)
Performs an emboss filter on an image, similar to a hillshade operation.
Arguments
i
: Input raster file.output
: Output raster file.direction
: Direction of reflection; options include 'n', 's', 'e', 'w', 'ne', 'se', 'nw', 'sw'.clip
: Optional amount to clip the distribution tails by, in percent.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.equal_to
— Functionequal_to(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a equal-to comparison operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.erase
— Functionerase(wbt_info::WhiteboxTools = wbt_info; i, erase, output, callback::Union{Nothing,Function}=nothing)
Removes all the features, or parts of features, that overlap with the features of the erase vector polygon.
Arguments
i
: Input vector file.erase
: Input erase polygon vector file.output
: Output vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.erase_polygon_from_lidar
— Functionerase_polygon_from_lidar(wbt_info::WhiteboxTools = wbt_info; i, polygons, output, callback::Union{Nothing,Function}=nothing)
Erases (cuts out) a vector polygon or polygons from a LiDAR point cloud.
Arguments
i
: Input LiDAR file.polygons
: Input vector polygons file.output
: Output LiDAR file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.erase_polygon_from_raster
— Functionerase_polygon_from_raster(wbt_info::WhiteboxTools = wbt_info; i, polygons, output, callback::Union{Nothing,Function}=nothing)
Erases (cuts out) a vector polygon from a raster.
Arguments
i
: Input raster file.polygons
: Input vector polygons file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.euclidean_allocation
— Functioneuclidean_allocation(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Assigns grid cells in the output raster the value of the nearest target cell in the input image, measured by the Shih and Wu (2004) Euclidean distance transform.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.euclidean_distance
— Functioneuclidean_distance(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Calculates the Shih and Wu (2004) Euclidean distance transform.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.exp
— Functionexp(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the exponential (base e) of values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.exp2
— Functionexp2(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the exponential (base 2) of values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.export_table_to_csv
— Functionexport_table_to_csv(wbt_info::WhiteboxTools = wbt_info; i, output, headers=true, callback::Union{Nothing,Function}=nothing)
Exports an attribute table to a CSV text file.
Arguments
i
: Input vector file.output
: Output csv file.headers
: Export field names as file header?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.exposure_towards_wind_flux
— Functionexposure_towards_wind_flux(wbt_info::WhiteboxTools = wbt_info; dem, output, azimuth="", max_dist="", zfactor="", callback::Union{Nothing,Function}=nothing)
This tool evaluates hydrologic connectivity within a DEM.
Arguments
dem
: Name of the input DEM raster file.output
: Name of the output raster file.azimuth
: Wind azimuth, in degrees.max_dist
: Optional maximum search distance. Minimum value is 5 x cell size.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.extend_vector_lines
— Functionextend_vector_lines(wbt_info::WhiteboxTools = wbt_info; i, output, dist, extend="both ends", callback::Union{Nothing,Function}=nothing)
Extends vector lines by a specified distance.
Arguments
i
: Input vector polyline file.output
: Output vector polyline file.dist
: The distance to extend.extend
: Extend direction, 'both ends' (default), 'line start', 'line end'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.extract_nodes
— Functionextract_nodes(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts vector lines or polygons into vertex points.
Arguments
i
: Input vector lines or polygon file.output
: Output vector points file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.extract_raster_values_at_points
— Functionextract_raster_values_at_points(wbt_info::WhiteboxTools = wbt_info; inputs, points, out_text=false, callback::Union{Nothing,Function}=nothing)
Extracts the values of raster(s) at vector point locations.
Arguments
inputs
: Input raster files.points
: Input vector points file.out_text
: Output point values as text? Otherwise, the only output is to to the points file's attribute table.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.extract_streams
— Functionextract_streams(wbt_info::WhiteboxTools = wbt_info; flow_accum, output, threshold, zero_background=false, callback::Union{Nothing,Function}=nothing)
Extracts stream grid cells from a flow accumulation raster.
Arguments
flow_accum
: Input raster D8 flow accumulation file.output
: Output raster file.threshold
: Threshold in flow accumulation values for channelization.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.extract_valleys
— Functionextract_valleys(wbt_info::WhiteboxTools = wbt_info; dem, output, variant="LQ", line_thin=true, filter=5, callback::Union{Nothing,Function}=nothing)
Identifies potential valley bottom grid cells based on local topolography alone.
Arguments
dem
: Input raster DEM file.output
: Output raster file.variant
: Options include 'LQ' (lower quartile), 'JandR' (Johnston and Rosenfeld), and 'PandD' (Peucker and Douglas); default is 'LQ'.line_thin
: Optional flag indicating whether post-processing line-thinning should be performed.filter
: Optional argument (only used when variant='lq') providing the filter size, in grid cells, used for lq-filtering (default is 5).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.farthest_channel_head
— Functionfarthest_channel_head(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Calculates the distance to the furthest upstream channel head for each stream cell.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fast_almost_gaussian_filter
— Functionfast_almost_gaussian_filter(wbt_info::WhiteboxTools = wbt_info; i, output, sigma=1.8, callback::Union{Nothing,Function}=nothing)
Performs a fast approximate Gaussian filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.sigma
: Standard deviation distance in pixels.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fd8_flow_accumulation
— Functionfd8_flow_accumulation(wbt_info::WhiteboxTools = wbt_info; dem, output, out_type="specific contributing area", exponent=1.1, threshold=nothing, log=false, clip=false, callback::Union{Nothing,Function}=nothing)
Calculates an FD8 flow accumulation raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.out_type
: Output type; one of 'cells', 'specific contributing area' (default), and 'catchment area'.exponent
: Optional exponent parameter; default is 1.1.threshold
: Optional convergence threshold parameter, in grid cells; default is infinity.log
: Optional flag to request the output be log-transformed.clip
: Optional flag to request clipping the display max by 1%.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fd8_pointer
— Functionfd8_pointer(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculates an FD8 flow pointer raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.feature_preserving_smoothing
— Functionfeature_preserving_smoothing(wbt_info::WhiteboxTools = wbt_info; dem, output, filter=11, norm_diff=15.0, num_iter=3, max_diff=0.5, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Reduces short-scale variation in an input DEM using a modified Sun et al. (2007) algorithm.
Arguments
dem
: Input raster DEM file.output
: Output raster file.filter
: Size of the filter kernel.norm_diff
: Maximum difference in normal vectors, in degrees.num_iter
: Number of iterations.max_diff
: Maximum allowable absolute elevation change (optional).zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fetch_analysis
— Functionfetch_analysis(wbt_info::WhiteboxTools = wbt_info; dem, output, azimuth=0.0, hgt_inc=0.05, callback::Union{Nothing,Function}=nothing)
Performs an analysis of fetch or upwind distance to an obstacle.
Arguments
dem
: Input raster DEM file.output
: Output raster file.azimuth
: Wind azimuth in degrees in degrees.hgt_inc
: Height increment value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fill_burn
— Functionfill_burn(wbt_info::WhiteboxTools = wbt_info; dem, streams, output, callback::Union{Nothing,Function}=nothing)
Burns streams into a DEM using the FillBurn (Saunders, 1999) method.
Arguments
dem
: Input raster DEM file.streams
: Input vector streams file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fill_depressions
— Functionfill_depressions(wbt_info::WhiteboxTools = wbt_info; dem, output, fix_flats=true, flat_increment=nothing, max_depth=nothing, callback::Union{Nothing,Function}=nothing)
Fills all of the depressions in a DEM. Depression breaching should be preferred in most cases.
Arguments
dem
: Input raster DEM file.output
: Output raster file.fix_flats
: Optional flag indicating whether flat areas should have a small gradient applied.flat_increment
: Optional elevation increment applied to flat areas.max_depth
: Optional maximum depression depth to fill.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fill_depressions_planchon_and_darboux
— Functionfill_depressions_planchon_and_darboux(wbt_info::WhiteboxTools = wbt_info; dem, output, fix_flats=true, flat_increment=nothing, callback::Union{Nothing,Function}=nothing)
Fills all of the depressions in a DEM using the Planchon and Darboux (2002) method.
Arguments
dem
: Input raster DEM file.output
: Output raster file.fix_flats
: Optional flag indicating whether flat areas should have a small gradient applied.flat_increment
: Optional elevation increment applied to flat areas.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fill_depressions_wang_and_liu
— Functionfill_depressions_wang_and_liu(wbt_info::WhiteboxTools = wbt_info; dem, output, fix_flats=true, flat_increment=nothing, callback::Union{Nothing,Function}=nothing)
Fills all of the depressions in a DEM using the Wang and Liu (2006) method. Depression breaching should be preferred in most cases.
Arguments
dem
: Input raster DEM file.output
: Output raster file.fix_flats
: Optional flag indicating whether flat areas should have a small gradient applied.flat_increment
: Optional elevation increment applied to flat areas.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fill_missing_data
— Functionfill_missing_data(wbt_info::WhiteboxTools = wbt_info; i, output, filter=11, weight=2.0, no_edges=true, callback::Union{Nothing,Function}=nothing)
Fills NoData holes in a DEM.
Arguments
i
: Input raster file.output
: Output raster file.filter
: Filter size (cells).weight
: IDW weight value.no_edges
: Optional flag indicating whether to exclude NoData cells in edge regions.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.fill_single_cell_pits
— Functionfill_single_cell_pits(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Raises pit cells to the elevation of their lowest neighbour.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.filter_lidar_classes
— Functionfilter_lidar_classes(wbt_info::WhiteboxTools = wbt_info; i, output, exclude_cls=nothing, callback::Union{Nothing,Function}=nothing)
Removes points in a LAS file with certain specified class values.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.exclude_cls
: Optional exclude classes from interpolation; Valid class values range from 0 to 18, based on LAS specifications. Example, –exclude_cls='3,4,5,6,7,18'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.filter_lidar_scan_angles
— Functionfilter_lidar_scan_angles(wbt_info::WhiteboxTools = wbt_info; i, output, threshold, callback::Union{Nothing,Function}=nothing)
Removes points in a LAS file with scan angles greater than a threshold.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.threshold
: Scan angle threshold.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.filter_raster_features_by_area
— Functionfilter_raster_features_by_area(wbt_info::WhiteboxTools = wbt_info; i, output, threshold, background="zero", callback::Union{Nothing,Function}=nothing)
Removes small-area features from a raster.
Arguments
i
: Input raster file.output
: Output raster file.threshold
: Remove features with fewer grid cells than this threshold value.background
: Background value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.find_flightline_edge_points
— Functionfind_flightline_edge_points(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Identifies points along a flightline's edge in a LAS file.
Arguments
i
: Input LiDAR file.output
: Output file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.find_lowest_or_highest_points
— Functionfind_lowest_or_highest_points(wbt_info::WhiteboxTools = wbt_info; i, output, out_type="lowest", callback::Union{Nothing,Function}=nothing)
Locates the lowest and/or highest valued cells in a raster.
Arguments
i
: Input raster file.output
: Output vector points file.out_type
: Output type; one of 'area' (default) and 'volume'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.find_main_stem
— Functionfind_main_stem(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Finds the main stem, based on stream lengths, of each stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.find_no_flow_cells
— Functionfind_no_flow_cells(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Finds grid cells with no downslope neighbours.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.find_parallel_flow
— Functionfind_parallel_flow(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, callback::Union{Nothing,Function}=nothing)
Finds areas of parallel flow in D8 flow direction rasters.
Arguments
d8_pntr
: Input D8 pointer raster file.streams
: Input raster streams file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.find_patch_or_class_edge_cells
— Functionfind_patch_or_class_edge_cells(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Finds all cells located on the edge of patch or class features.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.find_ridges
— Functionfind_ridges(wbt_info::WhiteboxTools = wbt_info; dem, output, line_thin=true, callback::Union{Nothing,Function}=nothing)
Identifies potential ridge and peak grid cells.
Arguments
dem
: Input raster DEM file.output
: Output raster file.line_thin
: Optional flag indicating whether post-processing line-thinning should be performed.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.flatten_lakes
— Functionflatten_lakes(wbt_info::WhiteboxTools = wbt_info; dem, lakes, output, callback::Union{Nothing,Function}=nothing)
Flattens lake polygons in a raster DEM.
Arguments
dem
: Input raster DEM file.lakes
: Input lakes vector polygons file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.flightline_overlap
— Functionflightline_overlap(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, resolution=1.0, callback::Union{Nothing,Function}=nothing)
Reads a LiDAR (LAS) point file and outputs a raster containing the number of overlapping flight lines in each grid cell.
Arguments
i
: Input LiDAR file.output
: Output file.resolution
: Output raster's grid resolution.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.flip_image
— Functionflip_image(wbt_info::WhiteboxTools = wbt_info; i, output, direction="vertical", callback::Union{Nothing,Function}=nothing)
Reflects an image in the vertical or horizontal axis.
Arguments
i
: Input raster file.output
: Output raster file.direction
: Direction of reflection; options include 'v' (vertical), 'h' (horizontal), and 'b' (both).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.flood_order
— Functionflood_order(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Assigns each DEM grid cell its order in the sequence of inundations that are encountered during a search starting from the edges, moving inward at increasing elevations.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.floor
— Functionfloor(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the largest (closest to positive infinity) value that is less than or equal to the values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.flow_accumulation_full_workflow
— Functionflow_accumulation_full_workflow(wbt_info::WhiteboxTools = wbt_info; dem, out_dem, out_pntr, out_accum, out_type="Specific Contributing Area", log=false, clip=false, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Resolves all of the depressions in a DEM, outputting a breached DEM, an aspect-aligned non-divergent flow pointer, and a flow accumulation raster.
Arguments
dem
: Input raster DEM file.out_dem
: Output raster DEM file.out_pntr
: Output raster flow pointer file.out_accum
: Output raster flow accumulation file.out_type
: Output type; one of 'cells', 'sca' (default), and 'ca'.log
: Optional flag to request the output be log-transformed.clip
: Optional flag to request clipping the display max by 1%.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.flow_length_diff
— Functionflow_length_diff(wbt_info::WhiteboxTools = wbt_info; d8_pntr, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Calculates the local maximum absolute difference in downslope flowpath length, useful in mapping drainage divides and ridges.
Arguments
d8_pntr
: Input D8 pointer raster file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.gamma_correction
— Functiongamma_correction(wbt_info::WhiteboxTools = wbt_info; i, output, gamma=0.5, callback::Union{Nothing,Function}=nothing)
Performs a gamma correction on an input images.
Arguments
i
: Input raster file.output
: Output raster file.gamma
: Gamma value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.gaussian_contrast_stretch
— Functiongaussian_contrast_stretch(wbt_info::WhiteboxTools = wbt_info; i, output, num_tones=256, callback::Union{Nothing,Function}=nothing)
Performs a Gaussian contrast stretch on input images.
Arguments
i
: Input raster file.output
: Output raster file.num_tones
: Number of tones in the output image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.gaussian_curvature
— Functiongaussian_curvature(wbt_info::WhiteboxTools = wbt_info; dem, output, log=false, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a mean curvature raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.log
: Display output values using a log-scale.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.gaussian_filter
— Functiongaussian_filter(wbt_info::WhiteboxTools = wbt_info; i, output, sigma=0.75, callback::Union{Nothing,Function}=nothing)
Performs a Gaussian filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.sigma
: Standard deviation distance in pixels.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.gaussian_scale_space
— Functiongaussian_scale_space(wbt_info::WhiteboxTools = wbt_info; dem, output, output_zscore, output_scale, points=nothing, sigma=0.5, step=0.5, num_steps=10, lsp="Slope", z_factor=nothing, callback::Union{Nothing,Function}=nothing)
This tool uses the fast Gaussian approximation algorithm to produce scaled land-surface parameter measurements from an input DEM.
Arguments
dem
: Name of the input DEM raster file.points
: Name of the input vector points shapefile.output
: Name of the output land-surface parameter raster file.output_zscore
: Name of the output z-score raster file.output_scale
: Name of the output scale raster file.sigma
: Initial sigma value (cells).step
: Step size as any positive non-zero integer.num_steps
: Number of steps.lsp
: Output land-surface parameter; one of 'AnisotropyLTP', 'Aspect', 'DiffMeanElev', 'Eastness', 'Elevation', 'Hillshade', 'MeanCurvature', 'Northness', 'PlanCurvature', 'ProfileCurvature', 'Ruggedness', 'Slope', 'TanCurvature', 'TotalCurvature'.z_factor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.geomorphons
— Functiongeomorphons(wbt_info::WhiteboxTools = wbt_info; dem, output, search=50, threshold=0.0, tdist=0, forms=true, callback::Union{Nothing,Function}=nothing)
Computes geomorphon patterns.
Arguments
dem
: Input raster DEM file.output
: Output raster file.search
: Look up distance.threshold
: Flatness threshold for the classification function (in degrees).tdist
: Distance (in cells) to begin reducing the flatness threshold to avoid problems with pseudo-flat lines-of-sight.forms
: Classify geomorphons into 10 common land morphologies, else, output ternary code.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.greater_than
— Functiongreater_than(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, incl_equals=false, callback::Union{Nothing,Function}=nothing)
Performs a greater-than comparison operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.incl_equals
: Perform a greater-than-or-equal-to operation.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.hack_stream_order
— Functionhack_stream_order(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Assigns the Hack stream order to each tributary in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.height_above_ground
— Functionheight_above_ground(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, callback::Union{Nothing,Function}=nothing)
Normalizes a LiDAR point cloud, providing the height above the nearest ground-classified point.
Arguments
i
: Input LiDAR file (including extension).output
: Output raster file (including extension).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.help
— Functionhelp(wbt_info::WhiteboxTools = wbt_info)
Retrieves the help description for WhiteboxTools.
Whitebox.high_pass_filter
— Functionhigh_pass_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Performs a high-pass filter on an input image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.high_pass_median_filter
— Functionhigh_pass_median_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, sig_digits=2, callback::Union{Nothing,Function}=nothing)
Performs a high pass median filter on an input image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.sig_digits
: Number of significant digits.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.highest_position
— Functionhighest_position(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Identifies the stack position of the maximum value within a raster stack on a cell-by-cell basis.
Arguments
inputs
: Input raster files.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.hillshade
— Functionhillshade(wbt_info::WhiteboxTools = wbt_info; dem, output, azimuth=315.0, altitude=30.0, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a hillshade raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.azimuth
: Illumination source azimuth in degrees.altitude
: Illumination source altitude in degrees.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.hillslopes
— Functionhillslopes(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Identifies the individual hillslopes draining to each link in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.histogram_equalization
— Functionhistogram_equalization(wbt_info::WhiteboxTools = wbt_info; i, output, num_tones=256, callback::Union{Nothing,Function}=nothing)
Performs a histogram equalization contrast enhancement on an image.
Arguments
i
: Input raster file.output
: Output raster file.num_tones
: Number of tones in the output image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.histogram_matching
— Functionhistogram_matching(wbt_info::WhiteboxTools = wbt_info; i, histo_file, output, callback::Union{Nothing,Function}=nothing)
Alters the statistical distribution of a raster image matching it to a specified PDF.
Arguments
i
: Input raster file.histo_file
: Input reference probability distribution function (pdf) text file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.histogram_matching_two_images
— Functionhistogram_matching_two_images(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
This tool alters the cumulative distribution function of a raster image to that of another image.
Arguments
input1
: Input raster file to modify.input2
: Input reference raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.hole_proportion
— Functionhole_proportion(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates the proportion of the total area of a polygon's holes relative to the area of the polygon's hull.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.horizon_angle
— Functionhorizon_angle(wbt_info::WhiteboxTools = wbt_info; dem, output, azimuth=0.0, max_dist=100.0, callback::Union{Nothing,Function}=nothing)
Calculates horizon angle (maximum upwind slope) for each grid cell in an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.azimuth
: Azimuth, in degrees.max_dist
: Optional maximum search distance (unspecified if none; in xy units). Minimum value is 5 x cell size.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.horton_stream_order
— Functionhorton_stream_order(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Assigns the Horton stream order to each tributary in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.hypsometric_analysis
— Functionhypsometric_analysis(wbt_info::WhiteboxTools = wbt_info; inputs, output, watershed=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a hypsometric curve for one or more DEMs.
Arguments
inputs
: Input DEM files.watershed
: Input watershed files (optional).output
: Output HTML file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.hypsometrically_tinted_hillshade
— Functionhypsometrically_tinted_hillshade(wbt_info::WhiteboxTools = wbt_info; dem, output, altitude=45.0, hs_weight=0.5, brightness=0.5, atmospheric=0.0, palette="atlas", reverse=false, zfactor=nothing, full_mode=false, callback::Union{Nothing,Function}=nothing)
Creates an colour shaded relief image from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.altitude
: Illumination source altitude in degrees.hs_weight
: Weight given to hillshade relative to relief (0.0-1.0).brightness
: Brightness factor (0.0-1.0).atmospheric
: Atmospheric effects weight (0.0-1.0).palette
: Options include 'atlas', 'highrelief', 'arid', 'soft', 'muted', 'purple', 'viridi', 'gnyl', 'piyg', 'blylrd', and 'deep'.reverse
: Optional flag indicating whether to use reverse the palette.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.full_mode
: Optional flag indicating whether to use full 360-degrees of illumination sources.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.idw_interpolation
— Functionidw_interpolation(wbt_info::WhiteboxTools = wbt_info; i, field, output, use_z=false, weight=2.0, radius=nothing, min_points=nothing, cell_size=nothing, base=nothing, callback::Union{Nothing,Function}=nothing)
Interpolates vector points into a raster surface using an inverse-distance weighted scheme.
Arguments
i
: Input vector Points file.field
: Input field name in attribute table.use_z
: Use z-coordinate instead of field?.output
: Output raster file.weight
: IDW weight value.radius
: Search Radius in map units.min_points
: Minimum number of points.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.ihs_to_rgb
— Functionihs_to_rgb(wbt_info::WhiteboxTools = wbt_info; intensity, hue, saturation, red=nothing, green=nothing, blue=nothing, output=nothing, callback::Union{Nothing,Function}=nothing)
Converts intensity, hue, and saturation (IHS) images into red, green, and blue (RGB) images.
Arguments
intensity
: Input intensity file.hue
: Input hue file.saturation
: Input saturation file.red
: Output red band file. Optionally specified if colour-composite not specified.green
: Output green band file. Optionally specified if colour-composite not specified.blue
: Output blue band file. Optionally specified if colour-composite not specified.output
: Output colour-composite file. Only used if individual bands are not specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.image_autocorrelation
— Functionimage_autocorrelation(wbt_info::WhiteboxTools = wbt_info; inputs, output, contiguity="Rook", callback::Union{Nothing,Function}=nothing)
Performs Moran's I analysis on two or more input images.
Arguments
inputs
: Input raster files.contiguity
: Contiguity type.output
: Output HTML file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.image_correlation
— Functionimage_correlation(wbt_info::WhiteboxTools = wbt_info; inputs, output=nothing, callback::Union{Nothing,Function}=nothing)
Performs image correlation on two or more input images.
Arguments
inputs
: Input raster files.output
: Output HTML file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.image_correlation_neighbourhood_analysis
— Functionimage_correlation_neighbourhood_analysis(wbt_info::WhiteboxTools = wbt_info; input1, input2, output1, output2, filter=11, stat="pearson", callback::Union{Nothing,Function}=nothing)
Performs image correlation on two input images neighbourhood search windows.
Arguments
input1
: Input raster file.input2
: Input raster file.output1
: Output correlation (r-value or rho) raster file.output2
: Output significance (p-value) raster file.filter
: Size of the filter kernel.stat
: Correlation type; one of 'pearson' (default) and 'spearman'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.image_regression
— Functionimage_regression(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, out_residuals=nothing, standardize=false, scattergram=false, num_samples=1000, callback::Union{Nothing,Function}=nothing)
Performs image regression analysis on two input images.
Arguments
input1
: Input raster file (independent variable, X).input2
: Input raster file (dependent variable, Y).output
: Output HTML file for regression summary report.out_residuals
: Output raster regression residual file.standardize
: Optional flag indicating whether to standardize the residuals map.scattergram
: Optional flag indicating whether to output a scattergram.num_samples
: Number of samples used to create scattergram.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.image_stack_profile
— Functionimage_stack_profile(wbt_info::WhiteboxTools = wbt_info; inputs, points, output, callback::Union{Nothing,Function}=nothing)
Plots an image stack profile (i.e. signature) for a set of points and multispectral images.
Arguments
inputs
: Input multispectral image files.points
: Input vector points file.output
: Output HTML file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.impoundment_size_index
— Functionimpoundment_size_index(wbt_info::WhiteboxTools = wbt_info; dem, damlength, out_mean=nothing, out_max=nothing, out_volume=nothing, out_area=nothing, out_dam_height=nothing, callback::Union{Nothing,Function}=nothing)
Calculates the impoundment size resulting from damming a DEM.
Arguments
dem
: Input raster DEM file.out_mean
: Output mean flooded depth file.out_max
: Output maximum flooded depth file.out_volume
: Output flooded volume file.out_area
: Output flooded area file.out_dam_height
: Output dam height file.damlength
: Maximum length of the dam.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.in_place_add
— Functionin_place_add(wbt_info::WhiteboxTools = wbt_info; input1, input2, callback::Union{Nothing,Function}=nothing)
Performs an in-place addition operation (input1 += input2).
Arguments
input1
: Input raster file.input2
: Input raster file or constant value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.in_place_divide
— Functionin_place_divide(wbt_info::WhiteboxTools = wbt_info; input1, input2, callback::Union{Nothing,Function}=nothing)
Performs an in-place division operation (input1 /= input2).
Arguments
input1
: Input raster file.input2
: Input raster file or constant value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.in_place_multiply
— Functionin_place_multiply(wbt_info::WhiteboxTools = wbt_info; input1, input2, callback::Union{Nothing,Function}=nothing)
Performs an in-place multiplication operation (input1 *= input2).
Arguments
input1
: Input raster file.input2
: Input raster file or constant value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.in_place_subtract
— Functionin_place_subtract(wbt_info::WhiteboxTools = wbt_info; input1, input2, callback::Union{Nothing,Function}=nothing)
Performs an in-place subtraction operation (input1 -= input2).
Arguments
input1
: Input raster file.input2
: Input raster file or constant value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.increment
— Functionincrement(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Increases the values of each grid cell in an input raster by 1.0. (see also InPlaceAdd).
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.insert_dams
— Functioninsert_dams(wbt_info::WhiteboxTools = wbt_info; dem, dam_pts, output, damlength, callback::Union{Nothing,Function}=nothing)
Calculates the impoundment size resulting from damming a DEM.
Arguments
dem
: Input raster DEM file.dam_pts
: Input vector dam points file.output
: Output file.damlength
: Maximum length of the dam.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.integer_division
— Functioninteger_division(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs an integer division operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.integral_image
— Functionintegral_image(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Transforms an input image (summed area table) into its integral image equivalent.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.intersect
— Functionintersect(wbt_info::WhiteboxTools = wbt_info; i, overlay, output, snap=0.0, callback::Union{Nothing,Function}=nothing)
Identifies the parts of features in common between two input vector layers.
Arguments
i
: Input vector file.overlay
: Input overlay vector file.output
: Output vector file.snap
: Snap tolerance.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.is_no_data
— Functionis_no_data(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Identifies NoData valued pixels in an image.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.isobasins
— Functionisobasins(wbt_info::WhiteboxTools = wbt_info; dem, output, size, connections=false, callback::Union{Nothing,Function}=nothing)
Divides a landscape into nearly equal sized drainage basins (i.e. watersheds).
Arguments
dem
: Input raster DEM file.output
: Output raster file.size
: Target basin size, in grid cells.connections
: Output upstream-downstream flow connections among basins?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.jenson_snap_pour_points
— Functionjenson_snap_pour_points(wbt_info::WhiteboxTools = wbt_info; pour_pts, streams, output, snap_dist, callback::Union{Nothing,Function}=nothing)
Moves outlet points used to specify points of interest in a watershedding operation to the nearest stream cell.
Arguments
pour_pts
: Input vector pour points (outlet) file.streams
: Input raster streams file.output
: Output vector file.snap_dist
: Maximum snap distance in map units.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.join_tables
— Functionjoin_tables(wbt_info::WhiteboxTools = wbt_info; input1, pkey, input2, fkey, import_field, callback::Union{Nothing,Function}=nothing)
Merge a vector's attribute table with another table based on a common field.
Arguments
input1
: Input primary vector file (i.e. the table to be modified).pkey
: Primary key field.input2
: Input foreign vector file (i.e. source of data to be imported).fkey
: Foreign key field.import_field
: Imported field (all fields will be imported if not specified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.k_means_clustering
— Functionk_means_clustering(wbt_info::WhiteboxTools = wbt_info; inputs, output, classes, out_html=nothing, max_iterations=10, class_change=2.0, initialize="diagonal", min_class_size=10, callback::Union{Nothing,Function}=nothing)
Performs a k-means clustering operation on a multi-spectral dataset.
Arguments
inputs
: Input raster files.output
: Output raster file.out_html
: Output HTML report file.classes
: Number of classes.max_iterations
: Maximum number of iterations.class_change
: Minimum percent of cells changed between iterations before completion.initialize
: How to initialize cluster centres?.min_class_size
: Minimum class size, in pixels.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.k_nearest_mean_filter
— Functionk_nearest_mean_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, k=5, callback::Union{Nothing,Function}=nothing)
A k-nearest mean filter is a type of edge-preserving smoothing filter.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.k
: k-value in pixels; this is the number of nearest-valued neighbours to use.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.kappa_index
— Functionkappa_index(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a kappa index of agreement (KIA) analysis on two categorical raster files.
Arguments
input1
: Input classification raster file.input2
: Input reference raster file.output
: Output HTML file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.ks_test_for_normality
— Functionks_test_for_normality(wbt_info::WhiteboxTools = wbt_info; i, output, num_samples=nothing, callback::Union{Nothing,Function}=nothing)
Evaluates whether the values in a raster are normally distributed.
Arguments
i
: Input raster file.output
: Output HTML file.num_samples
: Number of samples. Leave blank to use whole image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.laplacian_filter
— Functionlaplacian_filter(wbt_info::WhiteboxTools = wbt_info; i, output, variant="3x3(1)", clip=0.0, callback::Union{Nothing,Function}=nothing)
Performs a Laplacian filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.variant
: Optional variant value. Options include 3x3(1), 3x3(2), 3x3(3), 3x3(4), 5x5(1), and 5x5(2) (default is 3x3(1)).clip
: Optional amount to clip the distribution tails by, in percent.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.laplacian_of_gaussian_filter
— Functionlaplacian_of_gaussian_filter(wbt_info::WhiteboxTools = wbt_info; i, output, sigma=0.75, callback::Union{Nothing,Function}=nothing)
Performs a Laplacian-of-Gaussian (LoG) filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.sigma
: Standard deviation in pixels.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.las_to_ascii
— Functionlas_to_ascii(wbt_info::WhiteboxTools = wbt_info; inputs, callback::Union{Nothing,Function}=nothing)
Converts one or more LAS files into ASCII text files.
Arguments
inputs
: Input LiDAR files.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.las_to_multipoint_shapefile
— Functionlas_to_multipoint_shapefile(wbt_info::WhiteboxTools = wbt_info; i=nothing, callback::Union{Nothing,Function}=nothing)
Converts one or more LAS files into MultipointZ vector Shapefiles. When the input parameter is not specified, the tool grids all LAS files contained within the working directory.
Arguments
i
: Input LiDAR file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.las_to_shapefile
— Functionlas_to_shapefile(wbt_info::WhiteboxTools = wbt_info; i=nothing, callback::Union{Nothing,Function}=nothing)
Converts one or more LAS files into a vector Shapefile of POINT ShapeType.
Arguments
i
: Input LiDAR file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.las_to_zlidar
— Functionlas_to_zlidar(wbt_info::WhiteboxTools = wbt_info; inputs=nothing, outdir=nothing, compress="brotli", level=5, callback::Union{Nothing,Function}=nothing)
Converts one or more LAS files into the zlidar compressed LiDAR data format.
Arguments
inputs
: Input LAS files.outdir
: Output directory into which zlidar files are created. If unspecified, it is assumed to be the same as the inputs.compress
: Compression method, including 'brotli' and 'deflate'.level
: Compression level (1-9).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.layer_footprint
— Functionlayer_footprint(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Creates a vector polygon footprint of the area covered by a raster grid or vector layer.
Arguments
i
: Input raster or vector file.output
: Output vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lee_sigma_filter
— Functionlee_sigma_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, sigma=10.0, m=5.0, callback::Union{Nothing,Function}=nothing)
Performs a Lee (Sigma) smoothing filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.sigma
: Sigma value should be related to the standard deviation of the distribution of image speckle noise.m
: M-threshold value the minimum allowable number of pixels within the intensity range.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.length_of_upstream_channels
— Functionlength_of_upstream_channels(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Calculates the total length of channels upstream.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.less_than
— Functionless_than(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, incl_equals=false, callback::Union{Nothing,Function}=nothing)
Performs a less-than comparison operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.incl_equals
: Perform a less-than-or-equal-to operation.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.license
— Functionlicense(tool_name::Union{Nothing, String} = nothing, wbt_info::WhiteboxTools = wbt_info)
Retrieves the license information for WhiteboxTools.
Whitebox.lidar_block_maximum
— Functionlidar_block_maximum(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, resolution=1.0, callback::Union{Nothing,Function}=nothing)
Creates a block-maximum raster from an input LAS file. When the input/output parameters are not specified, the tool grids all LAS files contained within the working directory.
Arguments
i
: Input LiDAR file.output
: Output file.resolution
: Output raster's grid resolution.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_block_minimum
— Functionlidar_block_minimum(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, resolution=1.0, callback::Union{Nothing,Function}=nothing)
Creates a block-minimum raster from an input LAS file. When the input/output parameters are not specified, the tool grids all LAS files contained within the working directory.
Arguments
i
: Input LiDAR file.output
: Output file.resolution
: Output raster's grid resolution.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_classify_subset
— Functionlidar_classify_subset(wbt_info::WhiteboxTools = wbt_info; base, subset, output, subset_class, nonsubset_class=nothing, callback::Union{Nothing,Function}=nothing)
Classifies the values in one LiDAR point cloud that correspond with points in a subset cloud.
Arguments
base
: Input base LiDAR file.subset
: Input subset LiDAR file.output
: Output LiDAR file.subset_class
: Subset point class value (must be 0-18; see LAS specifications).nonsubset_class
: Non-subset point class value (must be 0-18; see LAS specifications).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_colourize
— Functionlidar_colourize(wbt_info::WhiteboxTools = wbt_info; in_lidar, in_image, output, callback::Union{Nothing,Function}=nothing)
Adds the red-green-blue colour fields of a LiDAR (LAS) file based on an input image.
Arguments
in_lidar
: Input LiDAR file.in_image
: Input colour image file.output
: Output LiDAR file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_digital_surface_model
— Functionlidar_digital_surface_model(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, resolution=1.0, radius=0.5, minz=nothing, maxz=nothing, max_triangle_edge_length=nothing, callback::Union{Nothing,Function}=nothing)
Creates a top-surface digital surface model (DSM) from a LiDAR point cloud.
Arguments
i
: Input LiDAR file (including extension).output
: Output raster file (including extension).resolution
: Output raster's grid resolution.radius
: Search Radius.minz
: Optional minimum elevation for inclusion in interpolation.maxz
: Optional maximum elevation for inclusion in interpolation.max_triangle_edge_length
: Optional maximum triangle edge length; triangles larger than this size will not be gridded.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_elevation_slice
— Functionlidar_elevation_slice(wbt_info::WhiteboxTools = wbt_info; i, output, minz=nothing, maxz=nothing, cls=false, inclassval=2, outclassval=1, callback::Union{Nothing,Function}=nothing)
Outputs all of the points within a LiDAR (LAS) point file that lie between a specified elevation range.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.minz
: Minimum elevation value (optional).maxz
: Maximum elevation value (optional).cls
: Optional boolean flag indicating whether points outside the range should be retained in output but reclassified.inclassval
: Optional parameter specifying the class value assigned to points within the slice.outclassval
: Optional parameter specifying the class value assigned to points within the slice.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_ground_point_filter
— Functionlidar_ground_point_filter(wbt_info::WhiteboxTools = wbt_info; i, output, radius=2.0, min_neighbours=0, slope_threshold=45.0, height_threshold=1.0, classify=true, slope_norm=true, height_above_ground=false, callback::Union{Nothing,Function}=nothing)
Identifies ground points within LiDAR dataset using a slope-based method.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.radius
: Search Radius.min_neighbours
: The minimum number of neighbouring points within search areas. If fewer points than this threshold are identified during the fixed-radius search, a subsequent kNN search is performed to identify the k number of neighbours.slope_threshold
: Maximum inter-point slope to be considered an off-terrain point.height_threshold
: Inter-point height difference to be considered an off-terrain point.classify
: Classify points as ground (2) or off-ground (1).slope_norm
: Perform initial ground slope normalization?.height_above_ground
: Transform output to height above average ground elevation?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_hex_binning
— Functionlidar_hex_binning(wbt_info::WhiteboxTools = wbt_info; i, output, width, orientation="horizontal", callback::Union{Nothing,Function}=nothing)
Hex-bins a set of LiDAR points.
Arguments
i
: Input base file.output
: Output vector polygon file.width
: The grid cell width.orientation
: Grid Orientation, 'horizontal' or 'vertical'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_hillshade
— Functionlidar_hillshade(wbt_info::WhiteboxTools = wbt_info; i, output, azimuth=315.0, altitude=30.0, radius=1.0, callback::Union{Nothing,Function}=nothing)
Calculates a hillshade value for points within a LAS file and stores these data in the RGB field.
Arguments
i
: Input LiDAR file.output
: Output file.azimuth
: Illumination source azimuth in degrees.altitude
: Illumination source altitude in degrees.radius
: Search Radius.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_histogram
— Functionlidar_histogram(wbt_info::WhiteboxTools = wbt_info; i, output, parameter="elevation", clip=1.0, callback::Union{Nothing,Function}=nothing)
Creates a histogram of LiDAR data.
Arguments
i
: Input LiDAR file.output
: Output HTML file (default name will be based on input file if unspecified).parameter
: Parameter; options are 'elevation' (default), 'intensity', 'scan angle', 'class', 'time'.clip
: Amount to clip distribution tails (in percent).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_idw_interpolation
— Functionlidar_idw_interpolation(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, parameter="elevation", returns="all", resolution=1.0, weight=1.0, radius=2.5, exclude_cls=nothing, minz=nothing, maxz=nothing, callback::Union{Nothing,Function}=nothing)
Interpolates LAS files using an inverse-distance weighted (IDW) scheme. When the input/output parameters are not specified, the tool interpolates all LAS files contained within the working directory.
Arguments
i
: Input LiDAR file (including extension).output
: Output raster file (including extension).parameter
: Interpolation parameter; options are 'elevation' (default), 'intensity', 'class', 'returnnumber', 'numberof_returns', 'scan angle', 'rgb', 'user data'.returns
: Point return types to include; options are 'all' (default), 'last', 'first'.resolution
: Output raster's grid resolution.weight
: IDW weight value.radius
: Search Radius.exclude_cls
: Optional exclude classes from interpolation; Valid class values range from 0 to 18, based on LAS specifications. Example, –exclude_cls='3,4,5,6,7,18'.minz
: Optional minimum elevation for inclusion in interpolation.maxz
: Optional maximum elevation for inclusion in interpolation.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_info
— Functionlidar_info(wbt_info::WhiteboxTools = wbt_info; i, output=nothing, vlr=true, geokeys=true, callback::Union{Nothing,Function}=nothing)
Prints information about a LiDAR (LAS) dataset, including header, point return frequency, and classification data and information about the variable length records (VLRs) and geokeys.
Arguments
i
: Input LiDAR file.output
: Output HTML file for summary report.vlr
: Flag indicating whether or not to print the variable length records (VLRs).geokeys
: Flag indicating whether or not to print the geokeys.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_join
— Functionlidar_join(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Joins multiple LiDAR (LAS) files into a single LAS file.
Arguments
inputs
: Input LiDAR files.output
: Output LiDAR file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_kappa_index
— Functionlidar_kappa_index(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, class_accuracy, resolution=1.0, callback::Union{Nothing,Function}=nothing)
Performs a kappa index of agreement (KIA) analysis on the classifications of two LAS files.
Arguments
input1
: Input LiDAR classification file.input2
: Input LiDAR reference file.output
: Output HTML file.class_accuracy
: Output classification accuracy raster file.resolution
: Output raster's grid resolution.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_nearest_neighbour_gridding
— Functionlidar_nearest_neighbour_gridding(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, parameter="elevation", returns="all", resolution=1.0, radius=2.5, exclude_cls=nothing, minz=nothing, maxz=nothing, callback::Union{Nothing,Function}=nothing)
Grids LiDAR files using nearest-neighbour scheme. When the input/output parameters are not specified, the tool grids all LAS files contained within the working directory.
Arguments
i
: Input LiDAR file (including extension).output
: Output raster file (including extension).parameter
: Interpolation parameter; options are 'elevation' (default), 'intensity', 'class', 'returnnumber', 'numberof_returns', 'scan angle', 'rgb', 'user data'.returns
: Point return types to include; options are 'all' (default), 'last', 'first'.resolution
: Output raster's grid resolution.radius
: Search Radius.exclude_cls
: Optional exclude classes from interpolation; Valid class values range from 0 to 18, based on LAS specifications. Example, –exclude_cls='3,4,5,6,7,18'.minz
: Optional minimum elevation for inclusion in interpolation.maxz
: Optional maximum elevation for inclusion in interpolation.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_point_density
— Functionlidar_point_density(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, returns="all", resolution=1.0, radius=2.5, exclude_cls=nothing, minz=nothing, maxz=nothing, callback::Union{Nothing,Function}=nothing)
Calculates the spatial pattern of point density for a LiDAR data set. When the input/output parameters are not specified, the tool grids all LAS files contained within the working directory.
Arguments
i
: Input LiDAR file (including extension).output
: Output raster file (including extension).returns
: Point return types to include; options are 'all' (default), 'last', 'first'.resolution
: Output raster's grid resolution.radius
: Search radius.exclude_cls
: Optional exclude classes from interpolation; Valid class values range from 0 to 18, based on LAS specifications. Example, –exclude_cls='3,4,5,6,7,18'.minz
: Optional minimum elevation for inclusion in interpolation.maxz
: Optional maximum elevation for inclusion in interpolation.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_point_stats
— Functionlidar_point_stats(wbt_info::WhiteboxTools = wbt_info; i=nothing, resolution=1.0, num_points=true, num_pulses=false, avg_points_per_pulse=true, z_range=false, intensity_range=false, predom_class=false, callback::Union{Nothing,Function}=nothing)
Creates several rasters summarizing the distribution of LAS point data. When the input/output parameters are not specified, the tool works on all LAS files contained within the working directory.
Arguments
i
: Input LiDAR file.resolution
: Output raster's grid resolution.num_points
: Flag indicating whether or not to output the number of points (returns) raster.num_pulses
: Flag indicating whether or not to output the number of pulses raster.avg_points_per_pulse
: Flag indicating whether or not to output the average number of points (returns) per pulse raster.z_range
: Flag indicating whether or not to output the elevation range raster.intensity_range
: Flag indicating whether or not to output the intensity range raster.predom_class
: Flag indicating whether or not to output the predominant classification raster.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_ransac_planes
— Functionlidar_ransac_planes(wbt_info::WhiteboxTools = wbt_info; i, output, radius=2.0, num_iter=50, num_samples=5, threshold=0.35, model_size=8, max_slope=80.0, classify=false, last_returns=false, callback::Union{Nothing,Function}=nothing)
Performs a RANSAC analysis to identify points within a LiDAR point cloud that belong to linear planes.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.radius
: Search Radius.num_iter
: Number of iterations.num_samples
: Number of sample points on which to build the model.threshold
: Threshold used to determine inlier points.model_size
: Acceptable model size.max_slope
: Maximum planar slope.classify
: Classify points as ground (2) or off-ground (1).last_returns
: Only include last- and only-return points.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_rbf_interpolation
— Functionlidar_rbf_interpolation(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, parameter="elevation", returns="all", resolution=1.0, num_points=20, exclude_cls=nothing, minz=nothing, maxz=nothing, func_type="ThinPlateSpline", poly_order="none", weight=5, callback::Union{Nothing,Function}=nothing)
Interpolates LAS files using a radial basis function (RBF) scheme. When the input/output parameters are not specified, the tool interpolates all LAS files contained within the working directory.
Arguments
i
: Input LiDAR file (including extension).output
: Output raster file (including extension).parameter
: Interpolation parameter; options are 'elevation' (default), 'intensity', 'class', 'returnnumber', 'numberof_returns', 'scan angle', 'rgb', 'user data'.returns
: Point return types to include; options are 'all' (default), 'last', 'first'.resolution
: Output raster's grid resolution.num_points
: Number of points.exclude_cls
: Optional exclude classes from interpolation; Valid class values range from 0 to 18, based on LAS specifications. Example, –exclude_cls='3,4,5,6,7,18'.minz
: Optional minimum elevation for inclusion in interpolation.maxz
: Optional maximum elevation for inclusion in interpolation.func_type
: Radial basis function type; options are 'ThinPlateSpline' (default), 'PolyHarmonic', 'Gaussian', 'MultiQuadric', 'InverseMultiQuadric'.poly_order
: Polynomial order; options are 'none' (default), 'constant', 'affine'.weight
: Weight parameter used in basis function.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_remove_duplicates
— Functionlidar_remove_duplicates(wbt_info::WhiteboxTools = wbt_info; i, output, include_z=false, callback::Union{Nothing,Function}=nothing)
Removes duplicate points from a LiDAR data set.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.include_z
: Include z-values in point comparison?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_remove_outliers
— Functionlidar_remove_outliers(wbt_info::WhiteboxTools = wbt_info; i, output, radius=2.0, elev_diff=50.0, use_median=false, classify=true, callback::Union{Nothing,Function}=nothing)
Removes outliers (high and low points) in a LiDAR point cloud.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.radius
: Search Radius.elev_diff
: Max. elevation difference.use_median
: Optional flag indicating whether to use the difference from median elevation rather than mean.classify
: Classify points as ground (2) or off-ground (1).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_rooftop_analysis
— Functionlidar_rooftop_analysis(wbt_info::WhiteboxTools = wbt_info; buildings, output, i=nothing, radius=2.0, num_iter=50, num_samples=10, threshold=0.15, model_size=15, max_slope=65.0, norm_diff=10.0, azimuth=180.0, altitude=30.0, callback::Union{Nothing,Function}=nothing)
Identifies roof segments in a LiDAR point cloud.
Arguments
i
: Input LiDAR file.buildings
: Input vector build footprint polygons file.output
: Output vector polygon file.radius
: Search Radius.num_iter
: Number of iterations.num_samples
: Number of sample points on which to build the model.threshold
: Threshold used to determine inlier points (in elevation units).model_size
: Acceptable model size, in points.max_slope
: Maximum planar slope, in degrees.norm_diff
: Maximum difference in normal vectors, in degrees.azimuth
: Illumination source azimuth, in degrees.altitude
: Illumination source altitude in degrees.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_segmentation
— Functionlidar_segmentation(wbt_info::WhiteboxTools = wbt_info; i, output, radius=2.0, num_iter=50, num_samples=10, threshold=0.15, model_size=15, max_slope=80.0, norm_diff=10.0, maxzdiff=1.0, classes=false, ground=false, callback::Union{Nothing,Function}=nothing)
Segments a LiDAR point cloud based on differences in the orientation of fitted planar surfaces and point proximity.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.radius
: Search Radius.num_iter
: Number of iterations.num_samples
: Number of sample points on which to build the model.threshold
: Threshold used to determine inlier points.model_size
: Acceptable model size.max_slope
: Maximum planar slope.norm_diff
: Maximum difference in normal vectors, in degrees.maxzdiff
: Maximum difference in elevation (z units) between neighbouring points of the same segment.classes
: Segments don't cross class boundaries.ground
: Classify the largest segment as ground points?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_segmentation_based_filter
— Functionlidar_segmentation_based_filter(wbt_info::WhiteboxTools = wbt_info; i, output, radius=5.0, norm_diff=2.0, maxzdiff=1.0, classify=false, callback::Union{Nothing,Function}=nothing)
Identifies ground points within LiDAR point clouds using a segmentation based approach.
Arguments
i
: Input LiDAR file.output
: Output file.radius
: Search Radius.norm_diff
: Maximum difference in normal vectors, in degrees.maxzdiff
: Maximum difference in elevation (z units) between neighbouring points of the same segment.classify
: Classify points as ground (2) or off-ground (1).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_shift
— Functionlidar_shift(wbt_info::WhiteboxTools = wbt_info; i, output, x_shift="", y_shift="", z_shift="", callback::Union{Nothing,Function}=nothing)
Shifts the x,y,z coordinates of a LiDAR file.
Arguments
i
: Name of the input LiDAR points.output
: Name of the output LiDAR points.x_shift
: x-shift value, blank for none.y_shift
: y-shift value, blank for none.z_shift
: z-shift value, blank for none.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_thin
— Functionlidar_thin(wbt_info::WhiteboxTools = wbt_info; i, output, resolution=2.0, method="lowest", save_filtered=false, callback::Union{Nothing,Function}=nothing)
Thins a LiDAR point cloud, reducing point density.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.resolution
: The size of the square area used to evaluate nearby points in the LiDAR data.method
: Point selection method; options are 'first', 'last', 'lowest' (default), 'highest', 'nearest'.save_filtered
: Save filtered points to separate file?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_thin_high_density
— Functionlidar_thin_high_density(wbt_info::WhiteboxTools = wbt_info; i, output, density, resolution=1.0, save_filtered=false, callback::Union{Nothing,Function}=nothing)
Thins points from high density areas within a LiDAR point cloud.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.resolution
: Output raster's grid resolution.density
: Max. point density (points / m^3).save_filtered
: Save filtered points to separate file?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_tile
— Functionlidar_tile(wbt_info::WhiteboxTools = wbt_info; i, width=1000.0, height=1000.0, origin_x=0.0, origin_y=0.0, min_points=2, callback::Union{Nothing,Function}=nothing)
Tiles a LiDAR LAS file into multiple LAS files.
Arguments
i
: Input LiDAR file.width
: Width of tiles in the X dimension; default 1000.0.height
: Height of tiles in the Y dimension.origin_x
: Origin point X coordinate for tile grid.origin_y
: Origin point Y coordinate for tile grid.min_points
: Minimum number of points contained in a tile for it to be saved.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_tile_footprint
— Functionlidar_tile_footprint(wbt_info::WhiteboxTools = wbt_info; output, i=nothing, hull=false, callback::Union{Nothing,Function}=nothing)
Creates a vector polygon of the convex hull of a LiDAR point cloud. When the input/output parameters are not specified, the tool works with all LAS files contained within the working directory.
Arguments
i
: Input LiDAR file.output
: Output vector polygon file.hull
: Identify the convex hull around points.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_tin_gridding
— Functionlidar_tin_gridding(wbt_info::WhiteboxTools = wbt_info; i=nothing, output=nothing, parameter="elevation", returns="all", resolution=1.0, exclude_cls="7,18", minz=nothing, maxz=nothing, max_triangle_edge_length=nothing, callback::Union{Nothing,Function}=nothing)
Creates a raster grid based on a Delaunay triangular irregular network (TIN) fitted to LiDAR points.
Arguments
i
: Input LiDAR file (including extension).output
: Output raster file (including extension).parameter
: Interpolation parameter; options are 'elevation' (default), 'intensity', 'class', 'returnnumber', 'numberof_returns', 'scan angle', 'rgb', 'user data'.returns
: Point return types to include; options are 'all' (default), 'last', 'first'.resolution
: Output raster's grid resolution.exclude_cls
: Optional exclude classes from interpolation; Valid class values range from 0 to 18, based on LAS specifications. Example, –exclude_cls='3,4,5,6,7,18'.minz
: Optional minimum elevation for inclusion in interpolation.maxz
: Optional maximum elevation for inclusion in interpolation.max_triangle_edge_length
: Optional maximum triangle edge length; triangles larger than this size will not be gridded.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lidar_tophat_transform
— Functionlidar_tophat_transform(wbt_info::WhiteboxTools = wbt_info; i, output, radius=1.0, callback::Union{Nothing,Function}=nothing)
Performs a white top-hat transform on a Lidar dataset; as an estimate of height above ground, this is useful for modelling the vegetation canopy.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.radius
: Search Radius.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.line_detection_filter
— Functionline_detection_filter(wbt_info::WhiteboxTools = wbt_info; i, output, variant="vertical", absvals=false, clip=0.0, callback::Union{Nothing,Function}=nothing)
Performs a line-detection filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.variant
: Optional variant value. Options include 'v' (vertical), 'h' (horizontal), '45', and '135' (default is 'v').absvals
: Optional flag indicating whether outputs should be absolute values.clip
: Optional amount to clip the distribution tails by, in percent.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.line_intersections
— Functionline_intersections(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Identifies points where the features of two vector line layers intersect.
Arguments
input1
: Input vector polyline file.input2
: Input vector polyline file.output
: Output vector point file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.line_thinning
— Functionline_thinning(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Performs line thinning a on Boolean raster image; intended to be used with the RemoveSpurs tool.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.linearity_index
— Functionlinearity_index(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates the linearity index for vector polygons.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lines_to_polygons
— Functionlines_to_polygons(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts vector polylines to polygons.
Arguments
i
: Input vector line file.output
: Output vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.list_tools
— Functionlist_tools(keywords::Vector{String}=[""], wbt_info::WhiteboxTools = wbt_info; return_obj::Bool = false)
Lists all available tools in WhiteboxTools.
Whitebox.list_unique_values
— Functionlist_unique_values(wbt_info::WhiteboxTools = wbt_info; i, field, output, callback::Union{Nothing,Function}=nothing)
Lists the unique values contained in a field within a vector's attribute table.
Arguments
i
: Input raster file.field
: Input field name in attribute table.output
: Output HTML file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.ln
— Functionln(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the natural logarithm of values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.local_quadratic_regression
— Functionlocal_quadratic_regression(wbt_info::WhiteboxTools = wbt_info; dem, output, filter=3, callback::Union{Nothing,Function}=nothing)
This tool is an implementation of the constrained quadratic regression algorithm using a flexible window size described in Wood (1996).
Arguments
dem
: Name of the input DEM raster file.output
: Name of the output raster file.filter
: Edge length of the filter kernel.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.log10
— Functionlog10(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the base-10 logarithm of values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.log2
— Functionlog2(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the base-2 logarithm of values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.long_profile
— Functionlong_profile(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, dem, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Plots the stream longitudinal profiles for one or more rivers.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.dem
: Input raster DEM file.output
: Output HTML file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.long_profile_from_points
— Functionlong_profile_from_points(wbt_info::WhiteboxTools = wbt_info; d8_pntr, points, dem, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Plots the longitudinal profiles from flow-paths initiating from a set of vector points.
Arguments
d8_pntr
: Input raster D8 pointer file.points
: Input vector points file.dem
: Input raster DEM file.output
: Output HTML file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.longest_flowpath
— Functionlongest_flowpath(wbt_info::WhiteboxTools = wbt_info; dem, basins, output, callback::Union{Nothing,Function}=nothing)
Delineates the longest flowpaths for a group of subbasins or watersheds.
Arguments
dem
: Input raster DEM file.basins
: Input raster basins file.output
: Output vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.lowest_position
— Functionlowest_position(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Identifies the stack position of the minimum value within a raster stack on a cell-by-cell basis.
Arguments
inputs
: Input raster files.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.majority_filter
— Functionmajority_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Assigns each cell in the output grid the most frequently occurring value (mode) in a moving window centred on each grid cell in the input raster.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.map_off_terrain_objects
— Functionmap_off_terrain_objects(wbt_info::WhiteboxTools = wbt_info; dem, output, max_slope=40.0, min_size=1, callback::Union{Nothing,Function}=nothing)
Maps off-terrain objects in a digital elevation model (DEM).
Arguments
dem
: Input raster DEM file.output
: Output raster file.max_slope
: Maximum inter-cell absolute slope.min_size
: Minimum feature size, in grid cells.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max
— Functionmax(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a MAX operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_absolute_overlay
— Functionmax_absolute_overlay(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Evaluates the maximum absolute value for each grid cell from a stack of input rasters.
Arguments
inputs
: Input raster files.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_anisotropy_dev
— Functionmax_anisotropy_dev(wbt_info::WhiteboxTools = wbt_info; dem, out_mag, out_scale, max_scale, min_scale=3, step=2, callback::Union{Nothing,Function}=nothing)
Calculates the maximum anisotropy (directionality) in elevation deviation over a range of spatial scales.
Arguments
dem
: Input raster DEM file.out_mag
: Output raster DEVmax magnitude file.out_scale
: Output raster DEVmax scale file.min_scale
: Minimum search neighbourhood radius in grid cells.max_scale
: Maximum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_anisotropy_dev_signature
— Functionmax_anisotropy_dev_signature(wbt_info::WhiteboxTools = wbt_info; dem, points, output, max_scale, min_scale=1, step=1, callback::Union{Nothing,Function}=nothing)
Calculates the anisotropy in deviation from mean for points over a range of spatial scales.
Arguments
dem
: Input raster DEM file.points
: Input vector points file.output
: Output HTML file.min_scale
: Minimum search neighbourhood radius in grid cells.max_scale
: Maximum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_branch_length
— Functionmax_branch_length(wbt_info::WhiteboxTools = wbt_info; dem, output, log=false, callback::Union{Nothing,Function}=nothing)
Lindsay and Seibert's (2013) branch length index is used to map drainage divides or ridge lines.
Arguments
dem
: Input raster DEM file.output
: Output raster file.log
: Optional flag to request the output be log-transformed.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_difference_from_mean
— Functionmax_difference_from_mean(wbt_info::WhiteboxTools = wbt_info; dem, out_mag, out_scale, min_scale, max_scale, step=1, callback::Union{Nothing,Function}=nothing)
Calculates the maximum difference from mean elevation over a range of spatial scales.
Arguments
dem
: Input raster DEM file.out_mag
: Output raster DIFFmax magnitude file.out_scale
: Output raster DIFFmax scale file.min_scale
: Minimum search neighbourhood radius in grid cells.max_scale
: Maximum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_downslope_elev_change
— Functionmax_downslope_elev_change(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculates the maximum downslope change in elevation between a grid cell and its eight downslope neighbors.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_elev_dev_signature
— Functionmax_elev_dev_signature(wbt_info::WhiteboxTools = wbt_info; dem, points, output, min_scale, max_scale, step=10, callback::Union{Nothing,Function}=nothing)
Calculates the maximum elevation deviation over a range of spatial scales and for a set of points.
Arguments
dem
: Input raster DEM file.points
: Input vector points file.output
: Output HTML file.min_scale
: Minimum search neighbourhood radius in grid cells.max_scale
: Maximum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_elevation_deviation
— Functionmax_elevation_deviation(wbt_info::WhiteboxTools = wbt_info; dem, out_mag, out_scale, min_scale, max_scale, step=1, callback::Union{Nothing,Function}=nothing)
Calculates the maximum elevation deviation over a range of spatial scales.
Arguments
dem
: Input raster DEM file.out_mag
: Output raster DEVmax magnitude file.out_scale
: Output raster DEVmax scale file.min_scale
: Minimum search neighbourhood radius in grid cells.max_scale
: Maximum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_overlay
— Functionmax_overlay(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Evaluates the maximum value for each grid cell from a stack of input rasters.
Arguments
inputs
: Input raster files.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_upslope_elev_change
— Functionmax_upslope_elev_change(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculates the maximum upslope change in elevation between a grid cell and its eight downslope neighbors.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.max_upslope_flowpath_length
— Functionmax_upslope_flowpath_length(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Measures the maximum length of all upslope flowpaths draining each grid cell.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.maximal_curvature
— Functionmaximal_curvature(wbt_info::WhiteboxTools = wbt_info; dem, output, log=false, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a mean curvature raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.log
: Display output values using a log-scale.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.maximum_filter
— Functionmaximum_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Assigns each cell in the output grid the maximum value in a moving window centred on each grid cell in the input raster.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.md_inf_flow_accumulation
— Functionmd_inf_flow_accumulation(wbt_info::WhiteboxTools = wbt_info; dem, output, out_type="specific contributing area", exponent=1.1, threshold=nothing, log=false, clip=false, callback::Union{Nothing,Function}=nothing)
Calculates an FD8 flow accumulation raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.out_type
: Output type; one of 'cells', 'specific contributing area' (default), and 'catchment area'.exponent
: Optional exponent parameter; default is 1.1.threshold
: Optional convergence threshold parameter, in grid cells; default is infinity.log
: Optional flag to request the output be log-transformed.clip
: Optional flag to request clipping the display max by 1%.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.mean_curvature
— Functionmean_curvature(wbt_info::WhiteboxTools = wbt_info; dem, output, log=false, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a mean curvature raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.log
: Display output values using a log-scale.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.mean_filter
— Functionmean_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=3, filtery=3, callback::Union{Nothing,Function}=nothing)
Performs a mean filter (low-pass filter) on an input image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.median_filter
— Functionmedian_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, sig_digits=2, callback::Union{Nothing,Function}=nothing)
Performs a median filter on an input image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.sig_digits
: Number of significant digits.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.medoid
— Functionmedoid(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Calculates the medoid for a series of vector features contained in a shapefile.
Arguments
i
: Input vector file.output
: Output vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.merge_line_segments
— Functionmerge_line_segments(wbt_info::WhiteboxTools = wbt_info; i, output, snap=0.0, callback::Union{Nothing,Function}=nothing)
Merges vector line segments into larger features.
Arguments
i
: Input vector file.output
: Output vector file.snap
: Snap tolerance.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.merge_table_with_csv
— Functionmerge_table_with_csv(wbt_info::WhiteboxTools = wbt_info; i, pkey, csv, fkey, import_field=nothing, callback::Union{Nothing,Function}=nothing)
Merge a vector's attribute table with a table contained within a CSV text file.
Arguments
i
: Input primary vector file (i.e. the table to be modified).pkey
: Primary key field.csv
: Input CSV file (i.e. source of data to be imported).fkey
: Foreign key field.import_field
: Imported field (all fields will be imported if not specified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.merge_vectors
— Functionmerge_vectors(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Combines two or more input vectors of the same ShapeType creating a single, new output vector.
Arguments
inputs
: Input vector files.output
: Output vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.min
— Functionmin(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a MIN operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.min_absolute_overlay
— Functionmin_absolute_overlay(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Evaluates the minimum absolute value for each grid cell from a stack of input rasters.
Arguments
inputs
: Input raster files.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.min_downslope_elev_change
— Functionmin_downslope_elev_change(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculates the minimum downslope change in elevation between a grid cell and its eight downslope neighbors.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.min_max_contrast_stretch
— Functionmin_max_contrast_stretch(wbt_info::WhiteboxTools = wbt_info; i, output, min_val, max_val, num_tones=256, callback::Union{Nothing,Function}=nothing)
Performs a min-max contrast stretch on an input greytone image.
Arguments
i
: Input raster file.output
: Output raster file.min_val
: Lower tail clip value.max_val
: Upper tail clip value.num_tones
: Number of tones in the output image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.min_overlay
— Functionmin_overlay(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Evaluates the minimum value for each grid cell from a stack of input rasters.
Arguments
inputs
: Input raster files.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.minimal_curvature
— Functionminimal_curvature(wbt_info::WhiteboxTools = wbt_info; dem, output, log=false, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a mean curvature raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.log
: Display output values using a log-scale.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.minimum_bounding_box
— Functionminimum_bounding_box(wbt_info::WhiteboxTools = wbt_info; i, output, criterion="area", features=true, callback::Union{Nothing,Function}=nothing)
Creates a vector minimum bounding rectangle around vector features.
Arguments
i
: Input vector file.output
: Output vector polygon file.criterion
: Minimization criterion; options include 'area' (default), 'length', 'width', and 'perimeter'.features
: Find the minimum bounding rectangles around each individual vector feature.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.minimum_bounding_circle
— Functionminimum_bounding_circle(wbt_info::WhiteboxTools = wbt_info; i, output, features=true, callback::Union{Nothing,Function}=nothing)
Delineates the minimum bounding circle (i.e. smallest enclosing circle) for a group of vectors.
Arguments
i
: Input vector file.output
: Output vector polygon file.features
: Find the minimum bounding circle around each individual vector feature.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.minimum_bounding_envelope
— Functionminimum_bounding_envelope(wbt_info::WhiteboxTools = wbt_info; i, output, features=true, callback::Union{Nothing,Function}=nothing)
Creates a vector axis-aligned minimum bounding rectangle (envelope) around vector features.
Arguments
i
: Input vector file.output
: Output vector polygon file.features
: Find the minimum bounding envelop around each individual vector feature.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.minimum_convex_hull
— Functionminimum_convex_hull(wbt_info::WhiteboxTools = wbt_info; i, output, features=true, callback::Union{Nothing,Function}=nothing)
Creates a vector convex polygon around vector features.
Arguments
i
: Input vector file.output
: Output vector polygon file.features
: Find the hulls around each vector feature.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.minimum_filter
— Functionminimum_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Assigns each cell in the output grid the minimum value in a moving window centred on each grid cell in the input raster.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.modified_k_means_clustering
— Functionmodified_k_means_clustering(wbt_info::WhiteboxTools = wbt_info; inputs, output, out_html=nothing, start_clusters=1000, merge_dist=nothing, max_iterations=10, class_change=2.0, callback::Union{Nothing,Function}=nothing)
Performs a modified k-means clustering operation on a multi-spectral dataset.
Arguments
inputs
: Input raster files.output
: Output raster file.out_html
: Output HTML report file.start_clusters
: Initial number of clusters.merge_dist
: Cluster merger distance.max_iterations
: Maximum number of iterations.class_change
: Minimum percent of cells changed between iterations before completion.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.modify_no_data_value
— Functionmodify_no_data_value(wbt_info::WhiteboxTools = wbt_info; i, new_value="-32768.0", callback::Union{Nothing,Function}=nothing)
Converts nodata values in a raster to zero.
Arguments
i
: Input raster file.new_value
: New NoData value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.modulo
— Functionmodulo(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a modulo operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.mosaic
— Functionmosaic(wbt_info::WhiteboxTools = wbt_info; output, inputs=nothing, method="nn", callback::Union{Nothing,Function}=nothing)
Mosaics two or more images together.
Arguments
inputs
: Input raster files.output
: Output raster file.method
: Resampling method; options include 'nn' (nearest neighbour), 'bilinear', and 'cc' (cubic convolution).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.mosaic_with_feathering
— Functionmosaic_with_feathering(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, method="cc", weight=4.0, callback::Union{Nothing,Function}=nothing)
Mosaics two images together using a feathering technique in overlapping areas to reduce edge-effects.
Arguments
input1
: Input raster file to modify.input2
: Input reference raster file.output
: Output raster file.method
: Resampling method; options include 'nn' (nearest neighbour), 'bilinear', and 'cc' (cubic convolution).weight
: .callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.multi_part_to_single_part
— Functionmulti_part_to_single_part(wbt_info::WhiteboxTools = wbt_info; i, output, exclude_holes=true, callback::Union{Nothing,Function}=nothing)
Converts a vector file containing multi-part features into a vector containing only single-part features.
Arguments
i
: Input vector line or polygon file.output
: Output vector line or polygon file.exclude_holes
: Exclude hole parts from the feature splitting? (holes will continue to belong to their features in output.).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.multidirectional_hillshade
— Functionmultidirectional_hillshade(wbt_info::WhiteboxTools = wbt_info; dem, output, altitude=45.0, zfactor=nothing, full_mode=false, callback::Union{Nothing,Function}=nothing)
Calculates a multi-direction hillshade raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.altitude
: Illumination source altitude in degrees.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.full_mode
: Optional flag indicating whether to use full 360-degrees of illumination sources.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.multiply
— Functionmultiply(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a multiplication operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.multiscale_elevation_percentile
— Functionmultiscale_elevation_percentile(wbt_info::WhiteboxTools = wbt_info; dem, out_mag, out_scale, sig_digits=3, min_scale=4, step=1, num_steps=10, step_nonlinearity=1.0, callback::Union{Nothing,Function}=nothing)
Calculates surface roughness over a range of spatial scales.
Arguments
dem
: Input raster DEM file.out_mag
: Output raster roughness magnitude file.out_scale
: Output raster roughness scale file.sig_digits
: Number of significant digits.min_scale
: Minimum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.num_steps
: Number of steps.step_nonlinearity
: Step nonlinearity factor (1.0-2.0 is typical).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.multiscale_roughness
— Functionmultiscale_roughness(wbt_info::WhiteboxTools = wbt_info; dem, out_mag, out_scale, max_scale, min_scale=1, step=1, callback::Union{Nothing,Function}=nothing)
Calculates surface roughness over a range of spatial scales.
Arguments
dem
: Input raster DEM file.out_mag
: Output raster roughness magnitude file.out_scale
: Output raster roughness scale file.min_scale
: Minimum search neighbourhood radius in grid cells.max_scale
: Maximum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.multiscale_roughness_signature
— Functionmultiscale_roughness_signature(wbt_info::WhiteboxTools = wbt_info; dem, points, output, max_scale, min_scale=1, step=1, callback::Union{Nothing,Function}=nothing)
Calculates the surface roughness for points over a range of spatial scales.
Arguments
dem
: Input raster DEM file.points
: Input vector points file.output
: Output HTML file.min_scale
: Minimum search neighbourhood radius in grid cells.max_scale
: Maximum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.multiscale_std_dev_normals
— Functionmultiscale_std_dev_normals(wbt_info::WhiteboxTools = wbt_info; dem, out_mag, out_scale, min_scale=1, step=1, num_steps=10, step_nonlinearity=1.0, callback::Union{Nothing,Function}=nothing)
Calculates surface roughness over a range of spatial scales.
Arguments
dem
: Input raster DEM file.out_mag
: Output raster roughness magnitude file.out_scale
: Output raster roughness scale file.min_scale
: Minimum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.num_steps
: Number of steps.step_nonlinearity
: Step nonlinearity factor (1.0-2.0 is typical).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.multiscale_std_dev_normals_signature
— Functionmultiscale_std_dev_normals_signature(wbt_info::WhiteboxTools = wbt_info; dem, points, output, min_scale=1, step=1, num_steps=10, step_nonlinearity=1.0, callback::Union{Nothing,Function}=nothing)
Calculates the surface roughness for points over a range of spatial scales.
Arguments
dem
: Input raster DEM file.points
: Input vector points file.output
: Output HTML file.min_scale
: Minimum search neighbourhood radius in grid cells.step
: Step size as any positive non-zero integer.num_steps
: Number of steps.step_nonlinearity
: Step nonlinearity factor (1.0-2.0 is typical).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.multiscale_topographic_position_image
— Functionmultiscale_topographic_position_image(wbt_info::WhiteboxTools = wbt_info; localrast, meso, broad, output, lightness=1.2, callback::Union{Nothing,Function}=nothing)
Creates a multiscale topographic position image from three DEVmax rasters of differing spatial scale ranges.
Arguments
localrast
: Input local-scale topographic position (DEVmax) raster file.meso
: Input meso-scale topographic position (DEVmax) raster file.broad
: Input broad-scale topographic position (DEVmax) raster file.output
: Output raster file.lightness
: Image lightness value (default is 1.2).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.narrowness_index
— Functionnarrowness_index(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Calculates the narrowness of raster polygons.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.natural_neighbour_interpolation
— Functionnatural_neighbour_interpolation(wbt_info::WhiteboxTools = wbt_info; i, output, field=nothing, use_z=false, cell_size=nothing, base=nothing, clip=true, callback::Union{Nothing,Function}=nothing)
Creates a raster grid based on Sibson's natural neighbour method.
Arguments
i
: Input vector points file.field
: Input field name in attribute table.use_z
: Use the 'z' dimension of the Shapefile's geometry instead of an attribute field?.output
: Output raster file.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.clip
: Clip the data to the convex hull of the points?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.nearest_neighbour_gridding
— Functionnearest_neighbour_gridding(wbt_info::WhiteboxTools = wbt_info; i, field, output, use_z=false, cell_size=nothing, base=nothing, max_dist=nothing, callback::Union{Nothing,Function}=nothing)
Creates a raster grid based on a set of vector points and assigns grid values using the nearest neighbour.
Arguments
i
: Input vector Points file.field
: Input field name in attribute table.use_z
: Use z-coordinate instead of field?.output
: Output raster file.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.max_dist
: Maximum search distance (optional).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.negate
— Functionnegate(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Changes the sign of values in a raster or the 0-1 values of a Boolean raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.new_raster_from_base
— Functionnew_raster_from_base(wbt_info::WhiteboxTools = wbt_info; base, output, value="nodata", data_type="float", cell_size=nothing, callback::Union{Nothing,Function}=nothing)
Creates a new raster using a base image.
Arguments
base
: Input base raster file.output
: Output raster file.value
: Constant value to fill raster with; either 'nodata' or numeric value.data_type
: Output raster data type; options include 'double' (64-bit), 'float' (32-bit), and 'integer' (signed 16-bit) (default is 'float').cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.normal_vectors
— Functionnormal_vectors(wbt_info::WhiteboxTools = wbt_info; i, output, radius=1.0, callback::Union{Nothing,Function}=nothing)
Calculates normal vectors for points within a LAS file and stores these data (XYZ vector components) in the RGB field.
Arguments
i
: Input LiDAR file.output
: Output LiDAR file.radius
: Search Radius.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.normalized_difference_index
— Functionnormalized_difference_index(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, clip=0.0, correction=0.0, callback::Union{Nothing,Function}=nothing)
Calculate a normalized-difference index (NDI) from two bands of multispectral image data.
Arguments
input1
: Input image 1 (e.g. near-infrared band).input2
: Input image 2 (e.g. red band).output
: Output raster file.clip
: Optional amount to clip the distribution tails by, in percent.correction
: Optional adjustment value (e.g. 1, or 0.16 for the optimal soil adjusted vegetation index, OSAVI).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.not_equal_to
— Functionnot_equal_to(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a not-equal-to comparison operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.num_downslope_neighbours
— Functionnum_downslope_neighbours(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculates the number of downslope neighbours to each grid cell in a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.num_inflowing_neighbours
— Functionnum_inflowing_neighbours(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Computes the number of inflowing neighbours to each cell in an input DEM based on the D8 algorithm.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.num_upslope_neighbours
— Functionnum_upslope_neighbours(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculates the number of upslope neighbours to each grid cell in a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.olympic_filter
— Functionolympic_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Performs an olympic smoothing filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.opening
— Functionopening(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
An opening is a mathematical morphology operation involving a dilation (max filter) of an erosion (min filter) set.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.paired_sample_t_test
— Functionpaired_sample_t_test(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, num_samples=nothing, callback::Union{Nothing,Function}=nothing)
Performs a 2-sample K-S test for significant differences on two input rasters.
Arguments
input1
: First input raster file.input2
: Second input raster file.output
: Output HTML file.num_samples
: Number of samples. Leave blank to use whole image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.panchromatic_sharpening
— Functionpanchromatic_sharpening(wbt_info::WhiteboxTools = wbt_info; pan, output, red=nothing, green=nothing, blue=nothing, composite=nothing, method="brovey", callback::Union{Nothing,Function}=nothing)
Increases the spatial resolution of image data by combining multispectral bands with panchromatic data.
Arguments
red
: Input red band image file. Optionally specified if colour-composite not specified.green
: Input green band image file. Optionally specified if colour-composite not specified.blue
: Input blue band image file. Optionally specified if colour-composite not specified.composite
: Input colour-composite image file. Only used if individual bands are not specified.pan
: Input panchromatic band file.output
: Output colour composite file.method
: Options include 'brovey' (default) and 'ihs'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.patch_orientation
— Functionpatch_orientation(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates the orientation of vector polygons.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.pennock_landform_class
— Functionpennock_landform_class(wbt_info::WhiteboxTools = wbt_info; dem, output, slope=3.0, prof=0.1, plan=0.0, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Classifies hillslope zones based on slope, profile curvature, and plan curvature.
Arguments
dem
: Input raster DEM file.output
: Output raster file.slope
: Slope threshold value, in degrees (default is 3.0).prof
: Profile curvature threshold value (default is 0.1).plan
: Plan curvature threshold value (default is 0.0).zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.percent_elev_range
— Functionpercent_elev_range(wbt_info::WhiteboxTools = wbt_info; dem, output, filterx=3, filtery=3, callback::Union{Nothing,Function}=nothing)
Calculates percent of elevation range from a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.percent_equal_to
— Functionpercent_equal_to(wbt_info::WhiteboxTools = wbt_info; inputs, comparison, output, callback::Union{Nothing,Function}=nothing)
Calculates the percentage of a raster stack that have cell values equal to an input on a cell-by-cell basis.
Arguments
inputs
: Input raster files.comparison
: Input comparison raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.percent_greater_than
— Functionpercent_greater_than(wbt_info::WhiteboxTools = wbt_info; inputs, comparison, output, callback::Union{Nothing,Function}=nothing)
Calculates the percentage of a raster stack that have cell values greater than an input on a cell-by-cell basis.
Arguments
inputs
: Input raster files.comparison
: Input comparison raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.percent_less_than
— Functionpercent_less_than(wbt_info::WhiteboxTools = wbt_info; inputs, comparison, output, callback::Union{Nothing,Function}=nothing)
Calculates the percentage of a raster stack that have cell values less than an input on a cell-by-cell basis.
Arguments
inputs
: Input raster files.comparison
: Input comparison raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.percentage_contrast_stretch
— Functionpercentage_contrast_stretch(wbt_info::WhiteboxTools = wbt_info; i, output, clip=1.0, tail="both", num_tones=256, callback::Union{Nothing,Function}=nothing)
Performs a percentage linear contrast stretch on input images.
Arguments
i
: Input raster file.output
: Output raster file.clip
: Optional amount to clip the distribution tails by, in percent.tail
: Specified which tails to clip; options include 'upper', 'lower', and 'both' (default is 'both').num_tones
: Number of tones in the output image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.percentile_filter
— Functionpercentile_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, sig_digits=2, callback::Union{Nothing,Function}=nothing)
Performs a percentile filter on an input image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.sig_digits
: Number of significant digits.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.perimeter_area_ratio
— Functionperimeter_area_ratio(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates the perimeter-area ratio of vector polygons.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.pick_from_list
— Functionpick_from_list(wbt_info::WhiteboxTools = wbt_info; inputs, pos_input, output, callback::Union{Nothing,Function}=nothing)
Outputs the value from a raster stack specified by a position raster.
Arguments
inputs
: Input raster files.pos_input
: Input position raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.plan_curvature
— Functionplan_curvature(wbt_info::WhiteboxTools = wbt_info; dem, output, log=false, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a plan (contour) curvature raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.log
: Display output values using a log-scale.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.polygon_area
— Functionpolygon_area(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates the area of vector polygons.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.polygon_long_axis
— Functionpolygon_long_axis(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
This tool can be used to map the long axis of polygon features.
Arguments
i
: Input vector polygons file.output
: Output vector polyline file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.polygon_perimeter
— Functionpolygon_perimeter(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates the perimeter of vector polygons.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.polygon_short_axis
— Functionpolygon_short_axis(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
This tool can be used to map the short axis of polygon features.
Arguments
i
: Input vector polygons file.output
: Output vector polyline file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.polygonize
— Functionpolygonize(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Creates a polygon layer from two or more intersecting line features contained in one or more input vector line files.
Arguments
inputs
: Input vector polyline file.output
: Output vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.polygons_to_lines
— Functionpolygons_to_lines(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts vector polygons to polylines.
Arguments
i
: Input vector polygon file.output
: Output vector lines file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.power
— Functionpower(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Raises the values in grid cells of one rasters, or a constant value, by values in another raster or constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.prewitt_filter
— Functionprewitt_filter(wbt_info::WhiteboxTools = wbt_info; i, output, clip=0.0, callback::Union{Nothing,Function}=nothing)
Performs a Prewitt edge-detection filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.clip
: Optional amount to clip the distribution tails by, in percent.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.principal_component_analysis
— Functionprincipal_component_analysis(wbt_info::WhiteboxTools = wbt_info; inputs, output, num_comp=nothing, standardized=false, callback::Union{Nothing,Function}=nothing)
Performs a principal component analysis (PCA) on a multi-spectral dataset.
Arguments
inputs
: Input raster files.output
: Output HTML report file.num_comp
: Number of component images to output; <= to num. input images.standardized
: Perform standardized PCA?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.print_geo_tiff_tags
— Functionprint_geo_tiff_tags(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Prints the tags within a GeoTIFF.
Arguments
i
: Input GeoTIFF file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.profile
— Functionprofile(wbt_info::WhiteboxTools = wbt_info; lines, surface, output, callback::Union{Nothing,Function}=nothing)
Plots profiles from digital surface models.
Arguments
lines
: Input vector line file.surface
: Input raster surface file.output
: Output HTML file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.profile_curvature
— Functionprofile_curvature(wbt_info::WhiteboxTools = wbt_info; dem, output, log=false, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a profile curvature raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.log
: Display output values using a log-scale.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.qin_flow_accumulation
— Functionqin_flow_accumulation(wbt_info::WhiteboxTools = wbt_info; dem, output, out_type="specific contributing area", exponent=10.0, max_slope=45.0, threshold=nothing, log=false, clip=false, callback::Union{Nothing,Function}=nothing)
This tool calculates Qin et al. (2007) flow accumulation.
Arguments
dem
: Name of the input DEM raster file; must be depressionless.output
: Name of the output raster file.out_type
: Output type; one of 'cells', 'specific contributing area' (default), and 'catchment area'.exponent
: Optional upper-bound exponent parameter; default is 10.0.max_slope
: Optional upper-bound slope parameter, in degrees (0-90); default is 45.0.threshold
: Optional convergence threshold parameter, in grid cells; default is infinity.log
: Log-transform the output values?.clip
: Optional flag to request clipping the display max by 1%.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.quantiles
— Functionquantiles(wbt_info::WhiteboxTools = wbt_info; i, output, num_quantiles=5, callback::Union{Nothing,Function}=nothing)
Transforms raster values into quantiles.
Arguments
i
: Input raster file.output
: Output raster file.num_quantiles
: Number of quantiles.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.quinn_flow_accumulation
— Functionquinn_flow_accumulation(wbt_info::WhiteboxTools = wbt_info; dem, output, out_type="specific contributing area", exponent=1.0, threshold=nothing, log=false, clip=false, callback::Union{Nothing,Function}=nothing)
This tool calculates Quinn et al. (1995) flow accumulation.
Arguments
dem
: Name of the input DEM raster file; must be depressionless.output
: Name of the output raster file.out_type
: Output type; one of 'cells', 'specific contributing area' (default), and 'catchment area'.exponent
: Optional exponent parameter; default is 1.0.threshold
: Optional convergence threshold parameter, in grid cells; default is infinity.log
: Log-transform the output values?.clip
: Optional flag to request clipping the display max by 1%.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.radial_basis_function_interpolation
— Functionradial_basis_function_interpolation(wbt_info::WhiteboxTools = wbt_info; i, field, output, use_z=false, radius=nothing, min_points=nothing, func_type="ThinPlateSpline", poly_order="none", weight=0.1, cell_size=nothing, base=nothing, callback::Union{Nothing,Function}=nothing)
Interpolates vector points into a raster surface using a radial basis function scheme.
Arguments
i
: Input vector points file.field
: Input field name in attribute table.use_z
: Use z-coordinate instead of field?.output
: Output raster file.radius
: Search Radius (in map units).min_points
: Minimum number of points.func_type
: Radial basis function type; options are 'ThinPlateSpline' (default), 'PolyHarmonic', 'Gaussian', 'MultiQuadric', 'InverseMultiQuadric'.poly_order
: Polynomial order; options are 'none' (default), 'constant', 'affine'.weight
: Weight parameter used in basis function.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.radius_of_gyration
— Functionradius_of_gyration(wbt_info::WhiteboxTools = wbt_info; i, output, text_output=false, callback::Union{Nothing,Function}=nothing)
Calculates the distance of cells from their polygon's centroid.
Arguments
i
: Input raster file.output
: Output raster file.text_output
: Optional text output.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raise_walls
— Functionraise_walls(wbt_info::WhiteboxTools = wbt_info; i, dem, output, breach=nothing, height=100.0, callback::Union{Nothing,Function}=nothing)
Raises walls in a DEM along a line or around a polygon, e.g. a watershed.
Arguments
i
: Input vector lines or polygons file.breach
: Optional input vector breach lines.dem
: Input raster DEM file.output
: Output raster file.height
: Wall height.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.random_field
— Functionrandom_field(wbt_info::WhiteboxTools = wbt_info; base, output, callback::Union{Nothing,Function}=nothing)
Creates an image containing random values.
Arguments
base
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.random_sample
— Functionrandom_sample(wbt_info::WhiteboxTools = wbt_info; base, output, num_samples=1000, callback::Union{Nothing,Function}=nothing)
Creates an image containing randomly located sample grid cells with unique IDs.
Arguments
base
: Input raster file.output
: Output raster file.num_samples
: Number of samples.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.range_filter
— Functionrange_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Assigns each cell in the output grid the range of values in a moving window centred on each grid cell in the input raster.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_area
— Functionraster_area(wbt_info::WhiteboxTools = wbt_info; i, output=nothing, out_text=false, units="grid cells", zero_back=false, callback::Union{Nothing,Function}=nothing)
Calculates the area of polygons or classes within a raster image.
Arguments
i
: Input raster file.output
: Output raster file.out_text
: Would you like to output polygon areas to text?.units
: Area units; options include 'grid cells' and 'map units'.zero_back
: Flag indicating whether zero values should be treated as a background.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_calculator
— Functionraster_calculator(wbt_info::WhiteboxTools = wbt_info; output, statement="", callback::Union{Nothing,Function}=nothing)
This tool performs a complex mathematical operations on one or more input raster images on a cell-to-cell basis.
Arguments
statement
: Statement e.g. cos("raster1") * 35.0 + "raster2". This statement must be a valid Rust statement.output
: Name of the output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_cell_assignment
— Functionraster_cell_assignment(wbt_info::WhiteboxTools = wbt_info; i, output, assign="column", callback::Union{Nothing,Function}=nothing)
Assign row or column number to cells.
Arguments
i
: Input raster file.output
: Output raster file.assign
: Which variable would you like to assign to grid cells? Options include 'column', 'row', 'x', and 'y'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_histogram
— Functionraster_histogram(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Creates a histogram from raster values.
Arguments
i
: Input raster file.output
: Output HTML file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_perimeter
— Functionraster_perimeter(wbt_info::WhiteboxTools = wbt_info; i, output=nothing, out_text=false, units="grid cells", zero_back=false, callback::Union{Nothing,Function}=nothing)
Calculates the perimeters of polygons or classes within a raster image.
Arguments
i
: Input raster file.output
: Output raster file.out_text
: Would you like to output polygon areas to text?.units
: Area units; options include 'grid cells' and 'map units'.zero_back
: Flag indicating whether zero values should be treated as a background.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_streams_to_vector
— Functionraster_streams_to_vector(wbt_info::WhiteboxTools = wbt_info; streams, d8_pntr, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Converts a raster stream file into a vector file.
Arguments
streams
: Input raster streams file.d8_pntr
: Input raster D8 pointer file.output
: Output vector file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_summary_stats
— Functionraster_summary_stats(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Measures a rasters min, max, average, standard deviation, num. non-nodata cells, and total.
Arguments
i
: Input raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_to_vector_lines
— Functionraster_to_vector_lines(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts a raster lines features into a vector of the POLYLINE shapetype.
Arguments
i
: Input raster lines file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_to_vector_points
— Functionraster_to_vector_points(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts a raster dataset to a vector of the POINT shapetype.
Arguments
i
: Input raster file.output
: Output vector points file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.raster_to_vector_polygons
— Functionraster_to_vector_polygons(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts a raster dataset to a vector of the POLYGON shapetype.
Arguments
i
: Input raster file.output
: Output vector polygons file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.rasterize_streams
— Functionrasterize_streams(wbt_info::WhiteboxTools = wbt_info; streams, base, output, nodata=true, feature_id=false, callback::Union{Nothing,Function}=nothing)
Rasterizes vector streams based on Lindsay (2016) method.
Arguments
streams
: Input vector streams file.base
: Input base raster file.output
: Output raster file.nodata
: Use NoData value for background?.feature_id
: Use feature number as output value?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.reciprocal
— Functionreciprocal(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the reciprocal (i.e. 1 / z) of values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.reclass
— Functionreclass(wbt_info::WhiteboxTools = wbt_info; i, output, reclass_vals, assign_mode=false, callback::Union{Nothing,Function}=nothing)
Reclassifies the values in a raster image.
Arguments
i
: Input raster file.output
: Output raster file.reclass_vals
: Reclassification triplet values (new value; from value; to less than), e.g. '0.0;0.0;1.0;1.0;1.0;2.0'.assign_mode
: Optional Boolean flag indicating whether to operate in assign mode, reclass_vals values are interpreted as new value; old value pairs.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.reclass_equal_interval
— Functionreclass_equal_interval(wbt_info::WhiteboxTools = wbt_info; i, output, interval=10.0, start_val=nothing, end_val=nothing, callback::Union{Nothing,Function}=nothing)
Reclassifies the values in a raster image based on equal-ranges.
Arguments
i
: Input raster file.output
: Output raster file.interval
: Class interval size.start_val
: Optional starting value (default is input minimum value).end_val
: Optional ending value (default is input maximum value).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.reclass_from_file
— Functionreclass_from_file(wbt_info::WhiteboxTools = wbt_info; i, reclass_file, output, callback::Union{Nothing,Function}=nothing)
Reclassifies the values in a raster image using reclass ranges in a text file.
Arguments
i
: Input raster file.reclass_file
: Input text file containing reclass ranges.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.reinitialize_attribute_table
— Functionreinitialize_attribute_table(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Reinitializes a vector's attribute table deleting all fields but the feature ID (FID).
Arguments
i
: Input vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.related_circumscribing_circle
— Functionrelated_circumscribing_circle(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates the related circumscribing circle of vector polygons.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.relative_aspect
— Functionrelative_aspect(wbt_info::WhiteboxTools = wbt_info; dem, output, azimuth=0.0, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates relative aspect (relative to a user-specified direction) from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.azimuth
: Illumination source azimuth.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.relative_topographic_position
— Functionrelative_topographic_position(wbt_info::WhiteboxTools = wbt_info; dem, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Calculates the relative topographic position index from a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.remove_off_terrain_objects
— Functionremove_off_terrain_objects(wbt_info::WhiteboxTools = wbt_info; dem, output, filter=11, slope=15.0, callback::Union{Nothing,Function}=nothing)
Removes off-terrain objects from a raster digital elevation model (DEM).
Arguments
dem
: Input raster DEM file.output
: Output raster file.filter
: Filter size (cells).slope
: Slope threshold value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.remove_polygon_holes
— Functionremove_polygon_holes(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Removes holes within the features of a vector polygon file.
Arguments
i
: Input vector polygon file.output
: Output vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.remove_short_streams
— Functionremove_short_streams(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, min_length, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Removes short first-order streams from a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.min_length
: Minimum tributary length (in map units) used for network pruning.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.remove_spurs
— Functionremove_spurs(wbt_info::WhiteboxTools = wbt_info; i, output, iterations=10, callback::Union{Nothing,Function}=nothing)
Removes the spurs (pruning operation) from a Boolean line image; intended to be used on the output of the LineThinning tool.
Arguments
i
: Input raster file.output
: Output raster file.iterations
: Maximum number of iterations.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.resample
— Functionresample(wbt_info::WhiteboxTools = wbt_info; inputs, output, cell_size=nothing, base=nothing, method="cc", callback::Union{Nothing,Function}=nothing)
Resamples one or more input images into a destination image.
Arguments
inputs
: Input raster files.output
: Output raster file.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.method
: Resampling method; options include 'nn' (nearest neighbour), 'bilinear', and 'cc' (cubic convolution).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.rescale_value_range
— Functionrescale_value_range(wbt_info::WhiteboxTools = wbt_info; i, output, out_min_val, out_max_val, clip_min=nothing, clip_max=nothing, callback::Union{Nothing,Function}=nothing)
Performs a min-max contrast stretch on an input greytone image.
Arguments
i
: Input raster file.output
: Output raster file.out_min_val
: New minimum value in output image.out_max_val
: New maximum value in output image.clip_min
: Optional lower tail clip value.clip_max
: Optional upper tail clip value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.rgb_to_ihs
— Functionrgb_to_ihs(wbt_info::WhiteboxTools = wbt_info; intensity, hue, saturation, red=nothing, green=nothing, blue=nothing, composite=nothing, callback::Union{Nothing,Function}=nothing)
Converts red, green, and blue (RGB) images into intensity, hue, and saturation (IHS) images.
Arguments
red
: Input red band image file. Optionally specified if colour-composite not specified.green
: Input green band image file. Optionally specified if colour-composite not specified.blue
: Input blue band image file. Optionally specified if colour-composite not specified.composite
: Input colour-composite image file. Only used if individual bands are not specified.intensity
: Output intensity raster file.hue
: Output hue raster file.saturation
: Output saturation raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.rho8_flow_accumulation
— Functionrho8_flow_accumulation(wbt_info::WhiteboxTools = wbt_info; i, output, out_type="specific contributing area", log=false, clip=false, pntr=false, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
This tool calculates Fairfield and Leymarie (1991) flow accumulation.
Arguments
i
: Input DEM or Rho8 pointer file; if a DEM is used, it must be depressionless.output
: Name of the output raster file.out_type
: Output type; one of 'cells', 'specific contributing area' (default), and 'catchment area'.log
: Log-transform the output values?.clip
: Optional flag to request clipping the display max by 1%.pntr
: Is the input raster a Rho8 flow pointer rather than a DEM?.esri_pntr
: Does the input Rho8 pointer use the ESRI style scheme?.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.rho8_pointer
— Functionrho8_pointer(wbt_info::WhiteboxTools = wbt_info; dem, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Calculates a stochastic Rho8 flow pointer raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.roberts_cross_filter
— Functionroberts_cross_filter(wbt_info::WhiteboxTools = wbt_info; i, output, clip=0.0, callback::Union{Nothing,Function}=nothing)
Performs a Robert's cross edge-detection filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.clip
: Optional amount to clip the distribution tails by, in percent.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.root_mean_square_error
— Functionroot_mean_square_error(wbt_info::WhiteboxTools = wbt_info; i, base, callback::Union{Nothing,Function}=nothing)
Calculates the RMSE and other accuracy statistics.
Arguments
i
: Input raster file.base
: Input base raster file used for comparison.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.round
— Functionround(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Rounds the values in an input raster to the nearest integer value.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.ruggedness_index
— Functionruggedness_index(wbt_info::WhiteboxTools = wbt_info; dem, output, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates the Riley et al.'s (1999) terrain ruggedness index from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.run_tool
— Functionrun_tool(tool_name::String, wbt_info::WhiteboxTools = wbt_info; callback=nothing, args::Union{Nothing, Vector{Any}}=nothing)
Runs a tool and specifies tool arguments. Returns 0 if completes without error. Returns 1 on error with details.
Returns 2 if process is cancelled by user.
Whitebox.scharr_filter
— Functionscharr_filter(wbt_info::WhiteboxTools = wbt_info; i, output, clip=0.0, callback::Union{Nothing,Function}=nothing)
Performs a Scharr edge-detection filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.clip
: Optional amount to clip the distribution tails by, in percent.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.sediment_transport_index
— Functionsediment_transport_index(wbt_info::WhiteboxTools = wbt_info; sca, slope, output, sca_exponent=0.4, slope_exponent=1.3, callback::Union{Nothing,Function}=nothing)
Calculates the sediment transport index.
Arguments
sca
: Input raster specific contributing area (SCA) file.slope
: Input raster slope file.output
: Output raster file.sca_exponent
: SCA exponent value.slope_exponent
: Slope exponent value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.select_tiles_by_polygon
— Functionselect_tiles_by_polygon(wbt_info::WhiteboxTools = wbt_info; indir, outdir, polygons, callback::Union{Nothing,Function}=nothing)
Copies LiDAR tiles overlapping with a polygon into an output directory.
Arguments
indir
: Input LAS file source directory.outdir
: Output directory into which LAS files within the polygon are copied.polygons
: Input vector polygons file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.set_compress_rasters
— Functionset_compress_rasters(compress_rasters::Bool, wbt_info::WhiteboxTools = wbt_info)
Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
Whitebox.set_nodata_value
— Functionset_nodata_value(wbt_info::WhiteboxTools = wbt_info; i, output, back_value=0.0, callback::Union{Nothing,Function}=nothing)
Assign a specified value in an input image to the NoData value.
Arguments
i
: Input raster file.output
: Output raster file.back_value
: Background value to set to nodata.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.set_verbose_mode
— Functionset_verbose_mode(val::Bool=true, wbt_info::WhiteboxTools = wbt_info)
Sets verbose mode. If verbose mode is False, tools will not print output messages. Tools will frequently provide substantial feedback while they are operating, e.g. updating progress for various sub-routines. When the user has scripted a workflow that ties many tools in sequence, this level of tool output can be problematic. By setting verbose mode to False, these
Whitebox.set_whitebox_dir
— Functionset_whitebox_dir(path_str::String, wbt_info::WhiteboxTools = wbt_info)
Sets the directory to the WhiteboxTools executable file.
Whitebox.set_working_dir
— Functionset_working_dir(path_str::String, wbt_info::WhiteboxTools = wbt_info)
Sets the working directory, i.e. the directory in which the data files are located. By setting the working directory, tool input parameters that are files need only specify the file name rather than the complete file path.
Whitebox.shape_complexity_index
— Functionshape_complexity_index(wbt_info::WhiteboxTools = wbt_info; i, callback::Union{Nothing,Function}=nothing)
Calculates overall polygon shape complexity or irregularity.
Arguments
i
: Input vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.shape_complexity_index_raster
— Functionshape_complexity_index_raster(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Calculates the complexity of raster polygons or classes.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.shreve_stream_magnitude
— Functionshreve_stream_magnitude(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Assigns the Shreve stream magnitude to each link in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.sigmoidal_contrast_stretch
— Functionsigmoidal_contrast_stretch(wbt_info::WhiteboxTools = wbt_info; i, output, cutoff=0.0, gain=1.0, num_tones=256, callback::Union{Nothing,Function}=nothing)
Performs a sigmoidal contrast stretch on input images.
Arguments
i
: Input raster file.output
: Output raster file.cutoff
: Cutoff value between 0.0 and 0.95.gain
: Gain value.num_tones
: Number of tones in the output image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.sin
— Functionsin(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the sine (sin) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.single_part_to_multi_part
— Functionsingle_part_to_multi_part(wbt_info::WhiteboxTools = wbt_info; i, output, field=nothing, callback::Union{Nothing,Function}=nothing)
Converts a vector file containing multi-part features into a vector containing only single-part features.
Arguments
i
: Input vector line or polygon file.field
: Grouping ID field name in attribute table.output
: Output vector line or polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.sinh
— Functionsinh(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the hyperbolic sine (sinh) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.sink
— Functionsink(wbt_info::WhiteboxTools = wbt_info; i, output, zero_background=false, callback::Union{Nothing,Function}=nothing)
Identifies the depressions in a DEM, giving each feature a unique identifier.
Arguments
i
: Input raster DEM file.output
: Output raster file.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.slope
— Functionslope(wbt_info::WhiteboxTools = wbt_info; dem, output, zfactor=nothing, units="degrees", callback::Union{Nothing,Function}=nothing)
Calculates a slope raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.units
: Units of output raster; options include 'degrees', 'radians', 'percent'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.slope_vs_elevation_plot
— Functionslope_vs_elevation_plot(wbt_info::WhiteboxTools = wbt_info; inputs, output, watershed=nothing, callback::Union{Nothing,Function}=nothing)
Creates a slope vs. elevation plot for one or more DEMs.
Arguments
inputs
: Input DEM files.watershed
: Input watershed files (optional).output
: Output HTML file (default name will be based on input file if unspecified).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.smooth_vectors
— Functionsmooth_vectors(wbt_info::WhiteboxTools = wbt_info; i, output, filter=3, callback::Union{Nothing,Function}=nothing)
Smooths a vector coverage of either a POLYLINE or POLYGON base ShapeType.
Arguments
i
: Input vector POLYLINE or POLYGON file.output
: Output vector file.filter
: The filter size, any odd integer greater than or equal to 3; default is 3.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.snap_pour_points
— Functionsnap_pour_points(wbt_info::WhiteboxTools = wbt_info; pour_pts, flow_accum, output, snap_dist, callback::Union{Nothing,Function}=nothing)
Moves outlet points used to specify points of interest in a watershedding operation to the cell with the highest flow accumulation in its neighbourhood.
Arguments
pour_pts
: Input vector pour points (outlet) file.flow_accum
: Input raster D8 flow accumulation file.output
: Output vector file.snap_dist
: Maximum snap distance in map units.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.sobel_filter
— Functionsobel_filter(wbt_info::WhiteboxTools = wbt_info; i, output, variant="3x3", clip=0.0, callback::Union{Nothing,Function}=nothing)
Performs a Sobel edge-detection filter on an image.
Arguments
i
: Input raster file.output
: Output raster file.variant
: Optional variant value. Options include 3x3 and 5x5 (default is 3x3).clip
: Optional amount to clip the distribution tails by, in percent (default is 0.0).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.spherical_std_dev_of_normals
— Functionspherical_std_dev_of_normals(wbt_info::WhiteboxTools = wbt_info; dem, output, filter=11, callback::Union{Nothing,Function}=nothing)
Calculates the spherical standard deviation of surface normals for a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.filter
: Size of the filter kernel.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.split_colour_composite
— Functionsplit_colour_composite(wbt_info::WhiteboxTools = wbt_info; i, red=nothing, green=nothing, blue=nothing, callback::Union{Nothing,Function}=nothing)
This tool splits an RGB colour composite image into separate multispectral images.
Arguments
i
: Input colour composite image file.red
: Output red band file.green
: Output green band file.blue
: Output blue band file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.split_vector_lines
— Functionsplit_vector_lines(wbt_info::WhiteboxTools = wbt_info; i, output, length=nothing, callback::Union{Nothing,Function}=nothing)
This tool can be used to split a vector line coverage into even-lengthed segments.
Arguments
i
: Name of the input lines shapefile.output
: Name of the output lines shapefile.length
: Maximum segment length (m).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.split_with_lines
— Functionsplit_with_lines(wbt_info::WhiteboxTools = wbt_info; i, split, output, callback::Union{Nothing,Function}=nothing)
Splits the lines or polygons in one layer using the lines in another layer.
Arguments
i
: Input vector line or polygon file.split
: Input vector polyline file.output
: Output vector file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.square
— Functionsquare(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Squares the values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.square_root
— Functionsquare_root(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the square root of the values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.standard_deviation_contrast_stretch
— Functionstandard_deviation_contrast_stretch(wbt_info::WhiteboxTools = wbt_info; i, output, stdev=2.0, num_tones=256, callback::Union{Nothing,Function}=nothing)
Performs a standard-deviation contrast stretch on input images.
Arguments
i
: Input raster file.output
: Output raster file.stdev
: Standard deviation clip value.num_tones
: Number of tones in the output image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.standard_deviation_filter
— Functionstandard_deviation_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Assigns each cell in the output grid the standard deviation of values in a moving window centred on each grid cell in the input raster.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.standard_deviation_of_slope
— Functionstandard_deviation_of_slope(wbt_info::WhiteboxTools = wbt_info; i, output, zfactor=nothing, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Calculates the standard deviation of slope from an input DEM.
Arguments
i
: Input raster DEM file.output
: Output raster DEM file.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.stochastic_depression_analysis
— Functionstochastic_depression_analysis(wbt_info::WhiteboxTools = wbt_info; dem, output, rmse, range, iterations=100, callback::Union{Nothing,Function}=nothing)
Performs a stochastic analysis of depressions within a DEM.
Arguments
dem
: Input raster DEM file.output
: Output file.rmse
: The DEM's root-mean-square-error (RMSE), in z units. This determines error magnitude.range
: The error field's correlation length, in xy-units.iterations
: The number of iterations.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.strahler_order_basins
— Functionstrahler_order_basins(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Identifies Strahler-order basins from an input stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.strahler_stream_order
— Functionstrahler_stream_order(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Assigns the Strahler stream order to each link in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.stream_link_class
— Functionstream_link_class(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Identifies the exterior/interior links and nodes in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.stream_link_identifier
— Functionstream_link_identifier(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Assigns a unique identifier to each link in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.stream_link_length
— Functionstream_link_length(wbt_info::WhiteboxTools = wbt_info; d8_pntr, linkid, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Estimates the length of each link (or tributary) in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.linkid
: Input raster streams link ID (or tributary ID) file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.stream_link_slope
— Functionstream_link_slope(wbt_info::WhiteboxTools = wbt_info; d8_pntr, linkid, dem, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Estimates the average slope of each link (or tributary) in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.linkid
: Input raster streams link ID (or tributary ID) file.dem
: Input raster DEM file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.stream_power_index
— Functionstream_power_index(wbt_info::WhiteboxTools = wbt_info; sca, slope, output, exponent=1.0, callback::Union{Nothing,Function}=nothing)
Calculates the relative stream power index.
Arguments
sca
: Input raster specific contributing area (SCA) file.slope
: Input raster slope file.output
: Output raster file.exponent
: SCA exponent value.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.stream_slope_continuous
— Functionstream_slope_continuous(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, dem, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Estimates the slope of each grid cell in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.dem
: Input raster DEM file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.subbasins
— Functionsubbasins(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Identifies the catchments, or sub-basin, draining to each link in a stream network.
Arguments
d8_pntr
: Input D8 pointer raster file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.subtract
— Functionsubtract(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a differencing operation on two rasters or a raster and a constant value.
Arguments
input1
: Input raster file or constant value.input2
: Input raster file or constant value.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.sum_overlay
— Functionsum_overlay(wbt_info::WhiteboxTools = wbt_info; inputs, output, callback::Union{Nothing,Function}=nothing)
Calculates the sum for each grid cell from a group of raster images.
Arguments
inputs
: Input raster files.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.surface_area_ratio
— Functionsurface_area_ratio(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Calculates a the surface area ratio of each grid cell in an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.symmetrical_difference
— Functionsymmetrical_difference(wbt_info::WhiteboxTools = wbt_info; i, overlay, output, snap=0.0, callback::Union{Nothing,Function}=nothing)
Outputs the features that occur in one of the two vector inputs but not both, i.e. no overlapping features.
Arguments
i
: Input vector file.overlay
: Input overlay vector file.output
: Output vector file.snap
: Snap tolerance.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.tan
— Functiontan(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the tangent (tan) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.tangential_curvature
— Functiontangential_curvature(wbt_info::WhiteboxTools = wbt_info; dem, output, log=false, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a tangential curvature raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.log
: Display output values using a log-scale.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.tanh
— Functiontanh(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Returns the hyperbolic tangent (tanh) of each values in a raster.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.thicken_raster_line
— Functionthicken_raster_line(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Thickens single-cell wide lines within a raster image.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.time_in_daylight
— Functiontime_in_daylight(wbt_info::WhiteboxTools = wbt_info; dem, output, lat, long, az_fraction=10.0, max_dist=100.0, utc_offset="00:00", start_day=1, end_day=365, start_time="00:00:00", end_time="23:59:59", callback::Union{Nothing,Function}=nothing)
Calculates the proportion of time a location is not within an area of shadow.
Arguments
dem
: Input raster DEM file.output
: Output raster file.az_fraction
: Azimuth fraction in degrees.max_dist
: Optional maximum search distance. Minimum value is 5 x cell size.lat
: Centre point latitude.long
: Centre point longitude.utc_offset
: UTC time offset, in hours (e.g. -04:00, +06:00).start_day
: Start day of the year (1-365).end_day
: End day of the year (1-365).start_time
: Starting hour to track shadows (e.g. 5, 5:00, 05:00:00). Assumes 24-hour time: HH:MM:SS. 'sunrise' is also a valid time.end_time
: Starting hour to track shadows (e.g. 21, 21:00, 21:00:00). Assumes 24-hour time: HH:MM:SS. 'sunset' is also a valid time.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.tin_gridding
— Functiontin_gridding(wbt_info::WhiteboxTools = wbt_info; i, output, field=nothing, use_z=false, resolution=nothing, base=nothing, max_triangle_edge_length=nothing, callback::Union{Nothing,Function}=nothing)
Creates a raster grid based on a triangular irregular network (TIN) fitted to vector points.
Arguments
i
: Input vector points file.field
: Input field name in attribute table.use_z
: Use the 'z' dimension of the Shapefile's geometry instead of an attribute field?.output
: Output raster file.resolution
: Output raster's grid resolution.base
: Optionally specified input base raster file. Not used when a cell size is specified.max_triangle_edge_length
: Optional maximum triangle edge length; triangles larger than this size will not be gridded.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.to_camelcase
— Methodto_camelcase(name::String)
Convert snake_case name to CamelCase name
Whitebox.to_degrees
— Functionto_degrees(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts a raster from radians to degrees.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.to_radians
— Functionto_radians(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Converts a raster from degrees to radians.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.to_snakecase
— Methodto_snakecase(name::String)
Convert CamelCase name to snake_case name
Whitebox.tool_help
— Functiontool_help(tool_name::String, wbt_info::WhiteboxTools = wbt_info)
Retrieves the help description for a specific tool.
Whitebox.tool_parameters
— Functiontool_parameters(tool_name::String, wbt_info::WhiteboxTools = wbt_info; return_obj::Bool = false)
Retrieves the tool parameter descriptions for a specific tool.
Whitebox.toolbox
— Functiontoolbox(tool_name::String="", wbt_info::WhiteboxTools = wbt_info; return_obj::Bool=false)
Retrieves the toolbox for a specific tool.
Whitebox.tophat_transform
— Functiontophat_transform(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, variant="white", callback::Union{Nothing,Function}=nothing)
Performs either a white or black top-hat transform on an input image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.variant
: Optional variant value. Options include 'white' and 'black'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.topological_stream_order
— Functiontopological_stream_order(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Assigns each link in a stream network its topological order.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.total_curvature
— Functiontotal_curvature(wbt_info::WhiteboxTools = wbt_info; dem, output, log=false, zfactor=nothing, callback::Union{Nothing,Function}=nothing)
Calculates a total curvature raster from an input DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.log
: Display output values using a log-scale.zfactor
: Optional multiplier for when the vertical and horizontal units are not the same.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.total_filter
— Functiontotal_filter(wbt_info::WhiteboxTools = wbt_info; i, output, filterx=11, filtery=11, callback::Union{Nothing,Function}=nothing)
Performs a total filter on an input image.
Arguments
i
: Input raster file.output
: Output raster file.filterx
: Size of the filter kernel in the x-direction.filtery
: Size of the filter kernel in the y-direction.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.trace_downslope_flowpaths
— Functiontrace_downslope_flowpaths(wbt_info::WhiteboxTools = wbt_info; seed_pts, d8_pntr, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Traces downslope flowpaths from one or more target sites (i.e. seed points).
Arguments
seed_pts
: Input vector seed points file.d8_pntr
: Input D8 pointer raster file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.trend_surface
— Functiontrend_surface(wbt_info::WhiteboxTools = wbt_info; i, output, order=1, callback::Union{Nothing,Function}=nothing)
Estimates the trend surface of an input raster file.
Arguments
i
: Input raster file.output
: Output raster file.order
: Polynomial order (1 to 10).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.trend_surface_vector_points
— Functiontrend_surface_vector_points(wbt_info::WhiteboxTools = wbt_info; i, field, output, cell_size, order=1, callback::Union{Nothing,Function}=nothing)
Estimates a trend surface from vector points.
Arguments
i
: Input vector Points file.field
: Input field name in attribute table.output
: Output raster file.order
: Polynomial order (1 to 10).cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.tributary_identifier
— Functiontributary_identifier(wbt_info::WhiteboxTools = wbt_info; d8_pntr, streams, output, esri_pntr=false, zero_background=false, callback::Union{Nothing,Function}=nothing)
Assigns a unique identifier to each tributary in a stream network.
Arguments
d8_pntr
: Input raster D8 pointer file.streams
: Input raster streams file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.zero_background
: Flag indicating whether a background value of zero should be used.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.truncate
— Functiontruncate(wbt_info::WhiteboxTools = wbt_info; i, output, num_decimals=nothing, callback::Union{Nothing,Function}=nothing)
Truncates the values in a raster to the desired number of decimal places.
Arguments
i
: Input raster file.output
: Output raster file.num_decimals
: Number of decimals left after truncation (default is zero).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.turning_bands_simulation
— Functionturning_bands_simulation(wbt_info::WhiteboxTools = wbt_info; base, output, range, iterations=1000, callback::Union{Nothing,Function}=nothing)
Creates an image containing random values based on a turning-bands simulation.
Arguments
base
: Input base raster file.output
: Output file.range
: The field's range, in xy-units, related to the extent of spatial autocorrelation.iterations
: The number of iterations.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.two_sample_ks_test
— Functiontwo_sample_ks_test(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, num_samples=nothing, callback::Union{Nothing,Function}=nothing)
Performs a 2-sample K-S test for significant differences on two input rasters.
Arguments
input1
: First input raster file.input2
: Second input raster file.output
: Output HTML file.num_samples
: Number of samples. Leave blank to use whole image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.union
— Functionunion(wbt_info::WhiteboxTools = wbt_info; i, overlay, output, snap=0.0, callback::Union{Nothing,Function}=nothing)
Splits vector layers at their overlaps, creating a layer containing all the portions from both input and overlay layers.
Arguments
i
: Input vector file.overlay
: Input overlay vector file.output
: Output vector file.snap
: Snap tolerance.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.unnest_basins
— Functionunnest_basins(wbt_info::WhiteboxTools = wbt_info; d8_pntr, pour_pts, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Extract whole watersheds for a set of outlet points.
Arguments
d8_pntr
: Input D8 pointer raster file.pour_pts
: Input vector pour points (outlet) file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.unsharp_masking
— Functionunsharp_masking(wbt_info::WhiteboxTools = wbt_info; i, output, sigma=0.75, amount=100.0, threshold=0.0, callback::Union{Nothing,Function}=nothing)
An image sharpening technique that enhances edges.
Arguments
i
: Input raster file.output
: Output raster file.sigma
: Standard deviation distance in pixels.amount
: A percentage and controls the magnitude of each overshoot.threshold
: Controls the minimal brightness change that will be sharpened.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.unzip
— Methodunzip(file::String; exdir::String="")
Unzip a .zip folder and put contents in exdir.
Modified from https://discourse.julialang.org/t/how-to-extract-a-file-in-a-zip-archive-without-using-os-specific-tools/34585
Whitebox.update_nodata_cells
— Functionupdate_nodata_cells(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Replaces the NoData values in an input raster with the corresponding values contained in a second update layer.
Arguments
input1
: Input raster file 1.input2
: Input raster file 2; update layer.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.upslope_depression_storage
— Functionupslope_depression_storage(wbt_info::WhiteboxTools = wbt_info; dem, output, callback::Union{Nothing,Function}=nothing)
Estimates the average upslope depression storage depth.
Arguments
dem
: Input raster DEM file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.user_defined_weights_filter
— Functionuser_defined_weights_filter(wbt_info::WhiteboxTools = wbt_info; i, weights, output, center="center", normalize=false, callback::Union{Nothing,Function}=nothing)
Performs a user-defined weights filter on an image.
Arguments
i
: Input raster file.weights
: Input weights file.output
: Output raster file.center
: Kernel center cell; options include 'center', 'upper-left', 'upper-right', 'lower-left', 'lower-right'.normalize
: Normalize kernel weights? This can reduce edge effects and lessen the impact of data gaps (nodata) but is not suited when the kernel weights sum to zero.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.vector_hex_binning
— Functionvector_hex_binning(wbt_info::WhiteboxTools = wbt_info; i, output, width, orientation="horizontal", callback::Union{Nothing,Function}=nothing)
Hex-bins a set of vector points.
Arguments
i
: Input base file.output
: Output vector polygon file.width
: The grid cell width.orientation
: Grid Orientation, 'horizontal' or 'vertical'.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.vector_lines_to_raster
— Functionvector_lines_to_raster(wbt_info::WhiteboxTools = wbt_info; i, output, field="FID", nodata=true, cell_size=nothing, base=nothing, callback::Union{Nothing,Function}=nothing)
Converts a vector containing polylines into a raster.
Arguments
i
: Input vector lines file.field
: Input field name in attribute table.output
: Output raster file.nodata
: Background value to set to NoData. Without this flag, it will be set to 0.0.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.vector_points_to_raster
— Functionvector_points_to_raster(wbt_info::WhiteboxTools = wbt_info; i, output, field="FID", assign="last", nodata=true, cell_size=nothing, base=nothing, callback::Union{Nothing,Function}=nothing)
Converts a vector containing points into a raster.
Arguments
i
: Input vector Points file.field
: Input field name in attribute table.output
: Output raster file.assign
: Assignment operation, where multiple points are in the same grid cell; options include 'first', 'last' (default), 'min', 'max', 'sum'.nodata
: Background value to set to NoData. Without this flag, it will be set to 0.0.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.vector_polygons_to_raster
— Functionvector_polygons_to_raster(wbt_info::WhiteboxTools = wbt_info; i, output, field="FID", nodata=true, cell_size=nothing, base=nothing, callback::Union{Nothing,Function}=nothing)
Converts a vector containing polygons into a raster.
Arguments
i
: Input vector polygons file.field
: Input field name in attribute table.output
: Output raster file.nodata
: Background value to set to NoData. Without this flag, it will be set to 0.0.cell_size
: Optionally specified cell size of output raster. Not used when base raster is specified.base
: Optionally specified input base raster file. Not used when a cell size is specified.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.version
— Functionversion(wbt_info::WhiteboxTools = wbt_info)
Retrieves the version information for WhiteboxTools.
Whitebox.view_code
— Functionview_code(tool_name::String, wbt_info::WhiteboxTools = wbt_info)
Opens a web browser to view the source code for a specific tool on the projects source code repository.
Whitebox.viewshed
— Functionviewshed(wbt_info::WhiteboxTools = wbt_info; dem, stations, output, height=2.0, callback::Union{Nothing,Function}=nothing)
Identifies the viewshed for a point or set of points.
Arguments
dem
: Input raster DEM file.stations
: Input viewing station vector file.output
: Output raster file.height
: Viewing station height, in z units.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.visibility_index
— Functionvisibility_index(wbt_info::WhiteboxTools = wbt_info; dem, output, height=2.0, res_factor=2, callback::Union{Nothing,Function}=nothing)
Estimates the relative visibility of sites in a DEM.
Arguments
dem
: Input raster DEM file.output
: Output raster file.height
: Viewing station height, in z units.res_factor
: The resolution factor determines the density of measured viewsheds.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.voronoi_diagram
— Functionvoronoi_diagram(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Creates a vector Voronoi diagram for a set of vector points.
Arguments
i
: Input vector points file.output
: Output vector polygon file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.watershed
— Functionwatershed(wbt_info::WhiteboxTools = wbt_info; d8_pntr, pour_pts, output, esri_pntr=false, callback::Union{Nothing,Function}=nothing)
Identifies the watershed, or drainage basin, draining to a set of target cells.
Arguments
d8_pntr
: Input D8 pointer raster file.pour_pts
: Input pour points (outlet) file.output
: Output raster file.esri_pntr
: D8 pointer uses the ESRI style scheme.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.weighted_overlay
— Functionweighted_overlay(wbt_info::WhiteboxTools = wbt_info; factors, weights, output, cost=nothing, constraints=nothing, scale_max=1.0, callback::Union{Nothing,Function}=nothing)
Performs a weighted sum on multiple input rasters after converting each image to a common scale. The tool performs a multi-criteria evaluation (MCE).
Arguments
factors
: Input factor raster files.weights
: Weight values, contained in quotes and separated by commas or semicolons. Must have the same number as factors.cost
: Weight values, contained in quotes and separated by commas or semicolons. Must have the same number as factors.constraints
: Input constraints raster files.output
: Output raster file.scale_max
: Suitability scale maximum value (common values are 1.0, 100.0, and 255.0).callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.weighted_sum
— Functionweighted_sum(wbt_info::WhiteboxTools = wbt_info; inputs, weights, output, callback::Union{Nothing,Function}=nothing)
Performs a weighted-sum overlay on multiple input raster images.
Arguments
inputs
: Input raster files.weights
: Weight values, contained in quotes and separated by commas or semicolons.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.wetness_index
— Functionwetness_index(wbt_info::WhiteboxTools = wbt_info; sca, slope, output, callback::Union{Nothing,Function}=nothing)
Calculates the topographic wetness index, Ln(A / tan(slope)).
Arguments
sca
: Input raster specific contributing area (SCA) file.slope
: Input raster slope file (in degrees).output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.wilcoxon_signed_rank_test
— Functionwilcoxon_signed_rank_test(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, num_samples=nothing, callback::Union{Nothing,Function}=nothing)
Performs a 2-sample K-S test for significant differences on two input rasters.
Arguments
input1
: First input raster file.input2
: Second input raster file.output
: Output HTML file.num_samples
: Number of samples. Leave blank to use whole image.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.write_function_memory_insertion
— Functionwrite_function_memory_insertion(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, input3=nothing, callback::Union{Nothing,Function}=nothing)
Performs a write function memory insertion for single-band multi-date change detection.
Arguments
input1
: Input raster file associated with the first date.input2
: Input raster file associated with the second date.input3
: Optional input raster file associated with the third date.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.xor
— Functionxor(wbt_info::WhiteboxTools = wbt_info; input1, input2, output, callback::Union{Nothing,Function}=nothing)
Performs a logical XOR operator on two Boolean raster images.
Arguments
input1
: Input raster file.input2
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.z_scores
— Functionz_scores(wbt_info::WhiteboxTools = wbt_info; i, output, callback::Union{Nothing,Function}=nothing)
Standardizes the values in an input raster by converting to z-scores.
Arguments
i
: Input raster file.output
: Output raster file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.zlidar_to_las
— Functionzlidar_to_las(wbt_info::WhiteboxTools = wbt_info; inputs=nothing, outdir=nothing, callback::Union{Nothing,Function}=nothing)
Converts one or more zlidar files into the LAS data format.
Arguments
inputs
: Input ZLidar files.outdir
: Output directory into which zlidar files are created. If unspecified, it is assumed to be the same as the inputs.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.
Whitebox.zonal_statistics
— Functionzonal_statistics(wbt_info::WhiteboxTools = wbt_info; i, features, output=nothing, stat="mean", out_table=nothing, callback::Union{Nothing,Function}=nothing)
Extracts descriptive statistics for a group of patches in a raster.
Arguments
i
: Input data raster file.features
: Input feature definition raster file.output
: Output raster file.stat
: Statistic to extract, including 'mean', 'median', 'minimum', 'maximum', 'range', 'standard deviation', and 'total'.out_table
: Output HTML Table file.callback::Union{Nothing,Function}
: Custom function for handling tool text outputs.