Description Usage Arguments Value
View source: R/pr_create_swir.R
helper function used to process and save the SWIR data cube
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | pr_create_swir(
f,
proc_lev,
source,
out_file_swir,
out_format,
base_georef,
fill_gaps,
wl_swir,
order_swir,
fwhm_swir,
apply_errmatrix,
ERR_MATRIX,
selbands_swir = NULL,
in_L2_file = NULL
)
|
f |
input data he5 from caller |
proc_lev |
'character' Processing level (e.g., "1", "2B") - passed by caller |
source |
'character' ["HC0" | "HRC"], Considered Data Cub, Default: 'HCO' |
out_file_swir |
output file name for SWIR |
out_format |
'character“ ["GTiff" | "ENVI"], Output format, Default: 'GTiff' |
base_georef |
'logical' if TRUE, apply base georeferencing on L1, L2B/C data, using the "Georeference from input GLT" procedure explained here: https://www.harrisgeospatial.com/docs/backgroundgltbowtiecorrection.html, Default: TRUE |
fill_gaps |
'logical' if TRUE, when georeferencing on L1, L2B/C data, substitute missing values with results of a 3x3 focal filter on the georeferenced data, Default: FALSE |
wl_swir |
passed by caller - array of PRISMA SWIR wavelengths |
order_swir |
passed by caller - ordering of array of PRISMA SWIR wavelengths |
fwhm_swir |
passed by caller - array of PRISMA SWIR fwhms |
apply_errmatrix |
'logical' if TRUE, set pixels with values above 0 in the SATERR_MATRIX data cube (for L1) or ERRMATRIX cube (for L2) to NA, Default: FALSE |
ERR_MATRIX |
'logical' if TRUE, also save the SATURATION ERROR MATRIX Data, Default: FALSE SATURATION ERROR MATRIX is coded as: 0=pixel ok; 1=DEFECTIVE PIXEL from KDP 2= Pixel in saturation. 3= Pixel with lower radiometric accuracy, due to coregistration effects. 4= Pixel becomes NaN or Inf during processing. |
selbands_swir |
'numeric array' containing wavelengths (in nanometers) of bands that should be extracted from the SWIR data cube. If not NULL, only the bands with wavelengths closest to these values are extracted, Default: NULL |
in_L2_file |
'character' full path of an L2B/C file to be used to extract georeferencing info and angles for a corresponding L1 file. If not NULL, and 'in_file' is a L1 file, the LAT and LON fields used for bowtie georeferencing are taken from the L2 file instead than from the L1 file. The ANGLES data are also retrieved from the L2 file if requested. |
the function is called for its side effects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.