Skip to content

Commit

Permalink
build based on eb55677
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Dec 21, 2023
1 parent 3084a63 commit 99ca43f
Show file tree
Hide file tree
Showing 12 changed files with 1,100 additions and 0 deletions.
1 change: 1 addition & 0 deletions previews/PR16/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"documenter":{"julia_version":"1.9.4","generation_timestamp":"2023-12-21T09:13:09","documenter_version":"1.2.1"}}
30 changes: 30 additions & 0 deletions previews/PR16/api/axioms/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Axioms · SpectralIndices.jl</title><meta name="title" content="Axioms · SpectralIndices.jl"/><meta property="og:title" content="Axioms · SpectralIndices.jl"/><meta property="twitter:title" content="Axioms · SpectralIndices.jl"/><meta name="description" content="Documentation for SpectralIndices.jl."/><meta property="og:description" content="Documentation for SpectralIndices.jl."/><meta property="twitter:description" content="Documentation for SpectralIndices.jl."/><script data-outdated-warner src="../../assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="../.."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../../assets/documenter.js"></script><script src="../../search_index.js"></script><script src="../../siteinfo.js"></script><script src="../../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../../assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><a class="docs-logo" href="../../"><img src="../../assets/logo.png" alt="SpectralIndices.jl logo"/></a><div class="docs-package-name"><span class="docs-autofit"><a href="../../">SpectralIndices.jl</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li><a class="tocitem" href="../../">SpectralIndices.jl</a></li><li><span class="tocitem">API Documentation</span><ul><li class="is-active"><a class="tocitem" href>Axioms</a></li><li><a class="tocitem" href="../compute/">Compute</a></li></ul></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li><a class="is-disabled">API Documentation</a></li><li class="is-active"><a href>Axioms</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Axioms</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/awesome-spectral-indices/SpectralIndices.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/awesome-spectral-indices/SpectralIndices.jl/blob/main/docs/src/api/axioms.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="Axioms"><a class="docs-heading-anchor" href="#Axioms">Axioms</a><a id="Axioms-1"></a><a class="docs-heading-anchor-permalink" href="#Axioms" title="Permalink"></a></h1><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="SpectralIndices.SpectralIndex" href="#SpectralIndices.SpectralIndex"><code>SpectralIndices.SpectralIndex</code></a><span class="docstring-category">Type</span></header><section><div><pre><code class="language-julia hljs">SpectralIndex(index::Dict{String, Any})</code></pre><p>This object allows interaction with specific Spectral Indices in the Awesome Spectral Indices list. Attributes of the Spectral Index can be accessed and the index itself can be computed.</p><p><strong>Arguments</strong></p><ul><li><p><code>index::Dict{String, Any}</code>: A dictionary with the following keys:</p><ul><li><code>&quot;short_name&quot;</code>: Short name of the spectral index.</li><li><code>&quot;long_name&quot;</code>: Long name or description of the spectral index.</li><li><code>&quot;bands&quot;</code>: List of bands or wavelengths used in the index calculation.</li><li><code>&quot;application_domain&quot;</code>: Application domain or use case of the spectral index.</li><li><code>&quot;reference&quot;</code>: Reference or source of the spectral index formula.</li><li><code>&quot;formula&quot;</code>: Mathematical formula of the spectral index.</li><li><code>&quot;date_of_addition&quot;</code>: Date when the spectral index was added (in &quot;yyyy-mm-dd&quot; format).</li><li><code>&quot;contributor&quot;</code>: Contributor or source of the spectral index information.</li><li><code>&quot;platforms&quot;</code>: Platforms or sensors for which the index is applicable.</li></ul></li></ul><p><strong>Returns</strong></p><p>A <code>SpectralIndex</code> object containing the specified index information.</p><p><strong>Examples</strong></p><pre><code class="language-julia-repl hljs">julia&gt; indices[&quot;NIRv&quot;]
</code></pre><p>Or, accessing directly the provided Dict of spectral indices:</p><pre><code class="language-julia-repl hljs">NIRv</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/awesome-spectral-indices/SpectralIndices.jl/blob/eb556775e08ea297d32975ce6da855dd00cd9cdf/src/axioms.jl#L29-L66">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="SpectralIndices.compute" href="#SpectralIndices.compute"><code>SpectralIndices.compute</code></a><span class="docstring-category">Function</span></header><section><div><pre><code class="language-julia hljs">compute(si::SpectralIndex, params::Dict=Dict(); kwargs...) -&gt; Any</code></pre><p>Computes a Spectral Index based on the provided <code>SpectralIndex</code> instance, parameters, and optional keyword arguments.</p><p><strong>Parameters</strong></p><ul><li><code>si</code>: An instance of <code>SpectralIndex</code> which includes the name and details of the spectral index to be computed.</li><li><code>params</code>: (Optional) Dictionary of parameters used as inputs for the computation. If not provided, parameters can be passed using keyword arguments.</li><li><code>kwargs</code>: Additional parameters used as inputs for the computation, provided as keyword pairs. These are used if <code>params</code> is empty.</li></ul><p><strong>Returns</strong></p><ul><li>The computed Spectral Index, the type of return value depends on the input parameters and the specific spectral index being computed.</li></ul><p><strong>Examples</strong></p><pre><code class="language-julia-repl hljs">julia&gt; compute(NDVI; N=0.643, R=0.175)
</code></pre><pre><code class="language-julia-repl hljs">julia&gt; compute(NDVI; N=fill(0.643, (5, 5)), R=fill(0.175, (5, 5)))
</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/awesome-spectral-indices/SpectralIndices.jl/blob/eb556775e08ea297d32975ce6da855dd00cd9cdf/src/axioms.jl#L112-L143">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="SpectralIndices.PlatformBand" href="#SpectralIndices.PlatformBand"><code>SpectralIndices.PlatformBand</code></a><span class="docstring-category">Type</span></header><section><div><pre><code class="language-julia hljs">PlatformBand(platform_band::Dict{String, Any})</code></pre><p>This struct provides information about a specific band for a specific sensor or platform.</p><p><strong>Arguments</strong></p><ul><li><p><code>platform_band::Dict{String, Any}</code>: A dictionary with the following keys:</p><ul><li><code>&quot;platform&quot;</code>: Name of the platform or sensor.</li><li><code>&quot;band&quot;</code>: Band number or name for the specific platform.</li><li><code>&quot;name&quot;</code>: Description or name of the band for the specific platform.</li><li><code>&quot;wavelength&quot;</code>: Center wavelength of the band (in nm) for the specific platform.</li><li><code>&quot;bandwidth&quot;</code>: Bandwidth of the band (in nm) for the specific platform.</li></ul></li></ul><p><strong>Returns</strong></p><p>A <code>PlatformBand</code> object containing the specified band information.</p><p><strong>Examples</strong></p><pre><code class="language-julia-repl hljs">platform_band_dict = Dict(
&quot;platform&quot; =&gt; &quot;Sentinel-2A&quot;,
&quot;band&quot; =&gt; &quot;B2&quot;,
&quot;name&quot; =&gt; &quot;Blue&quot;,
&quot;wavelength&quot; =&gt; 492.4,
&quot;bandwidth&quot; =&gt; 66.0,
)

