Skip to main content
deleted 74 characters in body
Source Link
jmutua
  • 373
  • 1
  • 4
  • 12

I have an equation to calculate z from multiplying several rasters and numbers as seen below:

z <- a*b*c*d*e

The raster layers and values are as below:

library(terra)
set.seed(234)
r <- rast(nrows=10, ncols=10)

a <- setValues(r,runif(n = 100, min = 4, max=16))
b <- setValues(r,runif(n = 100, min = 0, max=100))
c <- setValues(r,runif(n = 100, min = 68, max=270))
d <- setValues(r,runif(n = 100, min = 0, max=1)).8
e <- setValues(r,runif(n = 100, min = 3, max=9))7.9

I need to calculate uncertainty based on varying c and e by generating random rasters from within the minimum and maximum values, and by changing the rastervarying both variables as below:

+/- 10 for c

+/- 4 for e

values need to change independently. In the end, I need to plot an uncertainty map.

I have an equation to calculate z from multiplying several rasters and numbers as seen below:

z <- a*b*c*d*e

The raster layers and values are as below:

set.seed(234)
r <- rast(nrows=10, ncols=10)

a <- setValues(r,runif(n = 100, min = 4, max=16))
b <- setValues(r,runif(n = 100, min = 0, max=100))
c <- setValues(r,runif(n = 100, min = 68, max=270))
d <- setValues(r,runif(n = 100, min = 0, max=1))
e <- setValues(r,runif(n = 100, min = 3, max=9))

I need to calculate uncertainty based on varying c and e by generating random rasters from within the minimum and maximum values, and by changing the raster values independently. In the end, I need to plot an uncertainty map.

I have an equation to calculate z from multiplying several rasters and numbers as seen below:

z <- a*b*c*d*e

The raster layers and values are as below:

library(terra)
set.seed(234)
r <- rast(nrows=10, ncols=10)

a <- setValues(r,runif(n = 100, min = 4, max=16))
b <- setValues(r,runif(n = 100, min = 0, max=100))
c <- setValues(r,runif(n = 100, min = 68, max=270))
d <- 0.8
e <- 7.9

I need to calculate uncertainty based on varying c and e by varying both variables as below:

+/- 10 for c

+/- 4 for e

values need to change independently. In the end, I need to plot an uncertainty map.

added 49 characters in body
Source Link
jmutua
  • 373
  • 1
  • 4
  • 12

I have an equation to calculate z from multiplying several rasters and numbers as seen below:

z <- a*b*c*d*e

The raster layers and values are as below:

set.seed(234)
r <- rast(nrows=10, ncols=10)

a <- setValues(r,runif(n = 100, min = 4, max=16))
b <- setValues(r,runif(n = 100, min = 0, max=100))
c <- setValues(r,runif(n = 100, min = 68, max=270))
d <- setValues(r,runif(n = 100, min = 0, max=1))
e <- setValues(r,runif(n = 100, min = 3, max=9))

I need to calculate uncertainty based on varying c and e by generating random rasters from within the minimum and maximum values, and by changing the raster values independently. In the end, I need to plot an uncertainty map.

I have an equation to calculate z from multiplying several rasters and numbers as seen below:

z <- a*b*c*d*e

The raster layers and values are as below:

set.seed(234)
r <- rast(nrows=10, ncols=10)

a <- setValues(r,runif(n = 100, min = 4, max=16))
b <- setValues(r,runif(n = 100, min = 0, max=100))
c <- setValues(r,runif(n = 100, min = 68, max=270))
d <- setValues(r,runif(n = 100, min = 0, max=1))
e <- setValues(r,runif(n = 100, min = 3, max=9))

I need to calculate uncertainty based on varying c and e by generating random rasters from within the minimum and maximum values. In the end, I need to plot an uncertainty map.

I have an equation to calculate z from multiplying several rasters and numbers as seen below:

z <- a*b*c*d*e

The raster layers and values are as below:

set.seed(234)
r <- rast(nrows=10, ncols=10)

a <- setValues(r,runif(n = 100, min = 4, max=16))
b <- setValues(r,runif(n = 100, min = 0, max=100))
c <- setValues(r,runif(n = 100, min = 68, max=270))
d <- setValues(r,runif(n = 100, min = 0, max=1))
e <- setValues(r,runif(n = 100, min = 3, max=9))

I need to calculate uncertainty based on varying c and e by generating random rasters from within the minimum and maximum values, and by changing the raster values independently. In the end, I need to plot an uncertainty map.

added 80 characters in body
Source Link
jmutua
  • 373
  • 1
  • 4
  • 12

I have an equation to calculate z from multiplying several rasters and numbers as seen below:

z <- a*b*c*d*e

The raster layers and values are as below:

set.seed(234)
r <- rast(nrows=10, ncols=10)

a <- setValues(r,runif(n = 100, min = 4, max=16))
b <- setValues(r,runif(n = 100, min = 0, max=100))
c <- setValues(r,runif(n = 100, min = 68, max=270))
d <- setValues(r,runif(n = 100, min = 0.8, max=1))
e <- 7.9setValues(r,runif(n = 100, min = 3, max=9))

I need to calculate uncertainty based on varying c and e by generating a random raster crasters from within the minimum and maximum values, and a random number e between 3-9. In the end, I need to plot an uncertainty map.

I have an equation to calculate z from multiplying several rasters and numbers as seen below:

z <- a*b*c*d*e

The raster layers and values are as below:

set.seed(234)
r <- rast(nrows=10, ncols=10)

a <- setValues(r,runif(n = 100, min = 4, max=16))
b <- setValues(r,runif(n = 100, min = 0, max=100))
c <- setValues(r,runif(n = 100, min = 68, max=270))
d <- 0.8
e <- 7.9

I need to calculate uncertainty based on varying c and e by generating a random raster c from within the minimum and maximum values, and a random number e between 3-9. In the end, I need to plot an uncertainty map.

I have an equation to calculate z from multiplying several rasters and numbers as seen below:

z <- a*b*c*d*e

The raster layers and values are as below:

set.seed(234)
r <- rast(nrows=10, ncols=10)

a <- setValues(r,runif(n = 100, min = 4, max=16))
b <- setValues(r,runif(n = 100, min = 0, max=100))
c <- setValues(r,runif(n = 100, min = 68, max=270))
d <- setValues(r,runif(n = 100, min = 0, max=1))
e <- setValues(r,runif(n = 100, min = 3, max=9))

I need to calculate uncertainty based on varying c and e by generating random rasters from within the minimum and maximum values. In the end, I need to plot an uncertainty map.

Added more context to clarify
Source Link
jmutua
  • 373
  • 1
  • 4
  • 12
Loading
Added more context
Source Link
jmutua
  • 373
  • 1
  • 4
  • 12
Loading
Source Link
jmutua
  • 373
  • 1
  • 4
  • 12
Loading