API
EcoSISTEM.AbstractAbioticEcoSISTEM.AbstractBudgetEcoSISTEM.AbstractCacheEcoSISTEM.AbstractControlEcoSISTEM.AbstractEcosystemEcoSISTEM.AbstractEpiEnvEcoSISTEM.AbstractHabitatEcoSISTEM.AbstractLandscapeEcoSISTEM.AbstractLookupEcoSISTEM.AbstractMovementEcoSISTEM.AbstractParamsEcoSISTEM.AbstractPathogenTypesEcoSISTEM.AbstractPlaceTransitionEcoSISTEM.AbstractRequirementEcoSISTEM.AbstractScenarioEcoSISTEM.AbstractSetUpEcoSISTEM.AbstractSpeciesListEcoSISTEM.AbstractSpeciesTypesEcoSISTEM.AbstractStateTransitionEcoSISTEM.AbstractTraitRelationshipEcoSISTEM.AbstractTraitsEcoSISTEM.AbstractTransitionEcoSISTEM.AbstractWindDownEcoSISTEM.AllDisperseEcoSISTEM.AlwaysMovementEcoSISTEM.BirthOnlyMovementEcoSISTEM.BirthProcessEcoSISTEM.BoundaryConditionEcoSISTEM.CacheEcoSISTEM.CachedEcosystemEcoSISTEM.CachedEcosystemEcoSISTEM.CachedGridLandscapeEcoSISTEM.ClimatePref.AbstractClimateEcoSISTEM.ClimatePref.CERAEcoSISTEM.ClimatePref.CHELSA_bioclimEcoSISTEM.ClimatePref.CHELSA_monthlyEcoSISTEM.ClimatePref.CRUTSEcoSISTEM.ClimatePref.ERAEcoSISTEM.ClimatePref.LandcoverEcoSISTEM.ClimatePref.ReferenceEcoSISTEM.ClimatePref.Worldclim_bioclimEcoSISTEM.ClimatePref.Worldclim_monthlyEcoSISTEM.ContinuousHabEcoSISTEM.ContinuousTimeHabEcoSISTEM.ContinuousTraitEcoSISTEM.CylinderEcoSISTEM.DeathFromInfectionEcoSISTEM.DeathProcessEcoSISTEM.DevelopSymptomsEcoSISTEM.DiscreteHabEcoSISTEM.DiscreteTraitEcoSISTEM.DiseaseStateEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EnvExposureEcoSISTEM.EpiCacheEcoSISTEM.EpiLandscapeEcoSISTEM.EpiLookupEcoSISTEM.EpiMovementEcoSISTEM.EpiParamsEcoSISTEM.EqualPopEcoSISTEM.ExposureEcoSISTEM.FluctScenarioEcoSISTEM.ForceDisperseEcoSISTEM.ForceProduceEcoSISTEM.GaussEcoSISTEM.GaussTraitEcoSISTEM.GaussianKernelEcoSISTEM.GenerateSeedEcoSISTEM.GridAbioticEnvEcoSISTEM.GridEpiEnvEcoSISTEM.GridLandscapeEcoSISTEM.HostTypesEcoSISTEM.InfectionEcoSISTEM.LockdownEcoSISTEM.LongTailKernelEcoSISTEM.LookupEcoSISTEM.MPIEcosystemEcoSISTEM.MPIGridLandscapeEcoSISTEM.MatchEcoSISTEM.MultiScenarioEcoSISTEM.NoBoundaryEcoSISTEM.NoControlEcoSISTEM.NoMovementEcoSISTEM.NoRelContinuousEcoSISTEM.NoRelDiscreteEcoSISTEM.PlantCacheEcoSISTEM.PopGrowthEcoSISTEM.RainBinEcoSISTEM.RecoveryEcoSISTEM.SeedDisperseEcoSISTEM.SeedInfectionEcoSISTEM.SimpleBudgetEcoSISTEM.SimpleRequirementEcoSISTEM.SimpleScenarioEcoSISTEM.SizeRequirementEcoSISTEM.SolarBudgetEcoSISTEM.SolarRequirementEcoSISTEM.SolarTimeBudgetEcoSISTEM.SpeciesListEcoSISTEM.SpeciesListEcoSISTEM.SpeciesListEcoSISTEM.SpeciesListEcoSISTEM.SpeciesLookupEcoSISTEM.SpeciesTypesEcoSISTEM.TempBinEcoSISTEM.TorusEcoSISTEM.TraitCollection2EcoSISTEM.TraitCollection3EcoSISTEM.TransitionListEcoSISTEM.TrapezeEcoSISTEM.TrapezoidEcoSISTEM.UnifEcoSISTEM.UpdateEnergyEcoSISTEM.UpdateEnvironmentEcoSISTEM.UpdateEpiEnvironmentEcoSISTEM.ViralLoadEcoSISTEM.VirusTypesEcoSISTEM.VolWaterBudgetEcoSISTEM.VolWaterRequirementEcoSISTEM.VolWaterTimeBudgetEcoSISTEM.WaterBudgetEcoSISTEM.WaterRequirementEcoSISTEM.WaterTimeBudgetEcoSISTEM.additiveTR2EcoSISTEM.additiveTR3EcoSISTEM.multiplicativeTR2EcoSISTEM.multiplicativeTR3Base.isapproxBase.readEcoSISTEM.BMEcoSISTEM.ClimatePref.convert_coordsEcoSISTEM.ClimatePref.create_referenceEcoSISTEM.ClimatePref.downresolutionEcoSISTEM.ClimatePref.downresolution!EcoSISTEM.ClimatePref.env_boolEcoSISTEM.ClimatePref.extractvaluesEcoSISTEM.ClimatePref.extractvaluesEcoSISTEM.ClimatePref.extractvaluesEcoSISTEM.ClimatePref.extractvaluesEcoSISTEM.ClimatePref.readCERAEcoSISTEM.ClimatePref.readCHELSA_monthlyEcoSISTEM.ClimatePref.readCRUTSEcoSISTEM.ClimatePref.readERAEcoSISTEM.ClimatePref.readERAEcoSISTEM.ClimatePref.readMetEcoSISTEM.ClimatePref.readMet_rawEcoSISTEM.ClimatePref.readMet_rawEcoSISTEM.ClimatePref.readbioclimEcoSISTEM.ClimatePref.readfileEcoSISTEM.ClimatePref.readlcEcoSISTEM.ClimatePref.readworldclimEcoSISTEM.ClimatePref.searchdirEcoSISTEM.ClimatePref.upresolutionEcoSISTEM.ContinuousEvolveEcoSISTEM.DiscreteEvolveEcoSISTEM.HabitatLossEcoSISTEM.NoChangeEcoSISTEM.RainfallChangeEcoSISTEM.SEI3HRD_wrapperEcoSISTEM.SEI3HRD_wrapper!EcoSISTEM.SIR_wrapperEcoSISTEM.SIR_wrapper!EcoSISTEM.TempChangeEcoSISTEM.TempFluctEcoSISTEM._construct_shrunk_matrixEcoSISTEM._convert_populationEcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM.abundancesEcoSISTEM.addspecies!EcoSISTEM.addtransition!EcoSISTEM.addtransition!EcoSISTEM.addtransition!EcoSISTEM.addtransition!EcoSISTEM.applycontrols!EcoSISTEM.assign_traits!EcoSISTEM.assign_traits!EcoSISTEM.bioclimAEEcoSISTEM.biodiversity_update!EcoSISTEM.budgetupdate!EcoSISTEM.calc_lookup_moves!EcoSISTEM.classupdate!EcoSISTEM.combineTREcoSISTEM.convert_coordsEcoSISTEM.convert_populationEcoSISTEM.create_cacheEcoSISTEM.create_cacheEcoSISTEM.create_cacheEcoSISTEM.emptyepilandscapeEcoSISTEM.emptygridlandscapeEcoSISTEM.emptypopulate!EcoSISTEM.energy_adjustmentEcoSISTEM.epi_update!EcoSISTEM.equalpopEcoSISTEM.eraAEEcoSISTEM.eraChangeEcoSISTEM.genlookupsEcoSISTEM.geom_mean_abunEcoSISTEM.get_envEcoSISTEM.get_neighboursEcoSISTEM.get_traitsEcoSISTEM.getbudgetEcoSISTEM.getdestinationEcoSISTEM.getdimensionEcoSISTEM.getdispersaldistEcoSISTEM.getdispersalvarEcoSISTEM.getgridsizeEcoSISTEM.gethabitatEcoSISTEM.getlocationEcoSISTEM.getlocationEcoSISTEM.getlookupEcoSISTEM.getpathogentraitsEcoSISTEM.getprefEcoSISTEM.getprobEcoSISTEM.getrelationshipEcoSISTEM.getsizeEcoSISTEM.getspeciesEcoSISTEM.getspeciesEcoSISTEM.getspeciestraitsEcoSISTEM.gettraitrelEcoSISTEM.gettransitionsEcoSISTEM.habitatupdate!EcoSISTEM.initialise_outputEcoSISTEM.invalidatecaches!EcoSISTEM.makeuniqueEcoSISTEM.mean_abunEcoSISTEM.meta_shannonEcoSISTEM.meta_simpsonEcoSISTEM.meta_speciesrichnessEcoSISTEM.move!EcoSISTEM.pdEcoSISTEM.peakedgradAEEcoSISTEM.plot_epidynamicsEcoSISTEM.plot_epiheatmapsEcoSISTEM.populate!EcoSISTEM.raingradEcoSISTEM.raingradAEEcoSISTEM.randomnichesEcoSISTEM.reenergise!EcoSISTEM.repopulate!EcoSISTEM.resetrate!EcoSISTEM.resettime!EcoSISTEM.run_rule!EcoSISTEM.runscenario!EcoSISTEM.shrink_to_activeEcoSISTEM.simplehabitatEcoSISTEM.simplehabitatAEEcoSISTEM.simplehabitatAEEcoSISTEM.simplenicheAEEcoSISTEM.simulate!EcoSISTEM.simulate_record!EcoSISTEM.sorensonEcoSISTEM.sum_popEcoSISTEM.tematchEcoSISTEM.tempgradEcoSISTEM.tempgradAEEcoSISTEM.traitfunEcoSISTEM.traitfunEcoSISTEM.traitpopulate!EcoSISTEM.traitrepopulate!EcoSISTEM.transitionEcoSISTEM.trmatchEcoSISTEM.ukChangeEcoSISTEM.update!EcoSISTEM.update!EcoSISTEM.update!EcoSISTEM.update_energy_usage!EcoSISTEM.update_environment!EcoSISTEM.update_epi_environment!EcoSISTEM.update_outputEcoSISTEM.update_virus_cache!EcoSISTEM.virusmove!EcoSISTEM.virusupdate!EcoSISTEM.worldclimAEEcoSISTEM.worldclimChange
EcoSISTEM.AbstractAbiotic — TypeAbstractAbiotic{H <: AbstractHabitat, B <: AbstractBudget} <: AbstractPartitionAbstract supertype for all abiotic environment types and a subtype of AbstractPartition
EcoSISTEM.AbstractBudget — TypeAbstractBudgetAbstract supertype for all budget types
EcoSISTEM.AbstractCache — TypeAbstractCacheAbstract type for Ecosystem caches.
EcoSISTEM.AbstractControl — TypeAbstractControlAbstract type for all control strategies.
EcoSISTEM.AbstractEcosystem — TypeAbstractEcosystem{L <: AbstractLandscape, Part <: AbstractPartition, SL <: AbstractSpeciesList,
TR <: AbstractTraitRelationship, LU <: AbstractLookup, C <: AbstractCache} <:
AbstractMetacommunity{Float64, Matrix{Int64}, Matrix{Float64}, SL, Part}Abstract type for Ecosystems which is a subtype of AbstractMetacommunity.
EcoSISTEM.AbstractEpiEnv — TypeAbstractEpiEnv{H <: AbstractHabitat, C <: AbstractControl} <:
AbstractPartition{H}Abstract supertype for all epi environment types and a subtype of AbstractPartition.
EcoSISTEM.AbstractHabitat — TypeAbstractHabitatAbstract supertype for all habitat types
EcoSISTEM.AbstractLandscape — TypeAbstractLandscapeAbstract type for landscapes.
EcoSISTEM.AbstractLookup — TypeAbstractLookupAbstract type for lookups.
EcoSISTEM.AbstractMovement — TypeAbstractMovementAbstract supertype of movements
EcoSISTEM.AbstractParams — TypeAbstractParamsAbstract supertype for all simulation parameter types
EcoSISTEM.AbstractPathogenTypes — TypeAbstractPathogenTypes <: AbstractTypesAbstract type for pathogen types, which is a subtype of AbstractTypes.
EcoSISTEM.AbstractPlaceTransition — TypeAbstractPlaceTransition <: AbstractTransitionAbstract type for place transitions. Place transitions occur across multiple grid squares for a single type, e.g. dispersal of seeds across the landscape.
EcoSISTEM.AbstractRequirement — TypeAbstract1Requirement{Energy}Abstract supertype for all species energy requirement types, parameterised by the type(s) of energy required Energy.
EcoSISTEM.AbstractScenario — TypeAbstractScenarioAbstract supertype for all whole ecosystem change scenarios
EcoSISTEM.AbstractSetUp — TypeAbstractSetUp <: AbstractTransitionAbstract type for transitions that set up the Ecosystem at the start of the timestep.
EcoSISTEM.AbstractSpeciesList — TypeAbstractSpeciesList <: AbstractTypesAbstract type for species lists, which is a subtype of AbstractTypes.
EcoSISTEM.AbstractSpeciesTypes — TypeAbstractSpeciesTypes <: AbstractTypesAbstract type for species types, which is a subtype of AbstractTypes.
EcoSISTEM.AbstractStateTransition — TypeAbstractStateTransition <: AbstractTransitionAbstract type for state transitions. State transitions occur between types within a single grid square, e.g. growth between age categories, or transitions between disease categories.
EcoSISTEM.AbstractTraitRelationship — TypeAbstractTraitRelationship{TR}The abstract supertype of relationships between a trait and its environment, parameterised on any TR.
EcoSISTEM.AbstractTraits — TypeAbstractTraits{T}Abstract supertype for all trait types, parameterised by traits of any type T.
EcoSISTEM.AbstractTransition — TypeAbstractTransitionAbstract type for all transitions.
EcoSISTEM.AbstractWindDown — TypeAbstractWindDown <: AbstractTransitionAbstract type for transitions that wind down the Ecosystem at the end of the timestep.
EcoSISTEM.AllDisperse — TypeAllDisperse <: AbstractPlaceTransitionStochastic dispersal for a species at a location.
EcoSISTEM.AlwaysMovement — TypeAlwaysMovement{K <: AbstractKernel, B <: BoundaryCondition} <: AbstractMovementMovement can happen to any individual ("animal-like").
EcoSISTEM.BirthOnlyMovement — TypeBirthOnlyMovement{K <: AbstractKernel, B <: BoundaryCondition} <: AbstractMovementMovement can only happen to individuals that have just been born ("plant-like").
EcoSISTEM.BirthProcess — TypeBirthProcess <: AbstractStateTransitionStochastic birth process for a location and species, with an associated probability. An optional destination argument can be added if the birth should be added to a different category (i.e. age structured).
EcoSISTEM.BoundaryCondition — TypeBoundaryConditionAn abstract type for what should happen at the boundaries of an ecosystem.
EcoSISTEM.Cache — TypeCacheCache houses an integer array of moves made by all species in a timestep for the update! function, netmigration, a matrix of current resource used in the Ecosystem, totalE, and a Bool to say if these caches are valid.
EcoSISTEM.CachedEcosystem — TypeCachedEcosystem{Part <: AbstractAbiotic, SL <: SpeciesList,
TR <: AbstractTraitRelationship} <: AbstractEcosystem{Part, SL, TR}CachedEcosystem houses the same information as Ecosystem (see ?Ecosystem), but holds the time period abundances as a CachedGridLandscape, so that they may be present or missing.
EcoSISTEM.CachedEcosystem — MethodCachedEcosystem(eco::Ecosystem, outputfile::String, rng::StepRangeLen)Function to create a CachedEcosystem given an existing ecosystem, eco, output folder to which the simulations are saved, outputfile, and a range of times over which to simulate, rng.
EcoSISTEM.CachedGridLandscape — TypeCachedGridLandscapeEcosystem abundances housed in the cached landscape. These are either stored in the matrix or output to a cache.
EcoSISTEM.ContinuousHab — TypeContinuousHab{C <: Number} <: AbstractHabitat{C}This habitat subtype houses a habitat matrix matrix of any units, a grid square size size and HabitatUpdate type change.
EcoSISTEM.ContinuousTimeHab — TypeContinuousTimeHab{C <: Number, M <: AbstractArray{C, 3}} <: AbstractHabitat{C}This habitat subtype houses a habitat matrix matrix of any units, the time slice of the habitat matrix currently being operated on time, a grid square size size and HabitatUpdate type change.
EcoSISTEM.ContinuousTrait — TypeContinuousTrait{C <: Number} <: AbstractTraits{T}Abstract trait type that holds information on a single continuous trait for each species, of any Number type C.
EcoSISTEM.Cylinder — TypeCylinder <: BoundaryConditionA cylindrical boundary where species can cross the x boundary but not the y.
EcoSISTEM.DeathFromInfection — TypeDeathFromInfection <: AbstractStateTransitionTransition from infected to dead category at a set probability, prob.
EcoSISTEM.DeathProcess — TypeDeathProcess <: AbstractStateTransitionStochastic death process for a location and species, with an associated probability.
EcoSISTEM.DevelopSymptoms — TypeDevelopSymptoms <: AbstractStateTransitionTransition from pre-infectious to infectious categories at a set probability, prob. Any infectious category can be designated through destination.
EcoSISTEM.DiscreteHab — TypeDiscreteHab <: AbstractHabitat{String}This habitat subtype has a matrix of strings and a float grid square size
EcoSISTEM.DiscreteTrait — TypeBasicTrait{T} <: AbstractTraits{T}Basic trait type that holds information on a single trait for each species, of any type T.
EcoSISTEM.DiseaseState — Typeenum: DiseaseState
Disease state of a group, from: Susceptible Infectious Removed OtherDiseaseStateEcoSISTEM.Ecosystem — TypeEcosystem{L <: AbstractLandscape, Part <: AbstractPartition, SL <: AbstractSpeciesList,
TR <: AbstractTraitRelationship, LU <: AbstractLookup, C <: AbstractCache} <:
AbstractEcosystem{L, Part, SL, TR, LU, C}Ecosystem type which is a subtype of AbstractEcosystem. It houses information on the abundances of species in the landscape, abundances, information about those species, spplist, information about the abiotic environment, abenv, the ordinariness (for Diversity.jl calculations), the relationship between the species and their environment, a pre-calculated lookup of all possible moves that could be made by each species, a cache, and a list of transitions.
EcoSISTEM.Ecosystem — MethodEcosystem(spplist::SpeciesList, abenv::GridAbioticEnv, rel::AbstractTraitRelationship; transitions::Union{Nothing, TransitionList} = nothing)
Function to create an Ecosystem with species from a SpeciesList, environment from a GridAbioticEnvironment, an AbstractTraitRelationship between the two, and a list of transitions. The Ecosystem is automatically and randomly populated from the start abundances in spplist.
EcoSISTEM.Ecosystem — MethodEcosystem(abundances::EpiLandscape{U, VecRNGType}, epilist::EL, epienv::EE, ordinariness::Union{Matrix{Float64}, Missing}, relationship::ER, lookup::EpiLookup, vm::Array{Float64, 2}, initial_infected::Int64, valid::Bool, transitions::Union{Nothing, TransitionList} ) where {U <: Integer, VecRNGType <: AbstractVector{<:Random.AbstractRNG}, EE <: AbstractEpiEnv, EL <: SpeciesList, ER <: AbstractTraitRelationship}
Function to create an Ecosystem with epi categories from a SpeciesList, environment from a AbstractEpiEnvironment, an AbstractTraitRelationship between the two, an EpiLookup of pre-determined moves, information for the EpiCache (initial_infected, valid and vm) and a list of transitions. An EpiCache is automatically generated.
EcoSISTEM.Ecosystem — MethodEcosystem(popfun::F, spplist::SpeciesList{T, Req}, abenv::GridAbioticEnv, rel::AbstractTraitRelationship; transitions::Union{Nothing, TransitionList} = nothing) where {F<:Function, T, Req}
Function to create an Ecosystem with species from a SpeciesList, environment from a GridAbioticEnvironment, an AbstractTraitRelationship between the two, and a list of transitions. The Ecosystem can be populated with a popfun.
EcoSISTEM.Ecosystem — MethodEcosystem(popfun::F, epilist::SpeciesList, epienv::GridEpiEnv, rel::AbstractTraitRelationship, intnum::U; initial_infected = 0, rngtype::Type{R} = Random.MersenneTwister, transitions = nothing) where {F<:Function, U <: Integer, R <: Random.AbstractRNG}
Function to create an Ecosystem with epi categories from a SpeciesList, environment from a GridEpiEnv, an AbstractTraitRelationship between the two, an indication of what integer type the abundances should be stored in intnum, an optional number of initial_infected to be seeded, and optional type for rand calls, rngtype, and an optional list of transitions. The Ecosystem can be populated with a popfun.
EcoSISTEM.Ecosystem — MethodEcosystem(epilist::SpeciesList, epienv::GridEpiEnv, rel::AbstractTraitRelationship, intnum::U = Int64(1); initial_infected = 0, rngtype::Type{R} = Random.MersenneTwister, transitions = nothing ) where {U <: Integer, R <: Random.AbstractRNG}
Function to create an Ecosystem with epi categories from a SpeciesList, environment from a GridEpiEnv, an AbstractTraitRelationship between the two, an indication of what integer type the abundances should be stored in intnum, an optional number of initial_infected to be seeded, and optional type for rand calls, rngtype, and an optional list of transitions. The Ecosystem is automatically and randomly populated from the start abundances in spplist.
EcoSISTEM.EnvExposure — TypeEnvExposure <: AbstractStateTransitionTransition for exposure of susceptibles to force of infection and environmental reservoir at set probabilities, force_prob and virus_prob respectively. This exposure mechanism is influenced by the local environment (fetched through the get_env function), controlled by the strength of env_param.
EcoSISTEM.EpiCache — TypeEpiCacheEpiCache houses a float array of moves made by all force of infection categories in a timestep for the update! function, virusmigration, an integer of how many initially infected individuals are introduced to the system, an array of locations that are active in the system, ordered_active, and a Bool to say if these caches are valid.
EcoSISTEM.EpiLandscape — TypeEpiLandscapeDisease class abundances housed in the landscape. These are represented in both 2 dimensions (for computational efficiency in simulations) and 3 dimensions (to represent disease classes, their abundances and position in the grid).
EcoSISTEM.EpiLookup — TypeEpiLookup <: AbstractLookupEpiLookup holds sparse matrices of local (locallookup) and commuting (regionlookup) moves for epi simulations.
EcoSISTEM.EpiMovement — TypeEpiMovement{MO <: AbstractMovement} <: AbstractMovementMovement can happen at several different levels, local gaussian processes, localmoves, and longer distance moves, regionmoves.
EcoSISTEM.EpiParams — TypeEpiParams{U <: Unitful.Units} <: AbstractParamsParameter set for any epi model type, which stores information on birth, virus generation and decay probabilities, as well as matrices for transitions between different states. transition houses straightforward transition probabilities between classes, whereas transition_virus houses probabilities that should be multiplied by the amount of virus in the system, such as infection transitions.
EcoSISTEM.EqualPop — TypeEqualPop <: AbstractParamsParameter type that holds information on a population's birth and death rates, birth and death, specifically populations where all species have the same information. l represents the longevity of species based on their energy requirements and s is the survival of species dependent on how well their traits reflect the environment. Finally boost is used to manipulate how much of a boost the species get from being in an environment with lots of available energy.
EcoSISTEM.Exposure — TypeExposure <: AbstractStateTransitionTransition for exposure of susceptibles to force of infection and environmental reservoir at set probabilities, force_prob and virus_prob respectively.
EcoSISTEM.FluctScenario — TypeFluctScenario <: AbstractScenarioThis scenario type holds a function that acts to fluctuate the environment.
EcoSISTEM.ForceDisperse — TypeForceDisperse <: AbstractStateTransitionTransition to disperse force of infection from a location.
EcoSISTEM.ForceProduce — TypeForceProduce <: AbstractStateTransitionTransition to produce force of infection from an infectious category at a set probability, prob.
EcoSISTEM.Gauss — TypeGauss{TR} <: AbstractTraitRelationship{TR}The Gaussian relationship between a continuous trait and its environment, paramaterised on any TR.
EcoSISTEM.GaussTrait — TypeGaussTrait{C <: Number} <: ContinuousTrait{C}Trait type that holds Gaussian mean and variance trait information for each species, of any number type C.
EcoSISTEM.GaussianKernel — TypeGaussianKernel <: AbstractKernelGaussianMovement holds parameters for a gaussian movement kernel; a dispersal variance for a species, var, and a threshold, thresh, beyond which dispersal cannot take place.
EcoSISTEM.GenerateSeed — TypeGenerateSeed <: AbstractStateTransitionStochastic seed generation process for a location and species, with an associated probability. An optional destination argument can be added if the seed produced should be added to a different category (i.e. age structured).
EcoSISTEM.GridAbioticEnv — TypeGridAbioticEnv{H, B} <: AbstractAbiotic{H, B}This abiotic environment type holds a habitat and budget, as well as a string of subcommunity names.
EcoSISTEM.GridEpiEnv — TypeGridEpiEnv{H, C} <: AbstractAbiotic{H, C}This epi environment type holds a habitat and control strategy, as well as a string of subcommunity names, and initial susceptible population.
EcoSISTEM.GridLandscape — TypeGridLandscapeEcosystem abundances housed in the landscape. These are represented in both 2 dimensions (for computational efficiency in simulations) and 3 dimensions (to represent species, their abundances and position in the grid).
EcoSISTEM.HostTypes — TypeHostTypes{MO <: AbstractMovement,
T <: AbstractTypes} <: AbstractTypesHostTypes holds information on the host disease classes, such as the name of each class, their initial abundances and types, as well as how they disperse virus across the landscape.
EcoSISTEM.Infection — TypeInfection <: AbstractStateTransitionTransition from exposed to infectious categories at a set probability, prob. Any infectious category can be designated through destination.
EcoSISTEM.Lockdown — TypeLockdown <: AbstractControlEcoSISTEM.LongTailKernel — TypeLongTailKernel <: AbstractKernelLongTailKernel holds parameters for a movement kernel; a dispersal variance for a species, var, and a threshold, thresh, beyond which dispersal cannot take place.
EcoSISTEM.Lookup — TypeLookupLookup houses information on x, y grid locations and the probability of occurrence at the location for the species in question p. pnew and moves are initially empty storage and written over by the movement step in update!(). pnew is the recalculated probability based on which directions are available and moves is the number of moves to that grid location in that step.
EcoSISTEM.MPIEcosystem — TypeMPIEcosystem{MPIGL <: MPIGridLandscape, Part <: AbstractAbiotic,
SL <: SpeciesList, TR <: AbstractTraitRelationship} <: AbstractEcosystem{Part, SL, TR}MPIEcosystem houses information on species and their interaction with their environment. It houses all information of a normal Ecosystem (see documentation for more details), with additional fields to describe which species are calculated on which machine. This includes: sppcounts - a vector of number of species per node, firstsp - the identity of the first species held by that particular node.
EcoSISTEM.MPIGridLandscape — TypeMPIGridLandscape{RA <: Base.ReshapedArray, NT <: NamedTuple}MPIEcosystem abundances housed in the landscape, shared across multiple nodes.
EcoSISTEM.Match — TypeMatch{TR} <: AbstractTraitRelationship{TR}The relationship between a discrete trait and its environment, paramaterised on any TR. Current conditions are matched to a trait preference and checked for a match.
EcoSISTEM.MultiScenario — TypeMultiScenario{S1 <: AbstractScenario, S2 <: AbstractScenario} <: AbstractScenarioThis scenario type holds multiple different scenario types.
EcoSISTEM.NoBoundary — TypeNoBoundary <: BoundaryConditionA hard boundary where no species can cross.
EcoSISTEM.NoControl — TypeNoControl <: AbstractControlDefault strategy, which implements no control measures.
EcoSISTEM.NoMovement — TypeNoMovement{K <: AbstractKernel, B <: BoundaryCondition} <: AbstractMovementNo movement can take place.
EcoSISTEM.NoRelContinuous — TypeNoRelContinuous{TR} <: AbstractTraitRelationship{TR}The absense of a relationship between a continuous trait and its environment, paramaterised on any TR. Returns the value 1.
EcoSISTEM.NoRelDiscrete — TypeNoRelDiscrete{TR} <: AbstractTraitRelationship{TR}The absense of a relationship between a discrete trait and its environment, paramaterised on any TR. Returns the value 1.
EcoSISTEM.PlantCache — TypePlantCacheCache houses an integer array of seed production made by all species in the Ecosystem, seedbank, moves made by all dispersing seeds in a timestep, netmigration, a matrix of current resource used in the Ecosystem, totalE, and a Bool to say if these caches are valid.
EcoSISTEM.PopGrowth — TypePopGrowth <: AbstractParamsBasic parameter type that holds information on a population's birth and death rates, birth and death, as well as how these are altered by energy availability. l represents the longevity of species based on their energy requirements and s is the survival of species dependent on how well their traits reflect the environment.
EcoSISTEM.RainBin — TypeRainBin{C <: Int} <: ContinuousTrait{C}Trait type that holds binned rainfall preference information created through ClimatePref. Holds an array of counts per rainfall band (mm).
EcoSISTEM.Recovery — TypeRecovery <: AbstractStateTransitionTransition from infected to recovered category at a set probability, prob.
EcoSISTEM.SeedDisperse — TypeSeedDisperse <: AbstractPlaceTransitionStochastic seed dispersal for a species at a location.
EcoSISTEM.SeedInfection — TypeSeedInfection <: AbstractWindDownTransition to update caches at end of update timestep, described in update_fun.
EcoSISTEM.SimpleBudget — TypeSimpleBudget <: AbstractBudget{Float64}This budget type has a matrix of floats, representing the energy budget of each subcommunity in the abiotic environment.
EcoSISTEM.SimpleRequirement — TypeSimpleRequirement <: Abstract1Requirement{Float64}A simple energy requirement is a single float for each species.
EcoSISTEM.SimpleScenario — TypeSimpleScenario <: AbstractScenarioThis scenario type holds a function that acts to change the entire ecosystem.
EcoSISTEM.SizeRequirement — TypeSizeRequirement <: Abstract1Requirement{Float64}A simple energy requirement is a single float for each species.
EcoSISTEM.SolarBudget — TypeSolarBudget <: AbstractBudget{typeof(1.0*kJ)}This budget type has a matrix of solar energy units, representing the energy budget of each subcommunity in the abiotic environment at a fixed point in time.
EcoSISTEM.SolarRequirement — TypeSolarRequirement <: Abstract1Requirement{typeof(1.0*kJ)}A vector of solar energy requirements (kJ) for each species.
EcoSISTEM.SolarTimeBudget — TypeSolarTimeBudget <: AbstractBudget{typeof(1.0*kJ)}This budget type has a matrix of solar energy units, representing the energy budget of each subcommunity in the abiotic environment along with which time dimension we are interested in.
EcoSISTEM.SpeciesList — TypeSpeciesList{S <: AbstractSpeciesTypes, P <: AbstractPathogenTypes, PA <: AbstractParams} <: AbstractSpeciesListSpeciesList holds information on any species types, pathogens types and associated parameters, params.
EcoSISTEM.SpeciesList — MethodSpeciesList(traits::TR, virus_abun::DataFrame, host_abun::DataFrame,
movement::MO, transitions::DataFrame, params::NamedTuple,
age_categories::Int64 = 1, movement_balance::NamedTuple = (local_balance = fill(1.0, nrow(host_abun) * age_categories), region_balance = fill(0.0, nrow(host_abun) * age_categories))) where {TR <: AbstractTraits, MO <: AbstractMovement}Function to create an SpeciesList for any type of epidemiological model - creating the correct number of classes and checking dimensions.
EcoSISTEM.SpeciesList — MethodSpeciesList{R <: AbstractRequirement,
MO <: AbstractMovement, P <: AbstractParams}(numspecies::Int64,
numtraits::Int64, abun_dist::Distribution, req::R,
movement::MO, params::P)Function to create a SpeciesList given a number of species, the number of traits they possess, their abundances, requirement from the environment and their movement kernel.
EcoSISTEM.SpeciesList — MethodSpeciesList{R <: AbstractRequirement, MO <: AbstractMovement,
T <: AbstractTypes, P <: AbstractParams}(numspecies::Int64,
numtraits::Int64, abun_dist::Distribution, req::R,
movement::MO, phy::T, params::P)Function to create a SpeciesList given a number of species, the number of traits they possess, their abundances, requirement from the environment and their movement kernel and any type of AbstractTypes.
EcoSISTEM.SpeciesLookup — TypeSpeciesLookup <: AbstractLookupSpeciesLookup holds Lookup information for each species in a vector, species.
EcoSISTEM.SpeciesTypes — TypeSpeciesTypes{TR <: AbstractTraits, R <: AbstractRequirement,
MO <: AbstractMovement, T <: AbstractTypes,
P <: AbstractParams} <: AbstractTypesSpecies list houses all species-specific information including trait information, phylogenetic relationships, requirement for energy and movement types.
EcoSISTEM.TempBin — TypeTempBin{C <: Int} <: ContinuousTrait{C}Trait type that holds binned temperature preference information created through ClimatePref. Holds an array of counts per temperature band (°C).
EcoSISTEM.Torus — TypeTorus <: BoundaryConditionA toroidal boundary where species can cross both boundaries.
EcoSISTEM.TraitCollection2 — TypeTraitCollection2{T1, T2} <: AbstractTraits{Tuple{T1, T2}}Trait collection that holds two trait types, TR1 and TR2.
EcoSISTEM.TraitCollection3 — TypeTraitCollection3{T1, T2, T3} <: AbstractTraits{Tuple{T1, T2, T3}}Trait collection that holds three trait types, TR1, TR2 and TR3.
EcoSISTEM.TransitionList — TypeTransitionList{T1 <: AbstractSetUp, T2 <: AbstractStateTransition,
T3 <: AbstractPlaceTransition, T4 <: AbstractWindDown}TransitionList type which houses information on setup, state, place and winddown transitions.
EcoSISTEM.Trapeze — TypeTrapeze{TR} <: AbstractTraitRelationship{TR}The relationship between a continuous trait and its environment, paramaterised on any TR.
EcoSISTEM.Trapezoid — TypeTrapezoid{T<:Real} <: ContinuousUnivariateDistributionTrapezoidal distribution as described at https://en.wikipedia.org/wiki/Trapezoidal_distribution.
EcoSISTEM.Unif — TypeTrapeze{TR} <: AbstractTraitRelationship{TR}The relationship between a continuous trait and its environment, paramaterised on any TR.
EcoSISTEM.UpdateEnergy — TypeUpdateEnergy <: AbstractSetUpHouses a function to update energy usage across the Ecosystem.
EcoSISTEM.UpdateEnvironment — TypeUpdateEnvironment <: AbstractWindDownHouses a function to update the habitat and resources across the Ecosystem.
EcoSISTEM.UpdateEpiEnvironment — TypeUpdateEpiEnvironment <: AbstractWindDownTransition to update caches at end of update timestep, described in update_fun.
EcoSISTEM.ViralLoad — TypeViralLoad <: AbstractStateTransitionTransition for force of infection to settle into environmental reservoir.
EcoSISTEM.VirusTypes — TypeVirusTypes{TR <: AbstractTraits,
T <: AbstractTypes} <: AbstractTypesVirusTypes holds information on the virus classes, such as the name of each class, their trait match to the environment, initial abundances and types.
EcoSISTEM.VolWaterBudget — TypeVolWaterBudget <: AbstractBudget{typeof(1.0*mm)}This budget type has a matrix of water volumes, representing the energy budget of each subcommunity in the abiotic environment at a fixed point in time.
EcoSISTEM.VolWaterRequirement — TypeVolWaterRequirement <: Abstract1Requirement{typeof(1.0*mm)}A vector of soil water volume requirements (m^3) for each species.
EcoSISTEM.VolWaterTimeBudget — TypeVolWaterTimeBudget <: AbstractBudget{typeof(1.0*mm)}This budget type has a matrix of volumetric soil water units, representing the water budget of each subcommunity in the abiotic environment along with which time dimension we are interested in.
EcoSISTEM.WaterBudget — TypeWaterBudget <: AbstractBudget{typeof(1.0*mm)}This budget type has a matrix of rainfall energy units, representing the energy budget of each subcommunity in the abiotic environment at a fixed point in time.
EcoSISTEM.WaterRequirement — TypeWaterRequirement <: Abstract1Requirement{typeof(1.0*mm)}A vector of water requirements (mm) for each species.
EcoSISTEM.WaterTimeBudget — TypeWaterTimeBudget <: AbstractBudget{typeof(1.0*mm)}This budget type has a matrix of rainfall units, representing the water budget of each subcommunity in the abiotic environment along with which time dimension we are interested in.
EcoSISTEM.additiveTR2 — TypeadditiveTR2{TR1, TR2} <: AbstractTraitRelationship{Tuple{TR1, TR2}}Type that houses multiple AbstractTraitRelationships for two trait and habitat levels.
EcoSISTEM.additiveTR3 — TypemultiplicativeTR3{TR1, TR2, TR3} <: AbstractTraitRelationship{Tuple{TR1, TR2, TR3}}Type that houses multiple AbstractTraitRelationships for three trait and habitat levels.
EcoSISTEM.multiplicativeTR2 — TypemultiplicativeTR2{TR1, TR2} <: AbstractTraitRelationship{Tuple{TR1, TR2}}Type that houses multiple AbstractTraitRelationships for two trait and habitat levels.
EcoSISTEM.multiplicativeTR3 — TypemultiplicativeTR3{TR1, TR2, TR3} <: AbstractTraitRelationship{Tuple{TR1, TR2, TR3}}Type that houses multiple AbstractTraitRelationships for three trait and habitat levels.
Base.isapprox — Methodisapprox(epi_1::AbstractEpiSystem, epi_2::AbstractEpiSystem; kwargs...)Compare two Ecosystems for approximate equality. Specifically, compares the Landscapes of the two systems.
Keyword arguments
- Anything to pass to
Base.isapprox.
You may want to pass in atol or rtol to loosen the equality tolerance.
EcoSISTEM.BM — FunctionBM(T::Real, σ²::Float64, start::Float64, lab::String="")Function to evolve a Real value through Brownian motion, with a starting value, start, and rate, σ².
EcoSISTEM.ContinuousEvolve — MethodContinuousEvolve(val::Union{Float64, Unitful.Quantity{Float64}}, var::Union{Float64, Unitful.Quantity{Float64}}, tree::BinaryTree)Function to evolve a continuous trait along a BinaryTree, tree via Brownian motion. Takes in a starting value, val and a variance, var.
EcoSISTEM.DiscreteEvolve — FunctionDiscreteEvolve(numTraits::Int64, tree::BinaryTree)Function to evolve a discrete switching trait along a BinaryTree, tree. Takes in a number of traits, numTraits to be switched between and rate to switch between traits, switch_rate with default value of 0.5.
EcoSISTEM.HabitatLoss — MethodHabitatLoss(eco::AbstractEcosystem, hab::ContinuousHab, timestep::Unitful.Time)Function to destroy habitat for one timestep of the ecosystem using HabitatUpdate information.
EcoSISTEM.NoChange — MethodNoChange(eco::AbstractEcosystem, hab::ContinuousHab, timestep::Unitful.Time)Function to keep the habitat the same for one timestep of the model.
EcoSISTEM.RainfallChange — MethodRainfallChange(eco::AbstractEcosystem, hab::ContinuousHab, timestep::Unitful.Time)Function to change the rainfall for one timestep of the ecosystem using HabitatUpdate information.
EcoSISTEM.SEI3HRD_wrapper — FunctionSEI3HRD_wrapper(grid_size::Tuple{Int64, Int64}, area::Unitful.Area{Float64}, params::NamedTuple, runtimes::NamedTuple)Function to simulate SEI3HRD stochastic realisations, given a grid dimension, grid_size, area size, a set of model parameters, params, and running parameters, runtimes.
Outputs an abundance matrice of compartment by grid cell over time. Compartments for the SEI3HRD model are: Susceptible, Exposed, Asymptomatic Infected, Pre-symptomatic Infected, Symptomatic Infected, Hospitalised, Recovered, Dead.
EcoSISTEM.SEI3HRD_wrapper! — FunctionSEI3HRD_wrapper!(grid_size::Tuple{Int64, Int64}, area::Unitful.Area{Float64}, params::NamedTuple, runtimes::NamedTuple, abuns::Array{Int64, 3})Function to simulate SEI3HRD stochastic realisations, given a grid dimension, grid_size, area size, a set of model parameters, params, and running parameters, runtimes.
Fills an abundance matrice of compartment by grid cell over time. Compartments for the SIR model are: Susceptible, Exposed, Asymptomatic Infected, Pre-symptomatic Infected, Symptomatic Infected, Hospitalised, Recovered, Dead.
EcoSISTEM.SIR_wrapper! — MethodSIR_wrapper!(grid_size::Tuple{Int64, Int64}, area::Unitful.Area{Float64}, params::NamedTuple, runtimes::NamedTuple, abuns::Array{Int64, 3})Function to simulate simple SIR stochastic realisations, given a grid dimension, grid_size, area size, a set of model parameters, params, and running parameters, runtimes.
Fills an abundance matrice of compartment by grid cell over time. Compartments for the SIR model are: Susceptible, Infected, Recovered, Dead.
EcoSISTEM.SIR_wrapper — MethodSIR_wrapper(grid_size::Tuple{Int64, Int64}, area::Unitful.Area{Float64}, params::NamedTuple, runtimes::NamedTuple)Function to simulate simple SIR stochastic realisations, given a grid dimension, grid_size, area size, a set of model parameters, params, and running parameters, runtimes.
Outputs an abundance matrice of compartment by grid cell over time. Compartments for the SIR model are: Susceptible, Infected, Recovered, Dead.
EcoSISTEM.TempChange — MethodTempChange(eco::AbstractEcosystem, hab::ContinuousHab, timestep::Unitful.Time)Function to increase the temperature for one timestep of the ecosystem using HabitatUpdate information.
EcoSISTEM.TempFluct — MethodTempFluct(eco::AbstractEcosystem, hab::ContinuousHab, timestep::Unitful.Time)Function to fluctuate the temperature for one timestep of the ecosystem using HabitatUpdate information.
EcoSISTEM._construct_shrunk_matrix — Method_construct_shrunk_matrixConstruct a shrunk matrix by selecting certain rows and columns specified by row_idxs and col_idxs from AbstractMatrix M.
Return an AxisArray{T, 2}. The axes will be the selected subset of the original axes if M is an AxisArray. If M is a normal matrix, the axes of the returned AxisArray are the selected coordinates.
EcoSISTEM._convert_population — Method_convert_populationConvert populatioin matrix to Int matrix by filling in the inactive area with 0 population and rounding the active area.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::AllDisperse, timestep::Unitful.Time)Stochastic dispersal process across the ecosystem for a species from a location, house inside rule, for one timestep.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::BirthProcess, timestep::Unitful.Time)Stochastic birth process for a location and species, house inside rule, for one timestep.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::DeathProcess, timestep::Unitful.Time)Stochastic death process for a location and species, house inside rule, for one timestep.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::EnvExposure, timestep::Unitful.Time)Stochastic environmentally-driven exposure process for a location, housed inside rule, for one timestep. Moves from susceptible category, species to exposed category, destination.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::Exposure, timestep::Unitful.Time)Stochastic exposure process for a location, housed inside rule, for one timestep. Moves from susceptible category, species to exposed category, destination.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::ForceDisperse)Random dispersal of force of infection from a location.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::ForceProduce, timestep::Unitful.Time)Generation of force of infection for a location.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::GenerateSeed, timestep::Unitful.Time)Stochastic seeding process for a location and species, house inside rule, for one timestep.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::SeedDisperse, timestep::Unitful.Time)Stochastic seed dispersal process across the ecosystem for a species from a location, house inside rule, for one timestep.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::SeedInfection)Seed initial infected individuals.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::Union{Infection, DevelopSymptoms, Hospitalise,
DeathFromInfection, Recovery}, timestep::Unitful.Time)Stochastic epi transition process for a location, housed inside rule, for one timestep. Moves from source category, species to destination category, destination.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::UpdateEnergy, timestep::Unitful.Time)Calculate energy usage across the Ecosystem for one timestep.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::UpdateEnvironment, timestep::Unitful.Time)Update habitat and resource budget across the Ecosystem for one timestep.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::UpdateEpiEnvironment)Update the ecosystem caches.
EcoSISTEM._run_rule! — Method_run_rule!(eco::Ecosystem, rule::ViralLoad, timestep::Unitful.Time)Settling of force of infection into environmental reservoir for a location.
EcoSISTEM.abundances — Methodabundances(cache::CachedEcosystem, tm::Unitful.Time)Function to extract abundances for an ecosystem, cache, at a certain point in time, tm. If the abundances for that time are missing from the ecosystem, then the function checks on disk for the last saved version and simulates forward.
EcoSISTEM.addspecies! — Methodaddspecies!(eco::Ecosystem, abun::Int64)Function to add a species to the Ecosystem.
EcoSISTEM.addtransition! — Methodaddtransition!(tl::TransitionList, rule::AbstractPlaceTransition)Add a place transition to the TransitionList.
EcoSISTEM.addtransition! — Methodaddtransition!(tl::TransitionList, rule::AbstractSetUp)Add a set up transition to the TransitionList.
EcoSISTEM.addtransition! — Methodaddtransition!(tl::TransitionList, rule::AbstractStateTransition)Add a state transition to the TransitionList.
EcoSISTEM.addtransition! — Methodaddtransition!(tl::TransitionList, rule::AbstractWindDown)Add a wind down transition to the TransitionList.
EcoSISTEM.applycontrols! — Methodapplycontrols!(epi::Ecosystem, timestep::Unitful.Time)Function to apply control strategies to an Ecosystem for one timestep.
EcoSISTEM.assign_traits! — Methodassign_traits!(tree::AbstractTree, start::Vector{Float64},
σ²::Vector{Float64})Function to evolve continuous functional traits through a phylogenetic tree through Brownian motion, with a starting value, start, and rate, σ².
EcoSISTEM.assign_traits! — Methodassign_traits!(tree::AbstractTree, switch_rate::Vector{Float64},
traits::Vector{Vector{String}})Function to evolve categorical functional traits through a phylogenetic tree with a specific switching rate.
EcoSISTEM.bioclimAE — MethodbioclimAE(bc::Worldclim_bioclim, maxbud::Unitful.Quantity{Float64}, area::Unitful.Area{Float64})
Function to create a ContinuousHab, SimpleBudget type abiotic environment from an Wordclim type climate. It either creates a SimpleBudget type filled with the maximum budget value maxbud or uses a provided budget of type SolarBudget. If a Bool matrix of active grid squares is included, active, this is used, else one is created with all grid cells active.
EcoSISTEM.biodiversity_update! — Methodbiodiversity_update!(eco::Ecosystem, time::Unitful.Time)Function to update a ecosystem abundances and environment for one timestep.
EcoSISTEM.budgetupdate! — Methodbudgetupdate!(eco::AbstractEcosystem, timestep::Unitful.Time)Function to update the budget of an ecosystem for one timestep.
EcoSISTEM.calc_lookup_moves! — Methodcalc_lookup_moves!(bound, x::Int64, y::Int64, sp::Int64, eco::Ecosystem, abun::Int64)Function to calculate the number of moves taken by a species, sp, from a specific grid square location (x, y). There is a boundary condition, bound, which determines how the species can move across space (see AbstractBoundary). The total abundance of individuals is given in abun, which may be the number of births in the timestep, or total indiviuals.
EcoSISTEM.classupdate! — Methodclassupdate!(epi::Ecosystem, timestep::Unitful.Time)Function to update disease class abundances for one timestep.
EcoSISTEM.combineTR — MethodcombineTRFunction that combines the output of multiple trait relationships, which varies depending on whether multiplicative, additive etc.
EcoSISTEM.convert_coords — Functionconvert_coords(eco, i::Int64, width::Int64)
convert_coords(eco, x::Int64, y::Int64, width::Int64)Function to convert coordinates from two-dimensional (x,y) format to one dimension (i), or vice versa, using the width of the grid. This function can also be applied to arrays of coordinates.
EcoSISTEM.convert_population — Methodfunction convert_population(
initial_population,
intnum::U = Int64(1)
)Convert population matrix to Int matrix by filling in the inactive area with 0 population and rounding the active area.
EcoSISTEM.create_cache — Methodcreate_cache(sppl::SpeciesList, ml::EpiLandscape)Function to create an EpiCache for a SpeciesList and EpiLandscape.
EcoSISTEM.create_cache — Methodcreate_cache(sppl::SpeciesList, ml::GridLandscape)Function to create a Cache for a SpeciesList and GridLandscape.
EcoSISTEM.create_cache — Methodcreate_cache(sppl::SpeciesList{SpeciesTypes{TR, R, MO, T}},
ml::GridLandscape) where {TR, R, MO <: BirthOnlyMovement, T}Function to create a PlantCache for a SpeciesList with movement only via seed production (BirthOnlyMovement) and GridLandscape.
EcoSISTEM.emptyepilandscape — Methodemptyepilandscape(epienv::GridEpiEnv, epilist::SpeciesList)Function to create an empty EpiLandscape given a GridEpiEnv and a SpeciesList.
EcoSISTEM.emptygridlandscape — Methodemptygridlandscape(gae::GridAbioticEnv, spplist::SpeciesList)Function to create an empty GridLandscape given a GridAbioticEnv and a SpeciesList.
EcoSISTEM.emptypopulate! — Methodemptypopulate!(ml::GridLandscape, spplist::SpeciesList,
abenv::AB, rel::R) where {AB <: EcoSISTEM.AbstractAbiotic, R <: EcoSISTEM.AbstractTraitRelationship}EcoSISTEM.energy_adjustment — Methodenergy_adjustment(eco::Ecosystem, bud::AbstractBudget, i::Int64, sp::Int64)Function to calculate how much birth and death rates should be adjusted by, according to how much energy is available, bud, in the grid square, i, and how much energy the species, sp, requires.
EcoSISTEM.epi_update! — Methodepi_update!(epi::Ecosystem, time::Unitful.Time)Function to update disease and virus class abundances and environment for one timestep.
EcoSISTEM.equalpop — Methodequalpop(params::EqualPop, numspp)Function that takes demographic parameters from type EqualPop and converts them into type PopGrowth based on the number of species (numspp).
EcoSISTEM.eraAE — MethoderaAE(era::ERA, maxbud::Unitful.Quantity{Float64})
Function to create a ContinuousHab, SimpleBudget type abiotic environment from an ERA type climate. It either creates a SimpleBudget type filled with the maximum budget value maxbud or uses a provided budget of type SolarTimeBudget. If a Bool matrix of active grid squares is included, active, this is used, else one is created with all grid cells active.
EcoSISTEM.eraChange — MethoderaChange(eco::AbstractEcosystem, hab::ContinuousHab, timestep::Unitful.Time)Function to step the ERA climate forward by one timestep.
EcoSISTEM.genlookups — Methodgenlookups(hab::AbstractHabitat, mov::GaussianMovement)Function to generate lookup tables, which hold information on the probability of moving to neighbouring squares.
EcoSISTEM.geom_mean_abun — Methodgeom_mean_abun(eco::Ecosystem, qs::Vector{Float64})Function to calculate the geometric mean abundance for the entire ecosystem.
EcoSISTEM.get_env — Methodget_env(habitat::A) where A <: AbstractHabitatGeneric function to extract a habitat matrix from any habitat type.
EcoSISTEM.get_neighbours — Functionget_neighbours(mat::Matrix, x_coord::Int64, y_coord::Int64, chess::Int64=4)Function to get the neighbours of a grid square in a matrix in 4 or 8 directions
EcoSISTEM.get_traits — Functionget_traits(tree::AbstractTree, tips::Bool=true)Function to retrieve functional traits assigned to a phylogenetic tree, either just tips or all nodes.
EcoSISTEM.getbudget — Methodgetbudget(eco::Ecosystem)Function to extract budget from Ecosystem object.
EcoSISTEM.getdestination — Methodgetdestination(rule::AbstractStateTransition)Generic function to get a destination to which a state transition happening.
EcoSISTEM.getdimension — Methodgetdimension(eco::Ecosystem)Function to extract dimension of habitat from Ecosystem object.
EcoSISTEM.getdispersaldist — Methodgetdispersaldist(eco::Ecosystem)Function to extract average dispersal distance of species from Ecosystem object. Returns a vector of distances, unless a specific species is provided as a String or Integer.
EcoSISTEM.getdispersalvar — Methodgetdispersalvar(eco::Ecosystem)Function to extract dispersal varaince of species from Ecosystem object. Returns a vector of distances, unless a specific species is provided as a String or Integer.
EcoSISTEM.getgridsize — Methodgetgridsize(eco::Ecosystem)Function to extract grid cell size of habitat from Ecosystem object.
EcoSISTEM.gethabitat — Methodgethabitat(eco::Ecosystem)Function to extract habitat from Ecosystem object.
EcoSISTEM.getlocation — Methodgetlocation(rule::AbstractPlaceTransition)Generic function to get location where a place transition happening.
EcoSISTEM.getlocation — Methodgetlocation(rule::AbstractStateTransition)Generic function to get location where a state transition happening.
EcoSISTEM.getlookup — Methodgetlookup(eco::Ecosystem)Function to extract movement lookup table of species from Ecosystem object.
EcoSISTEM.getpathogentraits — Methodgetpathogentraits(eco::Ecosystem)Function to extract pathogen trait preferences from Ecosystem object.
EcoSISTEM.getpref — Methodgetpref(traits::T, field::Symbol) where T <: AbstractTraitsFunction to extract trait preferences for all species in the ecosystem.
EcoSISTEM.getprob — Methodgetprob(rule::AbstractStateTransition)Generic function to get probability of a state transition happening.
EcoSISTEM.getrelationship — Methodgetpref(traits::T, field::Symbol) where T <: AbstractTraitsFunction to extract the trait relationship of all species in the ecosystem.
EcoSISTEM.getsize — Methodgetsize(eco::Ecosystem)Function to extract size of habitat from Ecosystem object.
EcoSISTEM.getspecies — Methodgetspecies(rule::AbstractPlaceTransition)Generic function to get species to which a place transition happening.
EcoSISTEM.getspecies — Methodgetspecies(rule::AbstractStateTransition)Generic function to get species to which a state transition happening.
EcoSISTEM.getspeciestraits — Methodgetspeciestraits(eco::Ecosystem)Function to extract species trait preferences from Ecosystem object.
EcoSISTEM.gettraitrel — Methodgettraitrel(eco::Ecosystem)Function to extract trait relationships.
EcoSISTEM.gettransitions — Methodgettransitions(eco::E) where E <: AbstractEcosystemFunction to extract the transition list from an arbitrary ecosystem.
EcoSISTEM.habitatupdate! — Methodhabitatupdate!(eco::AbstractEcosystem, timestep::Unitful.Time)Function to update the habitat of an ecosystem for one timestep.
EcoSISTEM.initialise_output — Methodinitialise_output(
abuns::Array,
axes::NamedTuple;
h5fn=joinpath(pwd(),"abundances.h5")
)Create an HDF5 file h5fn to store abundance. Preallocate a fix-sized array to store abundance for each compartment, grid location and timestep. Fill in values for compartments, grid locations and timesteps.
EcoSISTEM.invalidatecaches! — Methodinvalidatecaches!(eco::E) where E <: AbstractEcosystemFunction to invalidate Ecosystem caches at the end of a timestep.
EcoSISTEM.makeunique — Methodmakeunique(eco::Ecosystem)Function to convert type of similarity in SpeciesList to UniqueTypes, i.e. an identity matrix.
EcoSISTEM.mean_abun — Methodmean_abun(eco::Ecosystem, qs::Vector{Float64})Function to calculate the mean arithmetic abundance for the entire ecosystem.
EcoSISTEM.meta_shannon — Methodmeta_shannon(eco::Ecosystem, qs::Vector{Float64})Function to calculate the Shannon entropy for the entire ecosystem.
EcoSISTEM.meta_simpson — Methodmeta_simpson(eco::Ecosystem, qs::Vector{Float64})Function to calculate the Simpson diversity for the entire ecosystem.
EcoSISTEM.meta_speciesrichness — Methodmeta_speciesrichness(eco::Ecosystem, qs::Vector{Float64})Function to calculate the species richness for the entire ecosystem.
EcoSISTEM.move! — Methodmove!(eco::Ecosystem, ::AbstractMovement, i::Int64, sp::Int64, grd::Matrix{Int64}, abun::Int64)Function to calculate the movement of species sp from a given position in the landscape i, using the lookup table found in the Ecosystem and updating the movement patterns on a cached grid, grd. Optionally, a number of births can be provided, so that movement only takes place as part of the birth process, instead of the entire population
EcoSISTEM.pd — Methodpd(eco::Ecosystem, qs::Vector{Float64})Function to calculate Faith's phylogenetic diversity (PD) for the entire ecosystem.
EcoSISTEM.peakedgradAE — MethodpeakedgradAE(minT::Unitful.Temperature{Float64},
maxT::Unitful.Temperature{Float64},
dimension::Tuple{Int64, Int64}, maxbud::Unitful.Quantity{Float64},
area::Unitful.Area{Float64}, rate::Quantity{Float64, 𝚯*𝐓^-1},
active::Matrix{Bool})Function to create a temperature gradient ContinuousHab, SimpleBudget type abiotic environment. Given a min and max temperature, it generates a gradient from minima at the top and bottom peaking to maximum in the middle. It creates a ContinuousHab environment with dimensions dimension and a specified area area. It also creates a SimpleBudget type filled with the maximum budget value maxbud. The rate of temperature change is specified using the parameter rate. If a Bool matrix of active grid squares is included, active, this is used, else one is created with all grid cells active.
EcoSISTEM.plot_epidynamics — Functionplot_epidynamics(
epi::AbstractEpiSystem,
abuns::AbstractArray{<:Integer, 3};
category_map=nothing,
)Plot the dynamics of abuns summed over space, as a function of time.
Arguments
epi: TheAbstractEpiSystemto plot.abuns: The array of abundances to plot, of size Ncompartments x Ncells x Nsteps
Keyword arguments
category_map: An iterable of key-value pairs where the keys are category names, and the values are a list of compartment indices associated with that category. These compartments will be summed in the plot. For example, the following will plot the sum of compartments 1 and 2 as theSusceptiblecategory, and the sum of compartments 3 and 4 as theInfectedcategory.category_map = ("Susceptible" => [1, 2], "Infected" => [3, 4])If
category_mapisnothing, all compartments inepiwill be plotted separately with their corresponding names.
EcoSISTEM.plot_epiheatmaps — Functionplot_epiheatmaps(
epi::AbstractEpiSystem,
abuns::AbstractArray{<:Integer, 3};
compartment="Exposed",
steps=[],
)Plot heatmaps of abuns for compartment at steps.
Arguments
epi: TheAbstractEpiSystemto plot.abuns: The array of abundances to plot, of size Ncompartments x Ncells x Nsteps
Keyword arguments
compartment: The compartment to plotsteps: A list of steps to plot (one heatmap for each step). If empty, plots 4 equally-spaced steps.
Heatmaps are transposed by default. Pass in transpose=false to turn this off.
EcoSISTEM.populate! — Methodpopulate!(ml::EpiLandscape, spplist::SpeciesList, abenv::EE, rel::R)Function to populate an EpiLandscape with information on each disease class in the SpeciesList.
EcoSISTEM.raingrad — Methodraingrad(minT::Unitful.Temperature{Float64}, maxT::Unitful.Temperature{Float64},
size::Unitful.Length{Float64},
dim::Tuple{Int64, Int64}, rate::Quantity{Float64, 𝚯*𝐓^-1})Function to create a ContinuousHab habitat with a rainfall gradient.
EcoSISTEM.raingradAE — MethodraingradAE(min::Unitful.Temperature{Float64},
max::Unitful.Temperature{Float64},
dimension::Tuple{Int64, Int64}, maxbud::Float64,
area::Unitful.Area{Float64}, rate::Quantity{Float64, typeof(𝚯*𝐓^-1)},
active::Matrix{Bool})Function to create a rain gradient ContinuousHab, SimpleBudget type abiotic environment. Given a min and max rainfall, it generates a gradient from minimum at the bottom to maximum at the top. It creates a ContinuousHab environment with dimensions dimension and a specified area area. It also creates a SimpleBudget type filled with the maximum budget value maxbud. The rate of rainfall change is specified using the parameter rate. If a Bool matrix of active grid squares is included, active, this is used, else one is created with all grid cells active.
EcoSISTEM.randomniches — Methodrandomniches(dimension::Tuple, types::Vector{String}, clumpiness::Float64, weights::Vector)Function to create a DiscreteHab habitat of dimension dimension, made up of sampled string types, types, that have a weighting, weights and clumpiness parameter, clumpiness.
EcoSISTEM.reenergise! — Methodreenergise!(eco::Ecosystem, budget::Union{Float64, Unitful.Quantity{Float64}}, grid::Tuple{Int64, Int64})Function to refill an ecosystem eco, with energy from a budget value, budget and a grid size.
EcoSISTEM.repopulate! — Methodrepopulate!(eco::Ecosystem, abun::Int64)Function to repopulate an ecosystem eco, with option for including trait preferences. An additional abun parameter can be included, in order to repopulate the ecosystem with a specified number of individuals.
EcoSISTEM.resetrate! — Methodresetrate!(eco::Ecosystem, rate::Quantity{Float64, typeof(𝐓^-1)})Function to reset the rate of habitat change for a species.
EcoSISTEM.resettime! — Methodresettime!(eco::E) where E <: AbstractEcosystemFunction to reset the time of habitat change for a species.
EcoSISTEM.run_rule! — Methodrun_rule!(eco::Ecosystem, rule::AbstractTransition, timestep::Unitful.Time)Implement _run_rule! function for a particular rule type, R, for one timestep.
EcoSISTEM.runscenario! — Methodrunscenario!(eco::Ecosystem, timestep::Unitful.Time, scenario::S, currentstep::Unitful.Time) where S <: AbstractScenarioThis function runs any scenario type for one timestep.
EcoSISTEM.shrink_to_active — Method_shrink_to_active(M::AbstractMatrix, active::AbstractMatrix{<:Bool})Shrink the matrix M to the minimum rectangular region which contains all active cells, as defined by active. Returns the shrunk matrix.
If active is not provided, automatically determines the active region by masking out entries which areNaNormissing`.
EcoSISTEM.simplehabitat — Methodsimplehabitat(val::Unitful.Quantity, size::Unitful.Length,
dim::Tuple{Int64, Int64})Function to create a ContinuousHab habitat of dimension dim, with cell size and filled value, val.
EcoSISTEM.simplehabitatAE — MethodsimplehabitatAE(val::Union{Float64, Unitful.Quantity{Float64}},
dimension::Tuple{Int64, Int64}, maxbud::Float64, area::Unitful.Area{Float64},
active::Matrix{Bool})Function to create a simple ContinuousHab, SimpleBudget type abiotic environment. It creates a ContinuousHab filled with a given value, val, dimensions (dimension) and a specified area (area). It also creates a SimpleBudget type filled with the maximum budget value (maxbud). The rate of temperature change is specified using the parameter rate. If a Bool matrix of active grid squares is included, active, this is used, else one is created with all grid cells active.
EcoSISTEM.simplehabitatAE — Methodfunction simplehabitatAE(
val::Union{Float64, Unitful.Quantity{Float64}},
dimension::Tuple{Int64, Int64},
area::Unitful.Area{Float64},
active::AbstractMatrix{Bool},
control::C,
)Function to create a simple ContinuousHab type epi environment. It creates a ContinuousHab filled with a given value val, of dimensions dimension and specified area area. If a Bool matrix active of active grid squares is included, this is used, else one is created with all grid cells active.
The simulation grid will be shrunk so that it tightly wraps the active values
EcoSISTEM.simplenicheAE — MethodsimplenicheAE(numniches::Int64, dimension::Tuple,
maxBud::Float64, area::Unitful.Area{Float64},
active::Matrix{Bool})Function to create a simple DiscreteHab, SimpleBudget type abiotic environment. Given a number of niche types numniches, it creates a DiscreteHab environment with dimensions dimension and a specified area area. It also creates a SimpleBudget type filled with the maximum budget value maxbud. If a Bool matrix of active grid squares is included, active, this is used, else one is created with all grid cells active.
EcoSISTEM.simulate! — Methodfunction simulate!(
eco::Ecosystem,
duration::Unitful.Time,
timestep::Unitful.Time;
save=false,
save_path=pwd(),
)Run an ecosystem, eco, for specified length of times, duration, for a particular timestep, timestep. If save=true, inputs and outputs are saved as JLSO files at save_path.
EcoSISTEM.simulate_record! — Methodsimulate_record!(
storage::AbstractArray,
eco::Ecosystem,
times::Unitful.Time,
interval::Unitful.Time,
timestep::Unitful.Time;
save=false,
save_path=pwd(),
)Run an ecosystem, ecoepi, for specified length of times, times, for a particular timestep, timestep, and time interval for abundances to be recorded, interval. Optionally, there may also be a scenario by which the whole ecosystem is updated, such as removal of habitat patches.
EcoSISTEM.sorenson — Methodsorenson(eco::Ecosystem, qs::Vector{Float64})Function to calculate the Sorenson similarity for the entire ecosystem.
EcoSISTEM.sum_pop — Methodsum_pop(m::Matrix{Int64}, i::Int64)Function to sum a population matrix, m, without memory allocation, at a grid location i.
EcoSISTEM.tematch — Methodtematch(sppl::SpeciesList, abenv::AbstractAbiotic)Function to check that the types of a trait list and habitat list are the same for a species list (sppl) and abiotic environment (abenv).
EcoSISTEM.tempgrad — Methodtempgrad(minT::Unitful.Temperature{Float64}, maxT::Unitful.Temperature{Float64},
size::Unitful.Length{Float64},
dim::Tuple{Int64, Int64}, rate::Quantity{Float64, 𝚯*𝐓^-1})Function to create a ContinuousHab habitat with a temperature gradient.
EcoSISTEM.tempgradAE — MethodtempgradAE(min::Unitful.Temperature{Float64},
max::Unitful.Temperature{Float64},
dimension::Tuple{Int64, Int64}, maxbud::Float64,
area::Unitful.Area{Float64}, rate::Quantity{Float64, typeof(𝚯*𝐓^-1)},
active::Matrix{Bool})Function to create a temperature gradient ContinuousHab, SimpleBudget type abiotic environment. Given a min and max temperature, it generates a gradient from minimum at the bottom to maximum at the top. It creates a ContinuousHab environment with dimensions dimension and a specified area area. It also creates a SimpleBudget type filled with the maximum budget value maxbud. The rate of temperature change is specified using the parameter rate. If a Bool matrix of active grid squares is included, active, this is used, else one is created with all grid cells active.
EcoSISTEM.traitfun — Methodtraitfun(eco::AbstractEcosystem, pos::Int64, sp::Int64, ::P) where P <: AbstractPathogenTypesFunction to calculate relationship between the current environment and a pathogen's particular trait.
EcoSISTEM.traitfun — Methodtraitfun(eco::AbstractEcosystem, pos::Int64, sp::Int64, ::S) where S <: AbstractSpeciesTypesFunction to calculate relationship between the current environment and a species' particular trait.
EcoSISTEM.traitpopulate! — Methodtraitpopulate!(ml::GridLandscape, spplist::SpeciesList,
abenv::AbstractAbiotic)Function to populate a grid landscape given the abundances found in species list based upon how well the species traits match their environment.
EcoSISTEM.traitrepopulate! — Methodrepopulate!(eco::Ecosystem, abun::Int64)Function to repopulate an ecosystem eco, with option for including trait preferences. An additional abun parameter can be included, in order to repopulate the ecosystem with a specified number of individuals.
EcoSISTEM.transition — Functiontransition(params::NamedTuple, paramDat::DataFrame, nclasses::Int64, inf_cat = [2], age_categories = 1)Function to create transition matrix from SIS parameters and return an EpiParams type that can be used by the model update.
EcoSISTEM.trmatch — Methodtrmatch(sppl::SpeciesList, traitrel::AbstractTraitRelationship)Function to check that the types of a trait list and trait relationship list are the same for a species list (sppl) and trait relationship (traitrel).
EcoSISTEM.ukChange — MethodukChange(epi::Ecosystem, hab::ContinuousTimeHab, timestep::Unitful.Time)Function to step the uk climate forward by one timestep. Will repeat if time counter becomes greater than the number of dimensions in the habitat.
EcoSISTEM.update! — Functionupdate!(eco::Ecosystem, timestep::Unitful.Time)Update an Ecosystem by one timestep, running through different transitions, including set up, state and place transitions, and winddown.
EcoSISTEM.update! — Methodupdate!(eco::AbstractEcosystem{L}, timestep::Unitful.Time, ::Nothing) where L <: EpiLandscapeUpdate an Ecosystem by one timestep, running through the older version of the epidemiology code.
EcoSISTEM.update! — Methodupdate!(eco::AbstractEcosystem{L}, timestep::Unitful.Time, ::Nothing) where L <: GridLandscapeUpdate an Ecosystem by one timestep, running through the older version of the biodiversity code.
EcoSISTEM.update_energy_usage! — Methodupdate_energy_usage!(eco::Ecosystem)Function to calculate how much energy has been used up by the current species in each grid square in the ecosystem, eco. This function is parameterised on whether the species have one type of energy requirement or two.
EcoSISTEM.update_environment! — Methodupdate_environment!(eco::Ecosystem, timestep::Unitful.Time)Function to update the habitat and resources across the Ecosystem.
EcoSISTEM.update_epi_environment! — Methodupdate_epi_environment!(epi::Ecosystem, timestep::Unitful.Time)Function to update the virus abundances with cached migration moves and invalidate all caches.
EcoSISTEM.update_output — Methodupdate_output(
abuns_t::Matrix,
timestep::Int;
h5fn=joinpath(pwd(),"abundances.h5")
)Update the existing HDF5 file h5fn with the abundance matrix at a certain timestep.
EcoSISTEM.update_virus_cache! — Methodupdate_virus_cache!(epi::Ecosystem)Function to update the virus abundances with cached migration moves.
EcoSISTEM.virusmove! — Methodvirusmove!(epi::AbstractEcosystem, id::Int64, pos::Int64, grd::Array{Int64, 2}, newvirus::Int64)Function to calculate the movement of force of infection id from a given position in the landscape pos, using the lookup table found in the Ecosystem and updating the movement patterns on a cached grid, grd. The number of new virus is provided, so that movement only takes place as part of the generation process.
EcoSISTEM.virusupdate! — Methodvirusupdate!(epi::Ecosystem, time::Unitful.Time)Function to update virus abundances and disperse for one timestep.
EcoSISTEM.worldclimAE — MethodworldclimAE(wc::Worldclim_monthly, maxbud::Unitful.Quantity{Float64})
Function to create a ContinuousTimeHab, SimpleBudget type abiotic environment from a Wordclim type climate. It either creates a SimpleBudget type filled with the maximum budget value maxbud or uses a provided budget of type SolarTimeBudget. If a Bool matrix of active grid squares is included, active, this is used, otherwise one is all grid cells are considered active.
EcoSISTEM.worldclimChange — MethodworldclimChange(eco::AbstractEcosystem, hab::ContinuousHab, timestep::Unitful.Time)Function to step the Worldclim climate forward by one timestep.
EcoSISTEM.ClimatePref.AbstractClimate — TypeAbstractClimateAbstract supertype of all climate data.
EcoSISTEM.ClimatePref.CERA — TypeCERA <: AbstractClimateType that houses data extracted from CERA-20C raster files.
EcoSISTEM.ClimatePref.CHELSA_bioclim — TypeCHELSA_bioclim <: AbstractClimateType that houses data extracted from CHELSA raster files.
EcoSISTEM.ClimatePref.CHELSA_monthly — TypeCHELSA_monthly <: AbstractClimateType that houses data extracted from CHELSA raster files.
EcoSISTEM.ClimatePref.CRUTS — TypeCRUTS <: AbstractClimateType that houses data extracted from CRUTS raster files.
EcoSISTEM.ClimatePref.ERA — TypeERA <: AbstractClimateType that houses data extracted from ERA raster files.
EcoSISTEM.ClimatePref.Landcover — TypeLandcover <: AbstractClimateType that houses data extracted from EarthEnv Landcover raster files.
EcoSISTEM.ClimatePref.Reference — TypeReference <: AbstractClimateType that houses a reference data array.
EcoSISTEM.ClimatePref.Worldclim_bioclim — TypeWorldclim_bioclim <: AbstractClimateType that houses data extracted from Bioclim raster files.
EcoSISTEM.ClimatePref.Worldclim_monthly — TypeWorldclim_monthly <: AbstractClimateType that houses data extracted from Worldclim raster files.
Base.read — Methodread(f, filename)Function to read raster file into julia.
EcoSISTEM.ClimatePref.convert_coords — Functionconvert_coords(i::Int64, width::Int64)
convert_coords(x::Int64, y::Int64, width::Int64)Function to convert coordinates from two-dimensional (x,y) format to one dimension (i), or vice versa, using the width of the grid. This function can also be applied to arrays of coordinates.
EcoSISTEM.ClimatePref.create_reference — Methodcreate_reference(gridsize::Float64)Function to create a reference grid array of type Reference.
EcoSISTEM.ClimatePref.downresolution — Functiondownresolution(data::Union{ERA, Worldclim_monthly, Worldclim_bioclim}, rescale::Int64; fn)Function to decrease the resolution of a climate dataset, by a factor, rescale, and aggregation function, fn. The aggregation function has a default setting of taking the mean value.
EcoSISTEM.ClimatePref.downresolution! — Functiondownresolution!(resized_array::Matrix{T}, array::Matrix{T}, rescale::Int64, fn)
downresolution!(resized_array::Array{T, 3}, array::Matrix{T}, dim::Int64, rescale::Int64, fn)Function to decrease the resolution of a climate dataset in place, by a factor, rescale, and aggregation function, fn. The aggregation function has a default setting of taking the mean value.
EcoSISTEM.ClimatePref.env_bool — Functionenv_bool(key)Checks for an enviroment variable and fuzzy converts it to a bool
EcoSISTEM.ClimatePref.extractvalues — Methodextractvalues(x::Vector{typeof(1.0°)},y::Vector{typeof(1.0°)},
bc::Worldclim_bioclim, dim::Unitful.Time)Function to extract values from a bioclim object, at specified x, y locations and time, dim.
EcoSISTEM.ClimatePref.extractvalues — Methodextractvalues(x::Vector{typeof(1.0°)},y::Vector{typeof(1.0°)},
bc::Worldclim_bioclim, dim::Unitful.Time)Function to extract values from a bioclim object, at specified x, y locations and over a time period, dim.
EcoSISTEM.ClimatePref.extractvalues — Methodextractvalues(x::Vector{typeof(1.0°)},y::Vector{typeof(1.0°)},
wc::Worldclim_monthly, dim::Unitful.Time)Function to extract values from a worldclim object, at specified x, y locations and over a range of times, dim.
EcoSISTEM.ClimatePref.extractvalues — Methodextractvalues(x::Vector{typeof(1.0°)},y::Vector{typeof(1.0°)},
wc::Worldclim_monthly, dim::Unitful.Time)Function to extract values from a worldclim object, at specified x, y locations and time, dim.
EcoSISTEM.ClimatePref.readCERA — MethodreadCERA(dir::String, file::String, params::String)Function to extract a certain parameter, param, from an CERA-20C netcdf file, and convert into an axis array.
EcoSISTEM.ClimatePref.readCHELSA_monthly — FunctionreadCHELSA_monthly(dir::String)Function to extract all raster files from a specified folder directory, and convert into an axis array.
EcoSISTEM.ClimatePref.readCRUTS — MethodreadCRUTS(dir::String)Function to extract all raster files from a specified folder directory, and convert into an axis array.
EcoSISTEM.ClimatePref.readERA — MethodreadERA(dir::String, file::String, param::String, dim::Vector{Vector{T}})
where T<: Unitful.TimeFunction to extract a certain parameter, param, from a directory, dir, containing ERA netcdf files, for a certain timerange, dim, and convert into an axis array.
EcoSISTEM.ClimatePref.readERA — MethodreadERA(dir::String, param::String, dim::StepRange(typeof(1month)))Function to extract a certain parameter, param, from an ERA netcdf file, for a certain timerange, dim, and convert into an axis array.
EcoSISTEM.ClimatePref.readMet — MethodreadMet(dir::String, param::String)Function to extract a certain parameter, param, from a directory, dir, containing Met Office processed HDF5 files.
EcoSISTEM.ClimatePref.readMet_raw — MethodreadMet_raw(dir::String, param::String)Function to extract a certain parameter, param, from an Met Office netcdf file, and convert into an axis array. No processing done.
EcoSISTEM.ClimatePref.readMet_raw — MethodreadMet_raw(dir::String, file::String, param::String, dim::Vector{Vector{T}})
where T<: Unitful.TimeFunction to extract a certain parameter, param, from a directory, dir, containing Met Office netcdf files, for a certain timerange, dim, and convert into an axis array. No processing done.
EcoSISTEM.ClimatePref.readbioclim — Functionreadbioclim(dir::String)Function to extract all raster files from a specified folder directory, and convert into an axis array.
EcoSISTEM.ClimatePref.readfile — Functionreadfile(file::String)Function to import a selected file from a path string.
EcoSISTEM.ClimatePref.readlc — Functionreadlc(dir::String)Function to extract all raster files from a specified folder directory, and convert into an axis array.
EcoSISTEM.ClimatePref.readworldclim — Functionreadworldclim(dir::String)Function to extract all raster files from a specified folder directory, and convert into an axis array.
EcoSISTEM.ClimatePref.searchdir — Methodsearchdir(path,key)Function to search a directory path using a given key string.
EcoSISTEM.ClimatePref.upresolution — Functionupresolution(data::Union{ERA, Worldclim_monthly, Worldclim_bioclim}, rescale::Int64; fn)Function to increase the resolution of a climate dataset, by a factor, rescale.
EcoSISTEM.AbstractAbioticEcoSISTEM.AbstractBudgetEcoSISTEM.AbstractCacheEcoSISTEM.AbstractControlEcoSISTEM.AbstractEcosystemEcoSISTEM.AbstractEpiEnvEcoSISTEM.AbstractHabitatEcoSISTEM.AbstractLandscapeEcoSISTEM.AbstractLookupEcoSISTEM.AbstractMovementEcoSISTEM.AbstractParamsEcoSISTEM.AbstractPathogenTypesEcoSISTEM.AbstractPlaceTransitionEcoSISTEM.AbstractRequirementEcoSISTEM.AbstractScenarioEcoSISTEM.AbstractSetUpEcoSISTEM.AbstractSpeciesListEcoSISTEM.AbstractSpeciesTypesEcoSISTEM.AbstractStateTransitionEcoSISTEM.AbstractTraitRelationshipEcoSISTEM.AbstractTraitsEcoSISTEM.AbstractTransitionEcoSISTEM.AbstractWindDownEcoSISTEM.AllDisperseEcoSISTEM.AlwaysMovementEcoSISTEM.BirthOnlyMovementEcoSISTEM.BirthProcessEcoSISTEM.BoundaryConditionEcoSISTEM.CacheEcoSISTEM.CachedEcosystemEcoSISTEM.CachedEcosystemEcoSISTEM.CachedGridLandscapeEcoSISTEM.ClimatePref.AbstractClimateEcoSISTEM.ClimatePref.CERAEcoSISTEM.ClimatePref.CHELSA_bioclimEcoSISTEM.ClimatePref.CHELSA_monthlyEcoSISTEM.ClimatePref.CRUTSEcoSISTEM.ClimatePref.ERAEcoSISTEM.ClimatePref.LandcoverEcoSISTEM.ClimatePref.ReferenceEcoSISTEM.ClimatePref.Worldclim_bioclimEcoSISTEM.ClimatePref.Worldclim_monthlyEcoSISTEM.ContinuousHabEcoSISTEM.ContinuousTimeHabEcoSISTEM.ContinuousTraitEcoSISTEM.CylinderEcoSISTEM.DeathFromInfectionEcoSISTEM.DeathProcessEcoSISTEM.DevelopSymptomsEcoSISTEM.DiscreteHabEcoSISTEM.DiscreteTraitEcoSISTEM.DiseaseStateEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EcosystemEcoSISTEM.EnvExposureEcoSISTEM.EpiCacheEcoSISTEM.EpiLandscapeEcoSISTEM.EpiLookupEcoSISTEM.EpiMovementEcoSISTEM.EpiParamsEcoSISTEM.EqualPopEcoSISTEM.ExposureEcoSISTEM.FluctScenarioEcoSISTEM.ForceDisperseEcoSISTEM.ForceProduceEcoSISTEM.GaussEcoSISTEM.GaussTraitEcoSISTEM.GaussianKernelEcoSISTEM.GenerateSeedEcoSISTEM.GridAbioticEnvEcoSISTEM.GridEpiEnvEcoSISTEM.GridLandscapeEcoSISTEM.HostTypesEcoSISTEM.InfectionEcoSISTEM.LockdownEcoSISTEM.LongTailKernelEcoSISTEM.LookupEcoSISTEM.MPIEcosystemEcoSISTEM.MPIGridLandscapeEcoSISTEM.MatchEcoSISTEM.MultiScenarioEcoSISTEM.NoBoundaryEcoSISTEM.NoControlEcoSISTEM.NoMovementEcoSISTEM.NoRelContinuousEcoSISTEM.NoRelDiscreteEcoSISTEM.PlantCacheEcoSISTEM.PopGrowthEcoSISTEM.RainBinEcoSISTEM.RecoveryEcoSISTEM.SeedDisperseEcoSISTEM.SeedInfectionEcoSISTEM.SimpleBudgetEcoSISTEM.SimpleRequirementEcoSISTEM.SimpleScenarioEcoSISTEM.SizeRequirementEcoSISTEM.SolarBudgetEcoSISTEM.SolarRequirementEcoSISTEM.SolarTimeBudgetEcoSISTEM.SpeciesListEcoSISTEM.SpeciesListEcoSISTEM.SpeciesListEcoSISTEM.SpeciesListEcoSISTEM.SpeciesLookupEcoSISTEM.SpeciesTypesEcoSISTEM.TempBinEcoSISTEM.TorusEcoSISTEM.TraitCollection2EcoSISTEM.TraitCollection3EcoSISTEM.TransitionListEcoSISTEM.TrapezeEcoSISTEM.TrapezoidEcoSISTEM.UnifEcoSISTEM.UpdateEnergyEcoSISTEM.UpdateEnvironmentEcoSISTEM.UpdateEpiEnvironmentEcoSISTEM.ViralLoadEcoSISTEM.VirusTypesEcoSISTEM.VolWaterBudgetEcoSISTEM.VolWaterRequirementEcoSISTEM.VolWaterTimeBudgetEcoSISTEM.WaterBudgetEcoSISTEM.WaterRequirementEcoSISTEM.WaterTimeBudgetEcoSISTEM.additiveTR2EcoSISTEM.additiveTR3EcoSISTEM.multiplicativeTR2EcoSISTEM.multiplicativeTR3Base.isapproxBase.readEcoSISTEM.BMEcoSISTEM.ClimatePref.convert_coordsEcoSISTEM.ClimatePref.create_referenceEcoSISTEM.ClimatePref.downresolutionEcoSISTEM.ClimatePref.downresolution!EcoSISTEM.ClimatePref.env_boolEcoSISTEM.ClimatePref.extractvaluesEcoSISTEM.ClimatePref.extractvaluesEcoSISTEM.ClimatePref.extractvaluesEcoSISTEM.ClimatePref.extractvaluesEcoSISTEM.ClimatePref.readCERAEcoSISTEM.ClimatePref.readCHELSA_monthlyEcoSISTEM.ClimatePref.readCRUTSEcoSISTEM.ClimatePref.readERAEcoSISTEM.ClimatePref.readERAEcoSISTEM.ClimatePref.readMetEcoSISTEM.ClimatePref.readMet_rawEcoSISTEM.ClimatePref.readMet_rawEcoSISTEM.ClimatePref.readbioclimEcoSISTEM.ClimatePref.readfileEcoSISTEM.ClimatePref.readlcEcoSISTEM.ClimatePref.readworldclimEcoSISTEM.ClimatePref.searchdirEcoSISTEM.ClimatePref.upresolutionEcoSISTEM.ContinuousEvolveEcoSISTEM.DiscreteEvolveEcoSISTEM.HabitatLossEcoSISTEM.NoChangeEcoSISTEM.RainfallChangeEcoSISTEM.SEI3HRD_wrapperEcoSISTEM.SEI3HRD_wrapper!EcoSISTEM.SIR_wrapperEcoSISTEM.SIR_wrapper!EcoSISTEM.TempChangeEcoSISTEM.TempFluctEcoSISTEM._construct_shrunk_matrixEcoSISTEM._convert_populationEcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM._run_rule!EcoSISTEM.abundancesEcoSISTEM.addspecies!EcoSISTEM.addtransition!EcoSISTEM.addtransition!EcoSISTEM.addtransition!EcoSISTEM.addtransition!EcoSISTEM.applycontrols!EcoSISTEM.assign_traits!EcoSISTEM.assign_traits!EcoSISTEM.bioclimAEEcoSISTEM.biodiversity_update!EcoSISTEM.budgetupdate!EcoSISTEM.calc_lookup_moves!EcoSISTEM.classupdate!EcoSISTEM.combineTREcoSISTEM.convert_coordsEcoSISTEM.convert_populationEcoSISTEM.create_cacheEcoSISTEM.create_cacheEcoSISTEM.create_cacheEcoSISTEM.emptyepilandscapeEcoSISTEM.emptygridlandscapeEcoSISTEM.emptypopulate!EcoSISTEM.energy_adjustmentEcoSISTEM.epi_update!EcoSISTEM.equalpopEcoSISTEM.eraAEEcoSISTEM.eraChangeEcoSISTEM.genlookupsEcoSISTEM.geom_mean_abunEcoSISTEM.get_envEcoSISTEM.get_neighboursEcoSISTEM.get_traitsEcoSISTEM.getbudgetEcoSISTEM.getdestinationEcoSISTEM.getdimensionEcoSISTEM.getdispersaldistEcoSISTEM.getdispersalvarEcoSISTEM.getgridsizeEcoSISTEM.gethabitatEcoSISTEM.getlocationEcoSISTEM.getlocationEcoSISTEM.getlookupEcoSISTEM.getpathogentraitsEcoSISTEM.getprefEcoSISTEM.getprobEcoSISTEM.getrelationshipEcoSISTEM.getsizeEcoSISTEM.getspeciesEcoSISTEM.getspeciesEcoSISTEM.getspeciestraitsEcoSISTEM.gettraitrelEcoSISTEM.gettransitionsEcoSISTEM.habitatupdate!EcoSISTEM.initialise_outputEcoSISTEM.invalidatecaches!EcoSISTEM.makeuniqueEcoSISTEM.mean_abunEcoSISTEM.meta_shannonEcoSISTEM.meta_simpsonEcoSISTEM.meta_speciesrichnessEcoSISTEM.move!EcoSISTEM.pdEcoSISTEM.peakedgradAEEcoSISTEM.plot_epidynamicsEcoSISTEM.plot_epiheatmapsEcoSISTEM.populate!EcoSISTEM.raingradEcoSISTEM.raingradAEEcoSISTEM.randomnichesEcoSISTEM.reenergise!EcoSISTEM.repopulate!EcoSISTEM.resetrate!EcoSISTEM.resettime!EcoSISTEM.run_rule!EcoSISTEM.runscenario!EcoSISTEM.shrink_to_activeEcoSISTEM.simplehabitatEcoSISTEM.simplehabitatAEEcoSISTEM.simplehabitatAEEcoSISTEM.simplenicheAEEcoSISTEM.simulate!EcoSISTEM.simulate_record!EcoSISTEM.sorensonEcoSISTEM.sum_popEcoSISTEM.tematchEcoSISTEM.tempgradEcoSISTEM.tempgradAEEcoSISTEM.traitfunEcoSISTEM.traitfunEcoSISTEM.traitpopulate!EcoSISTEM.traitrepopulate!EcoSISTEM.transitionEcoSISTEM.trmatchEcoSISTEM.ukChangeEcoSISTEM.update!EcoSISTEM.update!EcoSISTEM.update!EcoSISTEM.update_energy_usage!EcoSISTEM.update_environment!EcoSISTEM.update_epi_environment!EcoSISTEM.update_outputEcoSISTEM.update_virus_cache!EcoSISTEM.virusmove!EcoSISTEM.virusupdate!EcoSISTEM.worldclimAEEcoSISTEM.worldclimChange