Learn R Programming

gimms (version 0.2.0)

createHeader: Create ENVI header file

Description

Create an ENVI header file (see http://www.exelisvis.com/docs/ENVIHeaderFiles.html) to properly import GIMMS binary data into native 'Raster*' format.

Usage

createHeader(file, header)

Arguments

file
Character. Absolute input filepath of the GIMMS binary file being processed.
header
Character. If not supplied, defaults to the default content of the companion header file for GIMMS NDVI3g binary data. See seection 'Examples' below for required file contents.

Value

  • A filename with the absolute location of the header file.

Examples

Run this code
# Create standard GIMMS NDVI3g header file
gimms_header <- createHeader("~/geo13jul15a.n19-VI3g")
gimms_header

Run the code above in your browser using DataLab