Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rasterstack]

The tag has no usage guidance.

0
votes
0answers
5 views

Error in compareRaster(rasters) : different extent

I'm having this error in NDVI tif layers, however, all the layers have the same extent and resolution. The only difference is an elevation layer (Aster_DEM_UTM).
0
votes
0answers
15 views

Reclassification of a two-sided significance test result of a rasterstack

I have in my project to analyze a time series of NDVI data for significant changes. For this I did a pixelwise check: # Loading all necessary libraries library(sp) library(raster) library(rgdal) ...
0
votes
1answer
26 views

Setting pixels of a all raster layers in a raster stack to NA based on the pixel values of corresponding raster layers of another raster stack

I have MODIS NDVI product (MOD13A2) for 10 years in HDF file format. Here i have 230 of such HDFs. For a single HDF, I want to set NDVI pixel values to NA with respect to Quality values in another ...
2
votes
1answer
58 views

Add Date to raster layers in raster stack in R

I have a raster stack and I want to add to it a Date field which will include the year-month-day for every rasterlayer. I have my dates in a one column data.frame. I tried to do this with addLayer ...
0
votes
1answer
43 views

Layer names changed after reclassification of rasterstack, R

Following one of my previous questions about looping through a rasterstack (here), I now face a different issue. My initial rasterstack had dates as names (e.g. X2000_05_08.1) and I reclassified it in ...
2
votes
1answer
64 views

Get wind direction from raster stack U and V in R

I have this NetCDF file (about 130 kb size). I want to get for each day (layer) the wind direction (in meteorological or geographical directions) at every cell. https://drive.google.com/open?id=...
1
vote
2answers
212 views

Making stack from many images in Google Earth Engine?

Using the code below, I've computed 20 ndvi images for modis data. How can I stack and save them in a single file? var mod13 = ee.ImageCollection("MODIS/006/MOD13Q1") .filterBounds(geometry) ....
0
votes
2answers
124 views

R: Reclassify a raster stack through the range of the quantiles of each layer. Generic quantiles function ; layer by layer

I have a raster stack that contains terrain bends extracted with different neighborhood windows "crosc_nxn" (e.g. 3x3, 5x5, etc ...). crosc_nxn <- raster::stack(path.files.list) > crosc_nxn ...
1
vote
1answer
104 views

Calculating Median/Quantile of Rasterstack and converting Results to Data Frame in R

I have a Raster Stack with 32 Raster Layers. What I want to do is to calculate the median for each Raster and also the 0.25 and 0.75 quantiles. Then I want to convert the results into a dataframe. ...
0
votes
0answers
63 views

Convert list of raster* object into rasterBrickTS object in R

I have a list of raster bricks that have a date value in the z slot. I am trying to perform weekly averages across this list. For example, if my list had one brick for each day of a single week, I ...
1
vote
1answer
278 views

Write RasterLayer by loop preserving the layer names and grouping models

I have a RasterStack object from witch I need to take some layers into a new RasterStack. To to that I've created a loop. My problem in that I am losing my original layers names in the process. As you ...
0
votes
2answers
49 views

R: Writing individual variables from a RasterStack in loop

I have a RasterStack with 3 layers each one of them containing 19 variables. Using writeRaster I need to save specific variables into my directory while naming the saved files with the actual variable ...
0
votes
1answer
289 views

Extract values from large rasterstack, R

I have a large rasterstack of about 500 objects. I want to sample easch object with the use of a SpatialPointDataframe and then export the results as file.csv. I have tried the following but within ...