sen2r (version 1.6.0)

fix_envi_format: 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)

Value

NULL (the function is called for its side effects)

Arguments

infiles

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

Author

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. tools:::Rd_expr_doi("10.1016/j.cageo.2020.104473"), URL: https://sen2r.ranghetti.info/.