Learn R Programming

sptemExp (version 0.1.4)

extractVNC4: Extract Values for Point from NC4 Image

Description

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

Usage

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

Value

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

Details

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

References

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

Examples

Run this code
# 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
# }

Run the code above in your browser using DataLab