Description Usage Arguments Value Note Examples
This function is designed to produce multiple indices directly. The source satellite image bands will be converted Top of Atmosphere (TOA) reflectance prior to do the indices production.
1 2 3 |
ext2crop, crop, directory |
Same as mentioned in |
op_directory |
Specify the output directory <within double quotes>. By default the input satellite image directory will be selected as the output directory. |
arvi |
This product won't be produced by default. To produce this product, assign value 1.
This product is same as that of the output from |
gamma |
Defined in |
gemi |
This product won't be produced by default. To produce this product, assign value 1.
This product is same as that of the output from |
gvmi |
This product won't be produced by default. To produce this product, assign value 1.
This product is same as that of the output from |
msavi |
This product won't be produced by default. To produce this product, assign value 1.
This product is same as that of the output from |
ndbi |
This product won't be produced by default. To produce this product, assign value 1.
This product is same as that of the output from |
ndvi |
This product will be produced by default. To disable this product, assign value 0.
This product is same as that of the output from |
ndwi |
This product won't be produced by default. To produce this product, assign value 1.
This product is same as that of the output from |
pavi |
This product won't be produced by default. To produce this product, assign value 1.
This product is same as that of the output from |
all |
If you wish to produce all the indices, assign value 1. |
Each bands selected will produce corresponding image in *.tif format in the input directory.
1. This function followed by multi.indices
is recommended only if user is intended to produce multiple indices
like ndvi & gemi other than running seperate function for each product to save processing time and resources.
Other important notes are mentioned in custom.eqn
.
1 2 3 4 5 6 7 | library (raster)
library (rgdal)
# Finding the path of the sample satellite image directory.
# User may define paths directly like "/home/ur_folder" or "C:/ur_folder"
path <- system.file ("TM_sample", package = "ASIP")
shapefil <- paste0 (path, "/test.shp")
multi.indices (path, crop = "f", ext2crop = shapefil, msavi =1, ndvi = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.