readMCD19A2: Read MCD19A2 HDF-4 Files

Description Usage Arguments Value Examples

View source: R/readMCD19A2.R

Description

Read MCD19A2 HDF-4 files

Usage

1
readMCD19A2(file.name, latlong.range = NULL, border.shp = NULL)

Arguments

file.name

the name of input HDF file with an absolute path

latlong.range

the lat/long range with the structure c(lon.min, lon.max, lat.min, lat.max), cannot be used with border.shp

border.shp

a shapefile (class SpatialPolygonsDataFrame), cannot be used with latlong.range

Value

A list with time stamps and MAIAC AOD data in multiple bands

Examples

1
2
3
4
# Using lat/long coordinates to clip the data
readMCD19A2(file.name = '/path/file.HDF', latlong.range = c(132, 133, 56, 57))
# Using a polygon to clip the data
readMCD19A2(file.name = '/path/file.HDF', border.shp = myshp)

jianzhaobi/bjzresc documentation built on Feb. 14, 2021, 7:45 a.m.