geom_doc module
- geom_doc.classify_inventory_rf(earthquake_inventory_features, rainfall_inventory_features, test_inventory_features)
function to predict the trigger of landslides in testing inventory
- Parameters:
- earthquake_inventory_features (array_like)
geometric features of known earthquake inventories landslides
- rainfall_inventory_features (array_like)
geometric features of known rainfall inventories landslides
- test_inventory_features (array_like)
geometric features of known testing inventory landslides
- Returns:
(array_like) probability of testing inventory landslides belonging to earthquake and rainfall class
- geom_doc.get_geometric_properties_landslide(poly_data)
function to calculate the geometric properties of landslide polygon
- Parameters:
- poly_data
readed landslide inventory shapefile (output of read_shapefile function)
- Returns:
(array_like) Geometric features of landslide polygon.
- geom_doc.latlon_to_eastnorth(lonlat_polydata)
function to convert the (longitude latitude) coordinates of polygons to (easting, northing) coordinates
- Parameters:
- lonllat_polydata (array_like)
longitude and latitude coordinates data
- Returns:
(array_like) easting and northing coordinates of landslide polygon data when polygon data has longitude latitude coordinates
- geom_doc.plot_geometric_results(predict_proba)
function to visualize the trigger prediction of landslides in testing inventory
- Parameters:
- predict_proba (array_like)
probability of each landslide in inventory class belonging to earthquake and rainfall class.
- Returns:
Visualization of landslide probabilities belong to earthquake and rainfall class and trigger prediction of entire landslide inventory
- geom_doc.read_shapefiles(path_filename)
function to read the shapefile from the local file path of landslide inventory
- Parameters:
- path_filename (str)
path to local inventory shapefiles
- Returns:
read shapefile from file path