Package: fireSenseUtils 0.2.3

Eliot J B McIntire

fireSenseUtils: Utilities for Working With the 'fireSense' Group of 'SpaDES' Modules

Utilities for working with the 'fireSense' group of 'SpaDES' modules.

Authors:Jean Marchal [aut], Eliot J B McIntire [aut, cre], Alex M Chubaty [aut], Ian Eddy [aut]

fireSenseUtils_0.2.3.tar.gz
fireSenseUtils_0.2.3.zip(r-4.7)fireSenseUtils_0.2.3.zip(r-4.6)fireSenseUtils_0.2.3.zip(r-4.5)
fireSenseUtils_0.2.3.tgz(r-4.6-any)fireSenseUtils_0.2.3.tgz(r-4.5-any)
fireSenseUtils_0.2.3.tar.gz(r-4.7-any)fireSenseUtils_0.2.3.tar.gz(r-4.6-any)
fireSenseUtils_0.2.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
fireSenseUtils/json (API)
NEWS

# Install 'fireSenseUtils' in R:
install.packages('fireSenseUtils', repos = c('https://predictiveecology.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/predictiveecology/firesenseutils/issues

On CRAN:

Conda:

3.70 score 1 stars 3 scripts 92 exports 161 dependencies

Last updated from:1d843b8172 (on development). Checks:7 WARNING, 1 ERROR, 1 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64WARNING456
source / vignettesERROR404
linux-release-x86_64WARNING395
macos-release-arm64WARNING263
macos-oldrel-arm64WARNING186
windows-develWARNING404
windows-releaseWARNING340
windows-oldrelWARNING360
wasm-releaseOK206

Exports:.doDataChecks.objFunIgnition.objFunIgnitionPW.objfunSpreadFitannualStackToDTx1000assessFuelClassesbufferIgnitionPointsbufferToAreabufferToAreaRastburnClassGeneratorburnClassPredictburnClassSummaryburnProbFromClasscalcNonForestYoungAgecalcYoungAgecastCohortDatachk_duplicatedStartPixelscleanUpSpreadFirePointsclimateRasterToDataTablecohortsToFuelClassescompareClimatecompareMDCcovsX1000AndSetDFDEoptimIterativedtReplaceNAwith0ELFsInStudyAreaELFtemplateRasterescapesTxtextractSpecialfireSenseCloudParametersfireSenseCloudParametersMapfireSenseCovariatesCreatefuelClassPrepgetFirePoints_NFDBgetFirePoints_NFDB_V2getFirePolygonsharmonizeBufferAndPointsharmonizeFireDataignitionsTxtigOrEscNameslatestNBACUrllogistic2plogistic3plogistic4plogistic5plogisticAlllogisticParamNameslogMinBmakeELFsmakeFireIDsmakeFireSenseLCCmakeLandcoverDTmakeLociListmakeMutuallyExclusivemakeTSDmergePreparedCovsmultipliernonNFColNamesTxtobjNlminboomparamsSeparateplotBurnSummaryplotCumulativeBurnsplotELFsplotHistoricFirespolygonIDTxtpredictIgnitionprepare_FuelCovsCoarseprepare_ignitionClimateprepare_LightningDataprepareCovariatesOuterputBackIntoRasterpwrasterFireBufferDTrasterFireSpreadPointsrbetaBetweenreadLightningDataremoveBufferedFiresOutsideRTMrescaleCovariatesrescaleKnown2rescaleVarsByMagnituderunDEoptimrunELFsspreadFitAdditionalColNamesTxtspreadProbFromIntegerCovsstackAndExtracttermsInDEoptimtoX1000updateStackYearNamesvisualizeDEyearTxtyoungAgeTxt

Dependencies:abindamcaskpassbackportsbase64encbitopsbootbroomcallrcarcarDatacheckmateclassclassIntcliclusterscodetoolscolorspacecorrplotcowplotcpp11crayoncurldata.tableDBIDEoptimDerivdigestdismodoBydplyre1071EnvStatsfarverfastDummiesfasterizefilelockforecastFormulafpComparefracdifffsgarglegenericsggplot2ggpubrggrepelggsciggsignifggspatialgluegoogledrivegridExtragtablehmshttrhttr2igraphinsightisobandjpegjsonliteKernSmoothkSampleslabelingLandRlatticelifecyclelme4lmtestlobstrmagickmagrittrMASSMatrixMatrixModelsmclustmgcvmicrobenchmarkmimeminqamodelrMuMInnlmenloptrnnetnortestnumDerivopensslpakparallellypatchworkpbkrtestpemiscpeutilspillarpkgconfigpngpolynomprettyunitspROCprocessxprogressproxypspurrrqs2quantregquickPlotR6rappdirsrasterrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRCurlRdpackreformulasreproducibleRequireRhpcBLASctlrlangrosmrprojrootrstatixrstudioapis2S7scalessfspSpaDES.coreSpaDES.projectSpaDES.toolsSparseMstringfishstringistringrSuppDistssurvivalsysterratibbletidyrtidyselecttidyterratimeDateunitsurcautf8uuidvctrsviridisviridisLitewhiskerwithrwkzoo

Readme and manuals

Help Manual

Help pageTopics
'fireSenseUtils' packagefireSenseUtils-package fireSenseUtils
Objective function when no piecewise model is used.objFunIgnition
Function to pass to the optimizer - Piece-wise version.objFunIgnitionPW
Objective function for 'fireSense_spreadFit' module.objfunSpreadFit
Abbreviate species names for fuel classesabbreviateSpNames
Convert list of annual 'SpatRaster' to 'data.table'annualStackToDTx1000 annualStackToDTx1000.list annualStackToDTx1000.Raster annualStackToDTx1000.SpatRaster
Semi-automated selection of fuel classed based on GLMsassessFuelClasses
Buffer ignition points to create non-ignitions for modelbufferIgnitionPoints
Create buffers around polygons based on area target for bufferbufferToArea bufferToArea.list bufferToArea.sf bufferToArea.SpatialPolygons
Create a variable sized buffer around a set of pixels belonging to the same fire IDbufferToAreaRast
Modify 'cohortData' with burn columnbuildCohortBurnHistory
Generate, Summarize, Predict Burn Classes from CovariatesburnClassGenerator burnClassPredict burnClassSummary burnProbFromClass
Zero-out young non-forest pixels across LCC layers and add a 'youngAge' maskcalcNonForestYoungAge
Iteratively calculate 'youngAge' column in FS covariatescalcYoungAge
preparing covariates for fitting modulescastCohortData
Data checks and assertions for 'spreadFitRun'.doDataChecks chk_duplicatedStartPixels
Ensure fire points are located on flammable pixels inside a fire polygon Intended to be run using 'Map'cleanUpSpreadFirePoints
Converts stacks of climate rasters to data.table and optionally subsets to indexclimateRasterToDataTable
Classify 'pixelGroups' by flammabilitycohortsToFuelClasses
Merging and assignment of fuel classescombine_fuel_classes
Plot the historical and projected climate values for flammable land surfacecompareClimate
Plot the historical and projected MDC for a flammable land surfacecompareMDC
Convert covariates to/from integers for smaller footprint; make 'data.frame'covsX1000AndSetDF
Replace 'NA's in a 'data.table' with zerosdtReplaceNAwith0
Identify and rasterize Ecologically-based Low Fractal-dimensional objects within a study areaELFsInStudyArea
Build a Canada-wide raster template for ELF constructionELFtemplateRaster
Extract the elements of the special terms, i.e. the variable and the knot valueextractSpecial
Get current state of FireSense Fit parameters as a mapfireSenseCloudParameters
Get current state of FireSense Fit parameters as a mapfireSenseCloudParametersMap
Create FireSense Input CovariatesfireSenseCovariatesCreate
Hard-coded name/text constantsescapesTxt fireSenseUtils-constants ignitionsTxt nonNFColNamesTxt polygonIDTxt spreadFitAdditionalColNamesTxt yearTxt youngAgeTxt
Calculate proportional burn of landcover and tree speciesfuelClassPrep
Get Fire 'SpatialPoints' from Canadian Fire DatabasegetFirePoints_NFDB
Get Fire 'SpatialPoints' from Canadian Fire DatabasegetFirePoints_NFDB_V2
Download and prepare fire data from National Fire DatabasegetFirePolygons
Cleaning up the polygon pointsharmonizeBufferAndPoints
Harmonize fire dataharmonizeFireData
Construct standardized FireSense object namesigOrEscNames
Discover the URL of the most recent NBAC shapefile archivelatestNBACUrl
Multiple-parameter versions of logistic functionslogistic2p logistic3p logistic4p logistic5p logisticAll
Logistic parameter nameslogisticParamNames
Log with a minimumlogMinB
Make Ecologically-based Low Fractal-Dimensional polygonsmakeELFs plotELFs
Identify each year's individual fires and buffer them accordinglymakeFireIDs
Prepare NTEMS Land Cover Data for Fire Simulation ModelsmakeFireSenseLCC
Wrapper on 'glm' that creates separate GLMs for each item in fuelmakeGLM
Create 'landcoverDT' object to classify and track non-forest land cover classesmakeLandcoverDT
Convert a list of 'SpatialPointsDataFrame' object to a list of 'data.table' objectsmakeLociList
guarantees mutually exclusive values in a data tablemakeMutuallyExclusive
Put 'cohortData' back into a 'SpatRaster' with some extra detailsmakeRastersFromCD
Prepare a time since disturbance map from stand age and fire datamakeTSD
Build ignition covariates table by stacking/extracting rasters and joining lightningmergePreparedCovs
Buffer-size multiplier for fire footprintsmultiplier
'objNlminb'objNlminb
Order of Magnitudeoom
Split the character vector of parameters into 'covPars' and 'logisticPars'paramsSeparate
Plot burn summaryplotBurnSummary
Plot cumulative burn mapsplotCumulativeBurns
Plot historic ignitions, escapes, and area burnedplotHistoricFires
Predictions from ignition modelpredictIgnition
Create and aggregate fuel covariate rasters to a coarse resolutionprepare_FuelCovsCoarse
Aggregate and cache ignition-related climate rastersprepare_ignitionClimate
Prepare and cache lightning rasters from Google Drive sourcesprepare_LightningData
Prepare and (optionally) cache scaled covariates for modelingprepareCovariatesOuter
Rebuild land cover layers back into a SpatRastserputBackIntoRaster
Handling piecewise terms in a formulapw
this is a wrapper to simplify caching of 'lapply' with 'bufferForFireRaster'. Years are iteratively processed by 'makeFireID'.rasterFireBufferDT
Create a list of annual ignition points based on fire rasterrasterFireSpreadPoints
Generate random beta variates between 2 values and a meanrbetaBetween
Read lightning datareadLightningData
Remove buffered fires in 'fireBufferedListDT' that are outside 'flammableRTM'removeBufferedFiresOutsideRTM
Rescale/standardize covariates for modelingrescaleCovariates
rescale function no.2rescaleKnown2
Rescale a 'data.table' according to a named vector of rescalersrescaleVarsByMagnitude
Run 'DEoptim'DEoptimIterative runDEoptim termsInDEoptim
Run ELFs modules and optionally update googledrive pngrunELFs
Convert covariates from their 'x1000' integer to usable by spreadspreadProbFromIntegerCovs
Prepare covariate table with ignition year, fuel class, climate value, and land coverstackAndExtract
Convert numeric values to integers x 1000toX1000
Update name of layers in a climate raster stackupdateStackYearNames
Make histograms of 'DEoptim' object 'pars'visualizeDE