Questions tagged [rasterstack]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

Why do the results of the diverse test for normal distribution of different temperature raster stacks have the same values (2.2e-16?)

I want to test my dataset for normal distribution. I get the same results with every dataset. What is wrong? why do the results of the diverse test for normal distribution of different temperature ...
0
votes
1answer
18 views

Group raster stack layers by year

I have about 468 layers in my raster stack (new layer every 16 days between 2000 and 2020). Is there a way to group the layers by year and instead have just 21 layers? [1] "X2000.02.18" &...
1
vote
0answers
14 views

Extract paleoclimate variables from wordclim

I1m relative new in to RStudio and I'm trying to download the paleoclimate variables (http://ww.worldclim.com/paleo-climate1) from worldclim, but I can't, the unique solution that I found was to ...
0
votes
1answer
30 views

How to catch problematic grib2 files?

I am trying to process a large number of HRRR files, about six months' worth of them, which is close to 4059 files. I am working in R, and this is the function I have, that I am trying to vectorize ...
2
votes
1answer
83 views

Colour code points over raster stack in R

I am very new to R and spatial analysis. I have a column with different categories and I want to colour code my points according to category type. I have seen posts on working with continuous or ...
0
votes
0answers
5 views

Why would the Extract Multi to Points not extract values to all points when the raster and the point clearly overlay?

I have four rasters and a point feature that all live in the same file geodatabase and have the same CRS. The point feature covers a large area. See image below: The rasters which values I wish to ...
0
votes
0answers
20 views

Modify tm graticules to show UTM and not latlong for a stacked raster in R (plus other related things)

I'm using R (version 3.6.3 in Windows 10 - RStudio) to analyze/visualize my GIS data. I have a stacked raster (class: RasterStack) composed of 16 layers. Each raster file is in UTM-19s (EPSG:32719). ...
0
votes
1answer
55 views

RasterLayer vs RasterStack

I have a few hundreds of .tiff files that I converted as a raster stack. However, when I tried reading the file, it is classified as a RasterLayer. I was expecting it to be a RasterStack. The ...
2
votes
1answer
87 views

modifiedmk Mann-Kendall Test Over NC /Raster stack

I am working with NetCDF file for analysis of trend. I am using the following codes for analysis of trend.. library(modifiedmk) library(raster) I <- brick("I.nc") d <- stack(I) ...
0
votes
0answers
14 views

Creating multiple rasterstacks with different file names in a loop in R

I have 768 raster files (GTiff) and each file was split into 100 tiles. Each tile has a specific name which includes tile number (e.g. _m1.tif). Now I want to convert these individual tiles into 100 ...
0
votes
0answers
72 views

Using doparallel package to use multiple core for changing resolution in R

I want to use an aggregate function for my raster file to change the resolution from 30 30 to 300 300. The top code(For loop) is working very well. I want to use multiple cores to use the aggregate ...
0
votes
1answer
75 views

Creating CRU CL gridded data using R?

I'm trying to replicate the following example from package getCRUCLdata: # Create a raster stack of temperature from tmp # files in the tempdir() directory. download.file( url = "https://crudata....
1
vote
1answer
73 views

Calculating skewness and kurtosis with command line GDAL?

I have calculated histogram bins with the -hist option in gdalinfo. Is there an option to calculate skewness and kurtosis, using this or any other GDAL tool?
-1
votes
1answer
104 views

Converting Kelvin to Fahrenheit in raster stack using R?

I have a raster stack with 372 layers with Kelvin temperature. I want to convert Kelvin to Fahrenheit. I know the function, but do not know how to adjust the code so it can be applied to all layer in ...
1
vote
0answers
130 views

Subsetting rasterstack for subtraction between elements using R?

I want ro calculate the differences between rasters within a raster stack with a certain step, and I am unsure how to do so. What I want is to subtract every element from its 5th next one, something ...
0
votes
1answer
676 views

Reclassifying rasterstack in R?

I have a very large raster stack of 6253 raster layers and I want to reclassify it. For the reclass, I have tried the following but with no success: my_rules <- c(-0.500, -0.251, 1, -0.251, -0....
0
votes
1answer
219 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 ...
3
votes
1answer
767 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 ...
2
votes
1answer
644 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
500 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=...
3
votes
2answers
2k 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
545 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
444 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. ...
2
votes
1answer
1k 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
312 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
883 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 ...