Skip to content

Commit

Permalink
Update for issue #110
Browse files Browse the repository at this point in the history
  • Loading branch information
jblindsay committed Sep 11, 2020
1 parent 428d5a7 commit 672fecc
Show file tree
Hide file tree
Showing 27 changed files with 167 additions and 43 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file added doc_img/ArcGIS_toolbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/DSM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/FirstReturnTIN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/GHRGLogoSm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/HorizonAngle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/LidarSegmentation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/MultidirectionalHillshade_fig1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/MultidirectionalHillshade_fig2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/MultidirectionalHillshade_fig3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/QGIS_add_repo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/QGIS_plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/QGIS_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/QGIS_whitebox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/StElis_point_cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/TimeInDaylight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/WBRunner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/WhiteboxToolsLogoBlue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
160 changes: 160 additions & 0 deletions doc_img/WhiteboxToolsLogo_vert.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/example_project_dir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/flow_accum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/hypsometricallyTintedHillshade_fig1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/wbt_auotcomplete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc_img/wbt_directory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ fn help() {
ext = ".exe";
}

let exe_name = &format!("whitebox-tools{}", ext);
let exe_name = &format!("whitebox_tools{}", ext);
let sep: String = path::MAIN_SEPARATOR.to_string();
let s = "WhiteboxTools Help
Expand Down
41 changes: 0 additions & 41 deletions src/tools/hydro_analysis/impoundment_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,30 +558,6 @@ impl WhiteboxTool for ImpoundmentSizeIndex {
}




// let mut output = Raster::initialize_using_file(&output_file, &input);
// for row in 0..rows {
// for col in 0..columns {
// z = input.get_value(row, col);
// if z != nodata {
// output.set_value(row, col, filled_dem.get_value(row, col) - crest_elev.get_value(row, col));
// }
// }
// if verbose {
// progress = (100.0_f64 * row as f64 / (rows - 1) as f64) as usize;
// if progress != old_progress {
// println!("Progress: {}%", progress);
// old_progress = progress;
// }
// }
// }






/*
Perform the index calculation. This is essentially a downstream-directed flow-path
tracing and accumulation operation that begins at the divides and ends at outlets.
Expand Down Expand Up @@ -674,23 +650,6 @@ impl WhiteboxTool for ImpoundmentSizeIndex {
}
}

let mut output = Raster::initialize_using_file(&output_file, &input);
for row in 0..rows {
for col in 0..columns {
z = input.get_value(row, col);
if z != nodata {
output.set_value(row, col, filled_dem.get_value(row, col)); // - crest_elev.get_value(row, col));
}
}
if verbose {
progress = (100.0_f64 * row as f64 / (rows - 1) as f64) as usize;
if progress != old_progress {
println!("Progress: {}%", progress);
old_progress = progress;
}
}
}

// Output the dam height above the ground elevation
let extension: String = match Path::new(&output_file).extension().unwrap().to_str() {
Some(n) => n.to_string(),
Expand Down
7 changes: 6 additions & 1 deletion src/tools/stream_network_analysis/stream_link_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,12 @@ impl WhiteboxTool for StreamLinkIdentifier {
}

let elapsed_time = get_formatted_elapsed_time(start);
output.configs.data_type = DataType::I32;
if current_id < 32767f64 {
output.configs.data_type = DataType::I16;
} else {
output.configs.data_type = DataType::I32;
}

output.configs.palette = "qual.plt".to_string();
output.configs.photometric_interp = PhotometricInterpretation::Categorical;
output.add_metadata_entry(format!(
Expand Down

0 comments on commit 672fecc

Please sign in to comment.