Skip to content

Commit

Permalink
Feature addition for "Min/Max values for classes in Reclass tool #67"
Browse files Browse the repository at this point in the history
Feature addition for "Min/Max values for classes in Reclass tool #67"
  • Loading branch information
jblindsay committed Feb 13, 2020
1 parent b6f431e commit 14651e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/tools/gis_analysis/reclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ use std::thread;
///
/// > --reclass_vals='0.0;1.0;1.0;2.0'
///
/// Here, 0.0 is assigned to input grid cell values of 1.0 and 1.0 is output for all input cells with a value of 2.0.
/// Here, 0.0 is assigned to input grid cell values of 1.0 and 1.0 is output for all input cells with a value of 2.0. Users
/// may add the text strings *min* and *max* in the class definitions to stand in for the raster's minimum and maximum values.
/// For example:
///
/// > --reclass_vals='0.0;min;1.0;1.0;1.0;max'
///
/// Any values in the input raster that do not fall within one of the classes will be assigned its original value in the
/// output raster. NoData values in the input raster will be assigned NoData values in the output raster, unless NoData is
Expand Down
2 changes: 1 addition & 1 deletion src/tools/gis_analysis/reclass_from_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use std::thread;
/// input raster image (`--input`) and a reclass file (`--reclass_file`). The reclass file is a text file
/// containing two or three columns, delimited (i.e. separated) by either a space, tab, or comma. The columns
/// describe respectively the *New* value, the *From* value, and the *To Just Less Than* value. Classes must be
/// mutually exclusive, i.e. non-overlapping. You may add the text strings 'min' and 'max' in the class definitions
/// mutually exclusive, i.e. non-overlapping. Users may add the text strings *min* and *max* in the class definitions
/// to stand in for the raster's minimum and maximum values.
///
/// If only two columns are present in the reclass file, i.e. the *From* column is left blank, the tool will
Expand Down

0 comments on commit 14651e9

Please sign in to comment.