diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index 3aa5b99..1ed255a 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.6.7","generation_timestamp":"2024-02-09T16:54:17","documenter_version":"1.2.1"}} \ No newline at end of file +{"documenter":{"julia_version":"1.6.7","generation_timestamp":"2024-02-09T17:22:43","documenter_version":"1.2.1"}} \ No newline at end of file diff --git a/dev/HOWTOshowmodelandoutput/index.html b/dev/HOWTOshowmodelandoutput/index.html index e360765..5755ea6 100644 --- a/dev/HOWTOshowmodelandoutput/index.html +++ b/dev/HOWTOshowmodelandoutput/index.html @@ -29,4 +29,4 @@ swap_xy=true, xscale=:log10) # plot current value of O2, O3 vs height
julia> plot(title="direct transmittance", output, ["atm.direct_trans"], (tmodel=1e12, column=1, cell=[1, 80]),
ylabel="fraction", labelattribute=:filter_region) # plots vs wavelength
Here tmodel=1e12
selects the last model time output, and column=1, cell=[1, 80]
selects the top and bottom cells within the first (only) 1D column. The labelattribute=:filter_region
keyword argument is used to generate plot labels from the :filter_region
FieldArray attribute, which contains the column
and cell
values used to select the spatial region.
Visualisation of spatial output from the 3D GENIE transport-matrix example (PALEOdev.jl repository)
julia> heatmap(run.output, "ocean.O2_conc", (tmodel=1e12, k=1), swap_xy=true)
Here k=1
selects a horizontal level corresponding to model grid cells with index k=1, which is the ocean surface in the GENIE grid.
julia> heatmap(run.output, "ocean.O2_conc", (tmodel=1e12, i=10), swap_xy=true, mult_y_coord=-1.0)
Here i=10
selects a section at longitude corresponding to model grid cells with index i=10.
Model output can be saved and loaded using the PALEOmodel.OutputWriters.save_netcdf
and PALEOmodel.OutputWriters.load_netcdf!
methods.
The PALEOmodel.OutputWriters.save_jld2
and PALEOmodel.OutputWriters.load_jld2!
methods are still available as these files will not remain compatible with future PALEO versions.
To write Model output from a single Domain to a CSV file:
julia> import CSV
julia> CSV.write("copse_land.csv", PB.get_table(run.output, "land")) # all Variables from land Domain
-julia> CSV.write("copse_atm.csv", PB.get_table(run.output, "atm")[!, [:tmodel, :pCO2atm, :pO2atm]]) # subset of Variables from atm Domain
Settings
This document was generated with Documenter.jl version 1.2.1 on Friday 9 February 2024. Using Julia version 1.6.7.