Arguments
fns
A list of filenames which can be auto-read by
readGDAL (e.g. geoTIFFs)
numits
Number of iterations to run for (default =
length(fns))
bitnums
The bit(s) you would like to extract. If
length(bitnums) = 1, do default behavior. If the length
is 2, then run the alternative function.
ydim_new
The dimensions of the extracted image.
This is REQUIRED, since each day of a MODIS image may
have different pixel dimensions over the same location.
readGDAL will sample each image (nearest neighbor pixel)
to the correct dimensions.
xdim_new
The dimensions of the extracted image.
This is REQUIRED, since each day of a MODIS image may
have different pixel dimensions over the same location.
readGDAL will sample each image (nearest neighbor pixel)
to the correct dimensions.
test_for_1
What your extracted bit(s) should
match. If 1 (default), just count up 1s. If a string,
e.g. "!=11", use that in an if-then statement to get the
1s to count