-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path_test_default.py
28 lines (24 loc) · 1.33 KB
/
_test_default.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# rvt.default quick TEST
import rvt.default
if __name__ == "__main__":
# class with default values for all visualization functions
default = rvt.default.DefaultValues()
default.save_default_to_file()
default.read_default_from_file(r"settings\default_settings.json")
dem_path = r"test_data\TM1_564_146.tif"
default.overwrite = 1
# save specific visualization function
default.save_hillshade(dem_path, save_float=True, save_8bit=True)
default.save_slope(dem_path, save_float=True, save_8bit=True)
default.save_multi_hillshade(dem_path, save_float=True, save_8bit=True)
default.save_slrm(dem_path, save_float=True, save_8bit=True)
default.save_sky_view_factor(dem_path, save_svf=True, save_asvf=True, save_opns=True,
save_float=True, save_8bit=True)
default.save_neg_opns(dem_path, save_float=True, save_8bit=True)
default.save_sky_illumination(dem_path, save_float=True, save_8bit=True)
default.save_local_dominance(dem_path, save_float=True, save_8bit=True)
default.save_msrm(dem_path, save_float=True, save_8bit=True)
default.save_mstp(dem_path)
# save visualization functions, where default.compute = 1
# for example if default.hs_compute = 1, it will calculate and save hillshade, it also generates log file
default.save_visualizations(dem_path)