README.md

Package soilmoistr

Usage:

In order for this function to work you need:

Example

# In case the path points to a point-dataset, this will create a buffer of 200 m (if using a projected crs) arounf the points and extract the mean value of the intersection in case of a temoral match
# We consider the date of the landslide and 6 days before for potential intersections

res = get_sm_data(
  path_sm = <path_to_soilmoisture_data>,
  days_before_window = 6,
  landsld = <path_to_vector_geometry>/<or_object_of_type_sf>,
  point_buffer = 200,
  aggre_fun = c("mean")
)
 sm_values       date track swath     time
1         0 2018-03-31     D   326  5_17_22
2         0 2018-03-31     A   326 17_14_43
3         0 2018-04-01     A   326  17_5_39
4         0 2018-04-02     A   326 16_58_30


RobinKohrs/soilmoistr documentation built on Dec. 18, 2021, 10:55 a.m.