Create regression dataset (from continuous-valued vector layer and feature raster)

Create a regression dataset by sampling data and store the result as a pickle file.


Continuous-valued vector layer [vector]

Continuous-valued vector layer specifying sample locations and target data y. If required, the layer is reprojected and rasterized internally to match the feature raster grid.

Raster layer with features [raster]

Raster layer used for sampling feature data X.

Exclude bad bands [boolean]

Whether to exclude bands, that are marked as bad bands, or contain no data, inf or nan values in all samples.

Default: True

Fields with targets [field]

Fields used as target data y. If not selected, the fields defined by the renderer are used. If those are also not specified, an error is raised.


Output dataset [fileDestination]

Pickle file destination.

Command-line usage

>qgis_process help enmapbox:CreateRegressionDatasetFromContinuousvaluedVectorLayerAndFeatureRaster:


continuousVector: Continuous-valued vector layer
    Argument type:  vector
    Acceptable values:
            - Path to a vector layer
featureRaster: Raster layer with features
    Argument type:  raster
    Acceptable values:
            - Path to a raster layer
excludeBadBands: Exclude bad bands (optional)
    Default value:  true
    Argument type:  boolean
    Acceptable values:
            - 1 for true/yes
            - 0 for false/no
targetFields: Fields with targets (optional)
    Argument type:  field
    Acceptable values:
            - The name of an existing field
            - ; delimited list of existing field names
outputRegressionDataset: Output dataset
    Argument type:  fileDestination
    Acceptable values:
            - Path for new file


outputRegressionDataset: <outputFile>
    Output dataset