-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from PALEOtoolkit/doc_update
update documentation
- Loading branch information
Showing
16 changed files
with
493 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "PALEOmodel" | ||
uuid = "bf7b4fbe-ccb1-42c5-83c2-e6e9378b660c" | ||
authors = ["Stuart Daines <[email protected]>"] | ||
version = "0.14.6" | ||
version = "0.14.7" | ||
|
||
[deps] | ||
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
|
||
|
||
# PALEOmodel output | ||
|
||
## Run | ||
|
||
```@meta | ||
CurrentModule = PALEOmodel | ||
``` | ||
```@docs | ||
Run | ||
``` | ||
|
||
## Output | ||
PALEO model output is accumulated into a container such as an [OutputMemory](@ref) instance that implements the [AbstractOutputWriter interface](@ref). | ||
|
||
### AbstractOutputWriter interface | ||
|
||
```@meta | ||
CurrentModule = PALEOmodel | ||
``` | ||
```@docs | ||
AbstractOutputWriter | ||
``` | ||
|
||
```@meta | ||
CurrentModule = PALEOmodel.OutputWriters | ||
``` | ||
#### Writing output | ||
```@docs | ||
initialize! | ||
add_record! | ||
``` | ||
#### Modifying output | ||
```@docs | ||
PB.add_field!(output::PALEOmodel.AbstractOutputWriter, fr::PALEOmodel.FieldRecord) | ||
``` | ||
#### Querying output | ||
```@docs | ||
PB.get_table(output::PALEOmodel.AbstractOutputWriter, domainname::AbstractString) | ||
PB.show_variables(output::PALEOmodel.AbstractOutputWriter) | ||
PB.has_variable(output::PALEOmodel.AbstractOutputWriter, varname::AbstractString) | ||
``` | ||
|
||
#### Accessing output data | ||
```@docs | ||
PALEOmodel.get_array(output::PALEOmodel.AbstractOutputWriter, varname::AbstractString; kwargs...) | ||
PB.get_field(output::PALEOmodel.AbstractOutputWriter, varname::AbstractString) | ||
PB.get_data(output::PALEOmodel.AbstractOutputWriter, varname::AbstractString; records=nothing) | ||
PB.get_mesh(output::PALEOmodel.AbstractOutputWriter, domainname::AbstractString) | ||
``` | ||
```@meta | ||
CurrentModule = PALEOmodel | ||
``` | ||
```@docs | ||
FieldRecord | ||
``` | ||
|
||
### OutputMemory | ||
|
||
```@meta | ||
CurrentModule = PALEOmodel.OutputWriters | ||
``` | ||
```@docs | ||
OutputMemory | ||
OutputMemoryDomain | ||
save_jld2 | ||
load_jld2! | ||
``` | ||
|
||
## Field Array | ||
|
||
```@meta | ||
CurrentModule = PALEOmodel | ||
``` | ||
[`FieldArray`](@ref) provides a generic array type with named dimensions `PALEOboxes.NamedDimension` and optional coordinates `PALEOboxes.FixedCoord` for processing of model output. | ||
|
||
```@docs | ||
FieldArray | ||
get_array(f::PB.Field{D, PB.ScalarSpace, V, N, M}; attributes=nothing) where {D, V, N, M} | ||
``` | ||
|
||
## Plotting output | ||
|
||
### Plot recipes | ||
Plotting using the Julia [Plots.jl](https://github.com/JuliaPlots/Plots.jl) package is implemented by [plot recipes](https://docs.juliaplots.org/latest/recipes/) that enable plotting of PALEO data types using the `plot` command. | ||
|
||
The general principles are that: | ||
- Data is extracted from model output into [`FieldArray`](@ref)s with attached coordinates | ||
- Vector-valued arguments are "broadcast" to allow multiple line plot series to be overlaid in a single plot panel | ||
|
||
```@meta | ||
CurrentModule = PALEOmodel | ||
``` | ||
```@docs | ||
RecipesBase.apply_recipe(::Dict{Symbol, Any}, output::AbstractOutputWriter, vars::Union{AbstractString, Vector{<:AbstractString}}, selectargs::NamedTuple) | ||
RecipesBase.apply_recipe(::Dict{Symbol, Any}, fr::FieldRecord, selectargs::NamedTuple) | ||
RecipesBase.apply_recipe(::Dict{Symbol, Any}, fa::FieldArray) | ||
``` | ||
### Assembling multi-plot panels | ||
```@docs | ||
PlotPager | ||
DefaultPlotPager | ||
``` | ||
|
||
## Analyze reaction network | ||
```@meta | ||
CurrentModule = PALEOmodel | ||
``` | ||
```@docs | ||
ReactionNetwork | ||
``` |
Oops, something went wrong.
2798f8c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
2798f8c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/62808
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: