[R-sig-Geo] Raster Layers same resolution but not the same coordinates over the same area
jgrn at illinois.edu
Mon Jun 30 17:55:53 CEST 2014
It would make more sense, if you insist on working with data.frames,
for you to create a single stack with all of your predictor and
response variables, and then do your extraction -- that way you don't
need to worry about a merge after the fact. The chances of the
coordinates being EXACT I suspect are very low, which is why the
merge() is failing.
mystack <- stack(meanTempStackDf, rainStackDf)
... Then you can extract the data.
On Mon, Jun 30, 2014 at 6:22 AM, Justin Michell <jwm302 at gmail.com> wrote:
> Dear Niandou
> No I have not received any feedback.
> I do have some thoughts though. Is it possible/or at least would it make sense to get values in NDVI layer (average of nearby cells?) at the coordinates of raster values in other layers which one wants to merge with?
> I am not very well versed in these things so it’s just a thought- not sure how it would be implemented in R.
> On Jun 27, 2014, at 3:58 PM, ISSAKA NIANDOU, Yacouba <niandouy at who.int> wrote:
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
Jonathan A. Greenberg, PhD
Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
Department of Geography and Geographic Information Science
University of Illinois at Urbana-Champaign
259 Computing Applications Building, MC-150
605 East Springfield Avenue
Champaign, IL 61820-6371
AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007
More information about the R-sig-Geo