Code Monkey home page Code Monkey logo

canclimatedata's People

Contributors

achubaty avatar eliotmcintire avatar ianmseddy avatar

Watchers

 avatar  avatar  avatar

canclimatedata's Issues

allow user to pass custom climateVariables object to prepare arbitrary climate variable rasters

E.g., move the creation of the climateVariables object to .inputObjects as a default, and add this object as a module input. Also ensure this is well documented (with #9).

    climateVariables <- list(
      historic_CMI_normal = list(
        vars = "historic_CMI_normal",
        fun = quote(calcCMInormal),
        .dots = list(historic_period = historic_prd, historic_years = historic_yrs)
      ),
      historic_MDC = list(
        vars = c(sprintf("historic_PPT%02d", 4:9), sprintf("historic_Tmax%02d", 4:9)),
        fun = quote(calcMDC),
        .dots = list(historic_years = historic_yrs)
      ),
      projected_ATA = list(
        vars = c("future_MAT", "historic_MAT_normal"),
        fun = quote(calcATA),
        .dots = list(historic_period = historic_prd, future_years = projected_yrs)
      ),
      projected_CMI = list(
        vars = "future_CMI",
        fun = quote(calcAsIs),
        .dots = list(future_years = projected_yrs)
      ),
      projected_MDC = list(
        vars = c(sprintf("future_PPT%02d", 4:9), sprintf("future_Tmax%02d", 4:9)),
        fun = quote(calcMDC),
        .dots = list(future_years = projected_yrs)
      )
    )

updates for upcoming changes to LandR.CS

LandR.CS is being updated to take in climate data using the list structure used by fireSense, to allow the user to pass arbitrary climate variables.

The module currently does this:

  ## objects for LandR.CS:
  sim$ATAstack <- climateRasters$projected_ATA
  sim$CMIstack <- climateRasters$projected_CMI
  sim$CMInormal <- climateRasters$historic_CMI_normal

  ## objects for fireSense:
  sim$historicalClimateRasters <- list(MDC = climateRasters$historic_MDC)
  sim$projectedClimateRasters <- list(MDC = climateRasters$projected_MDC)

and should be updated to put projected_ATA and projected_CMI into projectedClimateRasters, and historic_CMI_normal into historicalClimateRasters.

update module documentation

  • ensure climate data preparation steps described, with links back to climateData package documentiation;
  • descirbe how the user can add arbitrary climate variables to the output lists of climate rasters;

module upgrades

  • resolve main - development branch conflicts;
  • use terra/sf;
  • get 2021, 2022 data from ClimateNA (historic + projected for each climate scenario);
  • remove studyAreaName and use geographic lookup (see #3)

additional climate data for QC

currently only CanESM5 SSP 370 is available for use with the module.

  • add CanESM5 SSP 245
  • add CanESM5 SSP 585
  • add CNRM-ESM2-1 SSP 245
  • add CNRM-ESM2-1 SSP 370
  • add CNRM-ESM2-1 SSP 585

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.