InputOutput

This module provides types and utilities for reading input files (i.e. parameters and forcings) as well as saving model outputs.

CryoGrid.InputOutput.CryoGridOutputType
CryoGridOutput{TSol}

Helper type that stores the raw output from a CryoGrid run along with DimArray views of all logged variables. CryoGridOutput overrides Base.getproperty to allow for direct dot-syntax access of state variables. For example, if your model has a grid variable named T, out.T returns a DimArray with indexed time and depth axes. For OrdinaryDiffEq.jl outputs, the ODESolution can be accessed via out.sol, or for convenience, the continuous solution at time t can be computed via out(t) which is equivalent to withaxes(out.sol(t)).

source
CryoGrid.InputOutput.CryoGridOutputMethod
CryoGridOutput(sol::TSol, tspan::NTuple{2,Float64}=(-Inf,Inf)) where {TSol<:SciMLBase.AbstractODESolution}

Constructs a CryoGridOutput from the given ODESolution. Optional argument tspan restricts the time span of the output.

source
CryoGrid.InputOutput.CryoGridParamsType
CryoGridParams{T,TM} <: DenseArray{T,1}

Wraps a ModelParameters.Model parameter handler for CryoGrid types. It is recommended not to use this type directly in math or linear algebra operations but rather to use Base.values to obtain a normal array of parameter values.

source
CryoGrid.InputOutput.CryoGridParamsMethod
CryoGridParams(obj)

Constructs a modelParameters.Model wrapped with CryoGridParams from obj. If full_metadata is true, additonal fields for nested Parameterization types will be added.

source
CryoGrid.InputOutput.FixedParamType
FixedParam(p::NamedTuple)
FixedParam(; kw...)
FixedParam(val)

Subtype of AbstractParam that rerpesents a "fixed" parameter which should not be included in the set of free parameters for the model.

source
CryoGrid.InputOutput.InputType
Input{name,attrsType<:NamedTuple}

The Input type represents a placeholder for (typically time-varying) inputs that will be replaced with the numeric value at runtime. The name of the Input will be used to match it to the corresponding input function.

source
CryoGrid.InputOutput.PiecewiseLinearType
PiecewiseLinear{id,N,T0,TKnots,I} <: DynamicParameterization

Reparameterizes parameter p as p = p₁δ₁t + ⋯ + pₖδₖt where δₖ are indicators for when tₖ₋₁ <= t <= tₖ. To facilitate sampling and optimization, change points tᵢ are parameterized as bin widths, which should be strictly positive. PiecewiseLinear will normalize them and scale by the size of the time interval.

source
CryoGrid.InputOutput.loadforcingsMethod
loadforcings(filename::String)
loadforcings(resource::Resource; outdir=DEFAULT_FORCINGS_DIR)
loadforcings([format::ForcingFormat], filename::String; outdir=DEFAULT_FORCINGS_DIR)

Loads forcing data from the given file according to the format specified by format. By default, the forcing format is automatically detected via detectformat. Returns a DimStack containing all forcing data and metadata

source