Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

standardize outputs with other fire models #1

Open
achubaty opened this issue Jun 29, 2022 · 1 comment
Open

standardize outputs with other fire models #1

achubaty opened this issue Jun 29, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@achubaty
Copy link

In creating a module to allow use of static maps of fire perimeters to be used with other fire modules, I've identified the need to coordinate and standardize the outputs of our various wildfire models so that this static fire module can be used with any of them.

  1. the new static fire layer switcher module is here: https://github.com/PredictiveEcology/historicFires

    • By default, it reads in the NFDB shapefile and rasterizes the polygons, producing a stack of historic fire maps in .inputObjects.
    • There is only one event, which switches out [annually] the necesasry fire layers in the sim using scheduleConditionalEvent() to run it only for historicFireYears (e.g., 2011:2020).
    • To run with fireSense, there is already a parameter in the fireSense modules to control when the simulated wildfires should be proudced (.runInitialTime) -- setting it to start simulating fires the year after max(historicFireYears) allows using historic fire maps for years where we have them, and simulate fires in years we don't.
    • Another use case is to pre-generate a set of rasters using the fire model of your choice and feed this as a stack to the module (very useful to have finer control over fire regimes in simulations, e.g., to reduce variability from fire stochasticity).
  2. fireSense and scfm already produce similar outputs (same object names + structures):

    createsOutput("burnDT", "data.table", desc = "data.table with pixel IDs of most recent burn."),
    createsOutput("burnMap", "RasterLayer", desc = "A raster of cumulative burns"),
    createsOutput("burnSummary", "data.table", desc = "Describes details of all burned pixels."),
    createsOutput("rstAnnualBurnID", "RasterLayer", desc = "annual raster whose values distinguish individual fires"),
    createsOutput("rstCurrentBurn", "RasterLayer", desc = "A binary raster with 1 values representing burned pixels.")
  3. scfm will be updated to allow use of .runInitialTime (allow simulating fires only after some time during the simulation PredictiveEcology/scfm#28)

It would be great if we can standardize the objects (name, structure, etc.) in this module to match those used in fireSense etc. and make this module compatible with the static fire layer switcher.

@CeresBarros CeresBarros added the enhancement New feature or request label Jun 29, 2022
@CeresBarros
Copy link
Owner

CeresBarros commented Oct 28, 2022

We should also add a "burnVector" -- a vector of burnt pixel IDs, i.e. a light version of burnMap,

OR a "burnDT" a data.table with burnt pixelID and year that is saved at the end of the simulation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants