Skip to content

Commit 5f7fbe1

Browse files
committed
update plots and scripts
1 parent 038c048 commit 5f7fbe1

File tree

110 files changed

+1168
-1942
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1168
-1942
lines changed

data/doc_examples/algorithm_step1.png

0 Bytes
0 Bytes

data/doc_examples/algorithm_step2.png

0 Bytes

data/doc_examples/algorithm_step3.png

0 Bytes

data/doc_examples/algorithm_step4.png

0 Bytes

data/doc_examples/algorithm_step5.png

0 Bytes

data/doc_examples/algorithm_step6.png

0 Bytes

data/doc_examples/algorithm_step7.png

0 Bytes

data/doc_examples/algorithm_step9.png

0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes
0 Bytes

data/doc_examples/river_dark_mode.png

0 Bytes
0 Bytes
0 Bytes
0 Bytes

data/doc_examples/river_example.png

0 Bytes
0 Bytes
0 Bytes
0 Bytes

data/example_script_outputs/43deg44_18dot23_N_101deg27_7dot61_W.csv

+770-770
Large diffs are not rendered by default.

data/example_script_outputs/43deg44_18dot23_N_101deg27_7dot61_W.txt

-770
This file was deleted.

data/example_script_outputs/centerline_width_example_script.py

+6-10
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,10 @@ def main():
1818
"Calling function in a context other than __main__ is not supported."
1919
)
2020

21-
# create txt file of bank points
22-
cw.extractPointsToTextFile(
23-
left_kml="43deg44_18dot23_N_101deg27_7dot61_W_lb.kml",
24-
right_kml="43deg44_18dot23_N_101deg27_7dot61_W_rb.kml",
25-
text_output_name="43deg44_18dot23_N_101deg27_7dot61_W.txt")
26-
27-
# convert txt file to csv file for digesting with centerline-width
28-
cw.convertColumnsToCSV(text_file="43deg44_18dot23_N_101deg27_7dot61_W.txt")
21+
# create txt file of bank points to csv file for digesting with centerline-width
22+
cw.kml_to_csv(left_kml="43deg44_18dot23_N_101deg27_7dot61_W_lb.kml",
23+
right_kml="43deg44_18dot23_N_101deg27_7dot61_W_rb.kml",
24+
csv_output="43deg44_18dot23_N_101deg27_7dot61_W.csv")
2925

3026
# create river object
3127
ro = cw.CenterlineWidth(csv_data="43deg44_18dot23_N_101deg27_7dot61_W.csv",
@@ -39,14 +35,14 @@ def main():
3935
ro.plot_centerline(
4036
centerline_type="Equal Distance",
4137
display_all_possible_paths=False,
42-
save_plot="43deg44_18dot23_N_101deg27_7dot61_W_centerline.png")
38+
save_plot="43deg44_18dot23_N_101deg27_7dot61_W_dd_centerline.png")
4339

4440
# plot the centerline with Relative Distance
4541
ro.plot_centerline(
4642
centerline_type="Equal Distance",
4743
display_all_possible_paths=False,
4844
coordinate_unit="Relative Distance",
49-
save_plot="43deg44_18dot23_N_101deg27_7dot61_W_centerline.png")
45+
save_plot="43deg44_18dot23_N_101deg27_7dot61_W_rd_centerline.png")
5046

5147
# save to csv to import back into google earth pro
5248
ro.save_centerline_csv(save_to_csv="equal_distance_coordinates.csv",
Binary file not shown.

data/example_script_outputs/width_distance.csv

+392-392
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)