fix_envi_format: Fix ENVI outputs

View source: R/fix_envi_format.R

fix_envi_formatR Documentation

Fix ENVI outputs

Description

Internal function which changes some elements of output ENVI files:

  • file extension is set to .dat if .envi (in case of files created by writeRaster) is found, and the header is edited properly,

  • and band names are set in the header file (in particular, SR band names include wavelengths and names like NIR, SWIR; other products shows the product name as band name);

  • SCL headers include information about class names and colours.

Usage

fix_envi_format(infiles)

Arguments

infiles

A vector of input filenames, in the sen2r naming convention (safe_shortname) and ENVI format.

Value

NULL (the function is called for its side effects)

Note

License: GPL 3.0

Author(s)

Luigi Ranghetti, phD (2019)

References

L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (2020). "sen2r": An R toolbox for automatically downloading and preprocessing Sentinel-2 satellite data. Computers & Geosciences, 139, 104473. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.cageo.2020.104473")}, URL: https://sen2r.ranghetti.info/.


ranghetti/fidolasen documentation built on March 27, 2024, 9:37 p.m.