pr_basegeo: pr_basegeo

View source: R/pr_basegeo.R

pr_basegeoR Documentation

pr_basegeo

Description

Function used to create a georeferenced raster from L1/L2B/L2C datasets, based on the Latitude and Longitude data, and exploiting the procedure described in https://www.harrisgeospatial.com/docs/backgroundgltbowtiecorrection.html

Usage

pr_basegeo(band, lon, lat, fill_gaps = TRUE)

Arguments

band

'Raster' layer to be georeferenced

lon

'Matrix' containing the longitudes of each pixel (as derived from the geolocation fields datasets of the hdf5)

lat

'Matrix' containing the latitudes of each pixel (as derived from the geolocation fields datasets of the hdf5)

fill_gaps

'logical' If TRUE, pixels with no values in the georeferenced image are filled based on a 3x3 average focal filter of the neighbouring valid pixels, Default: TRUE

Details

The function is based on the "GLT and Bowtie Correction" technique used in ENVI, and described in https://www.harrisgeospatial.com/docs/backgroundgltbowtiecorrection.html. Note that the 7x7 interpolation step for pixels still missing after the 3x3 interpolation is not (yet) implemented, as well as the nearest neighbour interpolation.

Value

'Raster' georeferenced dataset

See Also

getValues


ranghetti/prismaread documentation built on March 20, 2022, 11:37 a.m.