platform_band = PlatformBand(platform_band_dict)</code></pre><p>Or, accessing directly the provided Dict of platforms:</p><pre><code class="language-julia-repl hljs">julia&gt; bands[&quot;B&quot;].platforms[&quot;sentinel2a&quot;]
</code></pre><pre><code class="language-julia-repl hljs">julia&gt; bands[&quot;B&quot;].platforms[&quot;sentinel2a&quot;].wavelength
</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/awesome-spectral-indices/SpectralIndices.jl/blob/eb556775e08ea297d32975ce6da855dd00cd9cdf/src/axioms.jl#L165-L210">source</a></section></article><article class="docstring"><header><a class="docstring-article-toggle-button fa-solid fa-chevron-down" href="javascript:;" title="Collapse docstring"></a><a class="docstring-binding" id="SpectralIndices.Band" href="#SpectralIndices.Band"><code>SpectralIndices.Band</code></a><span class="docstring-category">Type</span></header><section><div><pre><code class="language-julia hljs">Band(band::Dict{String, Any})</code></pre><p>Constructs a <code>Band</code> object to interact with specific bands in the list of required bands for Spectral Indices in the Awesome Spectral Indices list.</p><p><strong>Arguments</strong></p><ul><li><p><code>band::Dict{String, Any}</code>: A dictionary containing band information with the following keys:</p><ul><li><code>&quot;short_name&quot;</code>: Short name of the band.</li><li><code>&quot;long_name&quot;</code>: Description or name of the band.</li><li><code>&quot;common_name&quot;</code>: Common name of the band according to the Electro-Optical Extension Specification for STAC.</li><li><code>&quot;min_wavelength&quot;</code>: Minimum wavelength of the spectral range of the band (in nm).</li><li><code>&quot;max_wavelength&quot;</code>: Maximum wavelength of the spectral range of the band (in nm).</li><li><code>&quot;platforms&quot;</code>: A dictionary of platform information associated with this band.</li></ul></li></ul><p><strong>Returns</strong></p><p>A <code>Band</code> object representing the specified band.</p><p><strong>Examples</strong></p><pre><code class="language-julia-repl hljs">julia&gt; bands[&quot;B&quot;]
band_dict = Dict{String, Any}(
&quot;short_name&quot; =&gt; &quot;B&quot;,
&quot;long_name&quot; =&gt; &quot;Blue&quot;,
&quot;common_name&quot; =&gt; &quot;Blue&quot;,
&quot;min_wavelength&quot; =&gt; 450.0,
&quot;max_wavelength&quot; =&gt; 495.0,
&quot;platforms&quot; =&gt; Dict{String, Any}(
&quot;sentinel2a&quot; =&gt; PlatformBand(...), # PlatformBand constructor details here
&quot;sentinel2b&quot; =&gt; PlatformBand(...), # PlatformBand constructor details here
# Add other platforms as needed
)
)

band = Band(band_dict)</code></pre><p>Or, using the provided bands</p><pre><code class="language-julia-repl hljs">julia&gt; bands[&quot;B&quot;].long_name
</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/awesome-spectral-indices/SpectralIndices.jl/blob/eb556775e08ea297d32975ce6da855dd00cd9cdf/src/axioms.jl#L250-L296">source</a></section></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../">« SpectralIndices.jl</a><a class="docs-footer-nextpage" href="../compute/">Compute »</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Thursday 21 December 2023 09:13">Thursday 21 December 2023</span>. Using Julia version 1.9.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit 99ca43f

Please sign in to comment.