Custom class based on stars objects. The additional class eupp_stars is used to provide some additional methods to conveniently process the data.

# S3 method for eupp_stars
[(x, ...)

# S3 method for eupp_stars
[[(x, ...)

# S3 method for eupp_stars
st_extract(x, at, bilinear, atname = NULL, ..., subsequent = NULL)

Arguments

x

stars object

...

currently unused.

at

object of class sf or sfc forwarded to st_extract

bilinear

logical, forwarded to st_extract. Defaults to TRUE (bilinear interpolation); FALSE results in the use of nearest-neighbour interpolation.

atname

character length 1 or NULL (default). Can be used to specify a variable in the object at which should be appended to the final object.

subsequent

Defaults to NULL, please leave as it is.

Value

Returns an object of class c("sf", "data.frame").

Details

Internally, an eupp_stars object is only a stars object with one additional attribute (the extra class).

Depending on the stars object this function is calling itself multiple times. This is controlled using the 'subsequent' argument which becomes a named vector (internally). As an end-user, please leave this argument NULL. Have not found a better solution yet.

Author

Reto Stauffer

Reto Stauffer

Reto Stauffer