Skip to content

Commit

Permalink
build based on a3a8324
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Mar 18, 2024
1 parent a174b50 commit 496e963
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.6.7","generation_timestamp":"2024-03-18T18:15:27","documenter_version":"1.3.0"}}
{"documenter":{"julia_version":"1.6.7","generation_timestamp":"2024-03-18T18:16:31","documenter_version":"1.3.0"}}
2 changes: 1 addition & 1 deletion dev/HOWTOshowmodelandoutput/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
swap_xy=true, xscale=:log10) # plot current value of O2, O3 vs height</code></pre><h4 id="Wavelength-dependent-data"><a class="docs-heading-anchor" href="#Wavelength-dependent-data">Wavelength-dependent data</a><a id="Wavelength-dependent-data-1"></a><a class="docs-heading-anchor-permalink" href="#Wavelength-dependent-data" title="Permalink"></a></h4><pre><code class="nohighlight hljs">julia&gt; plot(title=&quot;direct transmittance&quot;, output, [&quot;atm.direct_trans&quot;], (tmodel=1e12, column=1, cell=[1, 80]),
ylabel=&quot;fraction&quot;, labelattribute=:filter_region) # plots vs wavelength</code></pre><p>Here <code>tmodel=1e12</code> selects the last model time output, and <code>column=1, cell=[1, 80]</code> selects the top and bottom cells within the first (only) 1D column. The <code>labelattribute=:filter_region</code> keyword argument is used to generate plot labels from the <code>:filter_region</code> FieldArray attribute, which contains the <code>column</code> and <code>cell</code> values used to select the spatial region.</p><h3 id="Examples-for-a-3D-GCM-based-model"><a class="docs-heading-anchor" href="#Examples-for-a-3D-GCM-based-model">Examples for a 3D GCM-based model</a><a id="Examples-for-a-3D-GCM-based-model-1"></a><a class="docs-heading-anchor-permalink" href="#Examples-for-a-3D-GCM-based-model" title="Permalink"></a></h3><p>Visualisation of spatial output from the 3D GENIE transport-matrix example (PALEOdev.jl repository)</p><h3 id="Horizontal-slices-across-levels"><a class="docs-heading-anchor" href="#Horizontal-slices-across-levels">Horizontal slices across levels</a><a id="Horizontal-slices-across-levels-1"></a><a class="docs-heading-anchor-permalink" href="#Horizontal-slices-across-levels" title="Permalink"></a></h3><pre><code class="nohighlight hljs">julia&gt; heatmap(run.output, &quot;ocean.O2_conc&quot;, (tmodel=1e12, k=1), swap_xy=true)</code></pre><p>Here <code>k=1</code> selects a horizontal level corresponding to model grid cells with index k=1, which is the ocean surface in the GENIE grid.</p><h3 id="Vertical-section-at-constant-longitude"><a class="docs-heading-anchor" href="#Vertical-section-at-constant-longitude">Vertical section at constant longitude</a><a id="Vertical-section-at-constant-longitude-1"></a><a class="docs-heading-anchor-permalink" href="#Vertical-section-at-constant-longitude" title="Permalink"></a></h3><pre><code class="nohighlight hljs">julia&gt; heatmap(run.output, &quot;ocean.O2_conc&quot;, (tmodel=1e12, i=10), swap_xy=true, mult_y_coord=-1.0)</code></pre><p>Here <code>i=10</code> selects a section at longitude corresponding to model grid cells with index i=10.</p><h2 id="Save-and-load-output"><a class="docs-heading-anchor" href="#Save-and-load-output">Save and load output</a><a id="Save-and-load-output-1"></a><a class="docs-heading-anchor-permalink" href="#Save-and-load-output" title="Permalink"></a></h2><p>Model output can be saved and loaded using the <a href="../PALEOmodelOutput/#PALEOmodel.OutputWriters.save_netcdf"><code>PALEOmodel.OutputWriters.save_netcdf</code></a> and <a href="../PALEOmodelOutput/#PALEOmodel.OutputWriters.load_netcdf!"><code>PALEOmodel.OutputWriters.load_netcdf!</code></a> methods.</p><p>The <a href="../PALEOmodelOutput/#PALEOmodel.OutputWriters.save_jld2"><code>PALEOmodel.OutputWriters.save_jld2</code></a> and <a href="../PALEOmodelOutput/#PALEOmodel.OutputWriters.load_jld2!"><code>PALEOmodel.OutputWriters.load_jld2!</code></a> methods are still available as these files will not remain compatible with future PALEO versions.</p><h2 id="Export-output-to-a-CSV-file"><a class="docs-heading-anchor" href="#Export-output-to-a-CSV-file">Export output to a CSV file</a><a id="Export-output-to-a-CSV-file-1"></a><a class="docs-heading-anchor-permalink" href="#Export-output-to-a-CSV-file" title="Permalink"></a></h2><p>To write Model output from a single Domain to a CSV file:</p><pre><code class="nohighlight hljs">julia&gt; import CSV
julia&gt; CSV.write(&quot;copse_land.csv&quot;, PB.get_table(run.output, &quot;land&quot;)) # all Variables from land Domain
julia&gt; CSV.write(&quot;copse_atm.csv&quot;, PB.get_table(run.output, &quot;atm&quot;)[!, [:tmodel, :pCO2atm, :pO2atm]]) # subset of Variables from atm Domain</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../MathematicalFormulation/">« Mathematical formulation of the reaction-transport problem</a><a class="docs-footer-nextpage" href="../HOWTOsmallnegativevalues/">Managing small and negative values »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Monday 18 March 2024 18:15">Monday 18 March 2024</span>. Using Julia version 1.6.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
julia&gt; CSV.write(&quot;copse_atm.csv&quot;, PB.get_table(run.output, &quot;atm&quot;)[!, [:tmodel, :pCO2atm, :pO2atm]]) # subset of Variables from atm Domain</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../MathematicalFormulation/">« Mathematical formulation of the reaction-transport problem</a><a class="docs-footer-nextpage" href="../HOWTOsmallnegativevalues/">Managing small and negative values »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Monday 18 March 2024 18:16">Monday 18 March 2024</span>. Using Julia version 1.6.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/HOWTOsmallnegativevalues/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/MathematicalFormulation/index.html

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions dev/PALEOmodelOutput/index.html

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions dev/PALEOmodelSolvers/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 496e963

Please sign in to comment.