Tools.jl

Description of various helper functions. At the moment they are all related to loading and saving the solution structures.

Contents

Index

Functions

ContGridModML.albers_projectionMethod
albers_projection(
    coord::Matrix{<:Real};
    lon0,
    lat0,
    lat1,
    lat2,
    R
) -> Matrix{<:Real}

Apply the Albers projection to a vector of coordinates. The coordinates need to be given as latitude, longitude. See https://en.wikipedia.org/wiki/Albers_projection

source
ContGridModML.dict_to_solMethod
dict_to_sol(
    data::Dict{String}
) -> Union{ContGridModML.DynamicSol, ContGridModML.StaticSol}

Load a solution from a dictionary.

source
ContGridModML.import_borderMethod
import_border(filename::String) -> Any

Import border from a json file, apply the Albers projection and rescale it such that the longest dimension is 1. The coordinates need to be given as latitude, longitude.

source
ContGridModML.load_discrete_modelMethod
load_discrete_model(
    dataname::String,
    scaling_factor::Float64
) -> ContGridModML.DiscModel

Load a discrete model from a file and rescale the coordinates to match the continuous model.

source
ContGridModML.load_solMethod
load_sol(
    fn::String
) -> Union{ContGridModML.DynamicSol, ContGridModML.StaticSol}

Load a solution from a HDF5 file.

source