Learn R Programming

starsExtra (version 0.2.8)

Miscellaneous Functions for Working with 'stars' Rasters

Description

Miscellaneous functions for working with 'stars' objects, mainly single-band rasters. Currently includes functions for: (1) focal filtering, (2) detrending of Digital Elevation Models, (3) calculating flow length, (4) calculating the Convergence Index, (5) calculating topographic aspect and topographic slope.

Copy Link

Version

Install

install.packages('starsExtra')

Monthly Downloads

348

Version

0.2.8

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Dorman

Last Published

January 13th, 2024

Functions in starsExtra (0.2.8)

rgb_to_greyscale

Convert RGB to greyscale
w_azimuth

Create matrix with azimuths to center
normalize_3d

Normalize a 3D 'stars' object
trim2

Remove empty outer rows and columns
landsat

RGB image of Mount Carmel
footprints

Footprints
normalize_2d

Normalize a 2D 'stars' object
w_circle

Create matrix with circular weight pattern
matrix_trim

Trim matrix
mode_value

Mode
make_grid

Make 'stars' grid from 'sf' layer
slope

Calculate topographic slope from a DEM
golan

Digital Elevation Model of Golan Heights
layer_to_matrix

Get stars layer values as matrix
starsExtra-package

starsExtra: Miscellaneous Functions for Working with 'stars' Rasters
dist_to_nearest

Calculate raster of distances to nearest feature
carmel

Digital Elevation Model of Mount Carmel
CI

Calculate the Convergence Index (CI) from a slope raster
extract2

Extract raster values by lines or polygons
focal2

Apply a focal filter on a raster
detrend

Detrend a Digital Elevation Model
aspect

Calculate topographic aspect from a DEM
focal2r

Apply a focal filter on a raster (R)
flowlength

Calculate flow length
matrix_extend

Extend matrix
layer_to_vector

Get stars layer values as vector
matrix_to_stars

Convert matrix to stars
dem

Small Digital Elevation Model
matrix_get_neighbors

Get neighboring cell values for given matrix cell