extractVNC4: Extract Values for Point from NC4 Image

Description Usage Arguments Details Value Author(s) References Examples

View source: R/extractVNC4.R

Description

A program to extarct the values from the NC4 image by overlaying the subject locations.

Usage

1
extractVNC4(tarshp, ncin, bandVar, prj)

Arguments

tarshp

The point objects, format: SpatialPointDataFrame

ncin

the nc4 object by nc_open.

bandVar

The band name to be used for extration from the NC4 file

prj

The project information, default: NA

Details

This function can be used to extract values from the NC4 images (such as satellite images)

Value

The values extracted in the same sequence with the point object. Format: vector

Author(s)

Lianfa Li, lspatial@gmail.com

References

http://disc.sci.gsfc.nasa.gov/daac-bin/FTPSubset2.pl)

Examples

1
2
3
4
5
data("samplepnt")
nc4File=""
ncin0=ncdf4::nc_open(nc4File)
extRes=extractVNC4(samplepnt,ncin0,"TLML")
extRes

lspatial/sptemUS documentation built on May 29, 2019, 3:42 a.m.