pr_basegeo: pr_basegeo

Description Usage Arguments Details Value See Also

View source: R/pr_basegeo.R

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

1
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


lbusett/prismaread documentation built on Feb. 22, 2022, 7:33 p.m.