Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fireSense_spreadPredict.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ defineModule(sim, list(
"`pixelID` is the cell index of `flammableRTM`.")),
expectsInput(objectName = "rasterToMatchLargeELF", objectClass = "SpatRaster", sourceURL = NA,
desc = paste("Only with several fitted ELFs: each pixel's ELF (`ELFind`), on the grid of",
"`flammableRTM`, from `fireSense_ELFs` with a `studyAreaLarge`.")),
"`flammableRTM`, from `fireSense_ELFs` with a `studyArea_fireSense`.")),
expectsInput(objectName = "flammableRTM", objectClass = "SpatRaster", sourceURL = NA,
desc = "Binary raster, 1 where the pixel is flammable. Template for `fireSense_SpreadPredicted`.")
),
Expand Down Expand Up @@ -288,7 +288,7 @@ spreadPredictRun <- function(sim) {
ELFblendWeights <- function(elfRas, template, pixelID, ids, width) {
if (is.null(elfRas))
stop("fireSense_spreadPredict: sim$studyAreaWithSpreadParams has several ELFs, so each pixel's ELF ",
"must come from sim$rasterToMatchLargeELF (fireSense_ELFs, with a studyAreaLarge); it is missing",
"must come from sim$rasterToMatchLargeELF (fireSense_ELFs, with a studyArea_fireSense); it is missing",
call. = FALSE)
if (!isTRUE(terra::compareGeom(elfRas, template, stopOnError = FALSE)))
stop("fireSense_spreadPredict: sim$rasterToMatchLargeELF is not on the grid of sim$flammableRTM",
Expand Down
2 changes: 1 addition & 1 deletion fireSense_spreadPredict.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Table \@ref(tab:moduleInputs-fireSense-spreadPredict) shows the full list of mod
<tr>
<td style="text-align:left;"> rasterToMatchLargeELF </td>
<td style="text-align:left;"> SpatRaster </td>
<td style="text-align:left;"> Only with several fitted ELFs: each pixel's ELF (`ELFind`), on the grid of `flammableRTM`, from `fireSense_ELFs` with a `studyAreaLarge`. </td>
<td style="text-align:left;"> Only with several fitted ELFs: each pixel's ELF (`ELFind`), on the grid of `flammableRTM`, from `fireSense_ELFs` with a `studyArea_fireSense`. </td>
<td style="text-align:left;"> NA </td>
</tr>
<tr>
Expand Down
Loading