Hi

I need to sum pixel values down through an HDF image cube (3D array once
opened in R). The image cube is a time series layer stack of Modis EVI
images with one layer for each 16 day chunk the year.

The positions in the cube (dates) or each downward vector (values for one
point on the earth through time) between which I need to sum the  values
differ for each location.

I have two separate files with start and end point for each downward vector
between which i wish to sum the values.

I am unsure of how to go about this. Do I loop through each pixel
individualy becuse the vectors are all of different lengths or is there a
way to get R to consider the entire array with different start and end
positions for summing the values all at once?

sorry if I have been unclear, I am new to this.

Patrick

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to