Re: [R-sig-Geo] Substitute raster stack values based on matrix index

2018-04-10 Thread Kilpatrick, Katherine A
Maybe something along this line…..assuming I understood the problem properly for (i in 1:nlayers(stackr)) { layer <- stackr[[i]] # get a layer from the stack ID_layer<- 1:ncell(layer[[1]]) # create cell ids for the layer for (j in 1:nrow(tablem)) { x <-

Re: [R-sig-Geo] Reproject MODIS data using R (results in NAs or no spatial extent)

2018-11-29 Thread Kilpatrick, Katherine A
FYI The link that Mike provided is for ocean color products the GLASS land products use a different grid…see this link. https://modis-land.gsfc.nasa.gov/MODLAND_grid.html K On Nov 29, 2018, at 3:16 PM, Michael Sumner mailto:mdsum...@gmail.com>> wrote: To answer the "Any ideas on why

Re: [R-sig-Geo] Selecting a range of longitudes and latitudes for plotting

2019-04-24 Thread Kilpatrick, Katherine A
Hi; The reason you are getting that error message is you are trying to plot a 1 dimension array by a 2 dimensional array. I think simply adding the argument fun = mean to your extraction of the RCP1pctCO2Mean brick will solve the confusion. As you have it written you are extracting 196 grid