Interface to All Climate Models#
See the Climatemodels.jl docs for more information.
using ClimateModels, CairoMakie
CSV=ClimateModels.CSV
DataFrame=ClimateModels.DataFrames.DataFrame
DataFrames.DataFrame
fun=ClimateModels.RandomWalker
MC=ModelConfig(model=fun,inputs=Dict("NS" => 1000))
run(MC)
ID = 807010e1-eeb4-4557-b5c7-eb30348a4ef6
model = RandomWalker
configuration = anonymous
run folder = /var/folders/vn/3r695jqd3177cw09wdmf3z940000gn/T/807010e1-eeb4-4557-b5c7-eb30348a4ef6
log subfolder = /var/folders/vn/3r695jqd3177cw09wdmf3z940000gn/T/807010e1-eeb4-4557-b5c7-eb30348a4ef6/log
log(MC)
6-element Vector{String}:
"62aa206 initial setup"
"c426916 initial tracked_parameters.toml"
"8b3e674 add Project.toml to log"
"e71f7d7 add Manifest.toml to log"
"cb59f63 task started [b846b918-9999-4aca-871c-a2cd73afe83c]"
"e8adbcb (HEAD -> main) task ended [b846b918-9999-4aca-871c-a2cd73afe83c]"
readdir(MC)
2-element Vector{String}:
"RandomWalker.csv"
"log"
df=CSV.read(joinpath(MC,"RandomWalker.csv"),DataFrame)
lines(df.x,df.y)
scatter!(df.x[1],df.y[1],color=:green,label="start")
scatter!(df.x[end],df.y[end],color=:red,label="end")
axislegend()
current_figure()