Authors - Nirmal Kumar and Nobin Chandra Paul |
This vignette will guide users through the
features and functionalities of the SoilSaltIndex package, which enables
the generation of soil salinity indices using satellite data by
utilizing multiple spectral bands. These indices are important in remote
sensing applications for monitoring soil salinity, which impacts
agricultural productivity and land management.
****
The developed function is designed to facilitate the
generation of soil salinity indices using satellite data, efficiently
utilizing multiple spectral bands to identify and analyze salt-affected
soils. The package uses bands such as Blue, Green, Red, Near-Infrared
(NIR), and Shortwave Infrared (SWIR1, SWIR2) to compute a comprehensive
set of 24 salinity indices. One of the key features of the function is
its flexibility. Users can provide any combination of the required
spectral bands, and the function will automatically calculate only the
relevant indices based on the available data. This dynamic capability
ensures that users can maximize the utility of their data without
needing all spectral bands, making the package versatile and
user-friendly. Outputs are provided in GeoTIFF file format, facilitating
easy integration with GIS workflows.
****
##Installation and loading the library of SoilSaltIndex R package
# You can install the SoilSaltIndex package from CRAN using the following command:
# install.packages("SoilSaltIndex")
# Once installed, you can load the package using
# library(SoilSaltIndex)
### Generating Salinity Indices using spectral bands
# Example:
#'Example usage:
#'Importing all the required spectral bands from extdata foldar
library(SoilSaltIndex)
library(raster)
## Loading required package: sp
B <- raster::raster(system.file("extdata", "Blue.tif", package = "SoilSaltIndex"))
G <- raster::raster(system.file("extdata", "Green.tif", package = "SoilSaltIndex"))
R <- raster::raster(system.file("extdata", "Red.tif", package = "SoilSaltIndex"))
NIR <- raster::raster(system.file("extdata", "NIR.tif", package = "SoilSaltIndex"))
SW1 <- raster::raster(system.file("extdata", "SWIR1.tif", package = "SoilSaltIndex"))
SW2 <- raster::raster(system.file("extdata", "SWIR2.tif", package = "SoilSaltIndex"))
# Salinity Indices generation using all the bands
Salt_Index1 <- Soil_Salinity_Indices(B=B, G=G, R=R, NIR=NIR, SW1=SW1, SW2=SW2)
# Relevant Salinity indices generation using only SWIR1 AND SWIR 2 bands
Salt_Index2 <- Soil_Salinity_Indices(SW1=SW1, SW2=SW2)
# Relevant Salinity indices generation using only Blue, Green, Red and NIR bands
Salt_Index3 <- Soil_Salinity_Indices(B=B, G=G, R=R, NIR=NIR)
Here are the formulas for the salinity indices used in the package: