filter_on_extent: Filter HydroMonitor ObservationWell data on extent.

View source: R/utilitys.R

filter_on_extentR Documentation

Filter HydroMonitor ObservationWell data on extent.

Description

Filter HydroMonitor ObservationWell data on extent.

Usage

filter_on_extent(hm, e)

Arguments

hm

HydroMonitor Observation Well data as read by read_export_csv

e

Extent object or a Raster* or Spatial* object

Value

Filtered HydroMonitor ObservationWell data (list of 2 met data.frames xm en xd).

Examples

## Not run: 
hm <- hm1
xmin <- min(hm$xm$X)
xmax <- max(hm$xm$X)
ymin <- min(hm$xm$Y)
ymax <- max(hm$xm$Y)
dx <- (xmax-xmin)/10
dy <- (ymax-ymin)/10
e <- terra::ext(c(xmin+dx, xmax-dx, ymin+dy, ymax-dy))
hm_filtered <- hm |> filter_on_extent( e )

## End(Not run)

KeesVanImmerzeel/menyanthes documentation built on Feb. 9, 2025, 1:31 a.m.