extractVNC4: Extract Values for Point from NC4 Image

Description Usage Arguments Details Value Author(s) References Examples

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
6
7
8
## Not run: 
data("samplepnt")
nc4File=file.path(system.file(package = "sptemExp"), "extdata", "ancdata.nc4")
ncin0=ncdf4::nc_open(nc4File)
extRes=extractVNC4(samplepnt,ncin0,"TLML")
extRes

## End(Not run)

sptemExp documentation built on July 7, 2019, 9:02 a.m.