powered by
A program to extarct the values from the NC4 image by overlaying the subject locations.
extractVNC4(tarshp, ncin, bandVar, prj)
The point objects, format: SpatialPointDataFrame
SpatialPointDataFrame
the nc4 object by nc_open.
The band name to be used for extration from the NC4 file
The project information, default: NA
The values extracted in the same sequence with the point object. Format: vector
vector
This function can be used to extract values from the NC4 images (such as satellite images)
http://disc.sci.gsfc.nasa.gov/daac-bin/FTPSubset2.pl)
# 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