execHEG: call the command of the HEG TOOL

Description Usage Arguments Details Value Note Examples

Description

call the command of the HEG TOOL

Usage

1
2
3
4
5
execHEG(type = "GRID", infiles, objectname = NULL, fieldname = NULL,
  subset.up = 90, subset.left = -180, subset.down = -90,
  subset.right = 180, resample = "NN", ignore.stderr = NULL,
  Sys_ignore.stdout = FALSE, Sys_wait = TRUE, Sys_input = NULL,
  intern = NULL)

Arguments

type

a character of "GRID" or "SWATH", specifying the object type of HEG-EOS files

infiles

a character vector of HEG-EOS files

objectname

character, the SWATH name or GRID name

fieldname

character, one filed in the SWATH object

subset.up

numeric, the up latitude of the subsetting extent

resample

character, the resampling method

Details

see the HEG website https://newsroom.gsfc.nasa.gov/sdptoolkit/HEG/HEGHome.html

Value

a status code (0 success, -1 failed)

Note

set the subsetting extent to the whole geographic region (-180, 180 and -90, 90) when the subsetting operation should not be done

Examples

1
2
3
4
5
6
7
HEGHOME <- "usr/local/heg"
initHEG(HEGHOME)
objname <- "mod04"
fieldname <- "Optical_Depth_Land_And_Ocean"
infiles = paste0("data_swath/",list.files("data_swath/"))
execHEG(type = "SWATH", infiles = infiles,
       objectname = objname, fieldname = fieldname, Sys_ignore.stdout = FALSE)

zhangzw92/rhegtools documentation built on May 14, 2019, 1:58 a.m.