I'm working with landsat-7 image data(TIF files) from which you can download from USGS earth explorer. The TIF files come in 9 images so I want to be able to change each of the resolution of the images to 10x10, and then crop the image to a specific area that I'm interested in and then re-plot each of the images. Is this possible in R? I've included some actual/pseudo-code of my attempt for one specific image. As the exact images are too large to be uploaded, I've included an area where the images can be downloaded - but rather, any image example would work for me to go by.
library(raster)
library(rgdal)
grey <- raster("image") ##loading image
gr.disaggregate <- disaggregate(gr.disaggregate, fact=3) ##turning into 10x10 from 30x30
r.pts <- rasterToPoints(gr.disaggregate, spatial=TRUE) ##This keeps running forever until R aborts.
## if it did my thought process would be the following
geo.prj <- "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0"
r.pts <- spTransform(r.pts, CRS(geo.prj))
r.pts@data <- data.frame(r.pts@data, long=coordinates(r.pts)[,1],
lat=coordinates(r.pts)[,2])
ext <- extent(xmin, xmax, ymin, ymax)
r.pts2 <- crop(r.pts, ext)
##I would then want to replot the resolution increased/cropped image.
Update: Any sample image that I'm exactly using can be found Here. Updated annotations to accurately describe problems.
Would appreciate the assistance, thank you!