Skip to content

Commit

Permalink
build based on 50d5c52
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Nov 22, 2023
1 parent 8f6fe54 commit 9698e8b
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dev/api/index.html

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions dev/assets/index.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dev/background/index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dev/boundaries.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@
{ "type": "Feature", "id": 89, "properties": { "cell_id": "90" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -73.392662781340164, 8.162493877817024 ], [ -76.016300142827845, 12.180480766286813 ], [ -81.483699857876829, 12.180480771064875 ], [ -84.10733721918038, 8.162493882199325 ], [ -81.397760318679175, 4.079195321289634 ], [ -76.102239681553016, 4.079195316488019 ], [ -73.392662781340164, 8.162493877817024 ] ] ] } },
{ "type": "Feature", "id": 90, "properties": { "cell_id": "91" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -64.847758095012992, 11.924043999929269 ], [ -67.309092027127477, 15.89721100155502 ], [ -73.109275165130498, 16.156726982264768 ], [ -76.016300142827845, 12.180480766286813 ], [ -73.392662781340164, 8.162493877817024 ], [ -68.016426110224046, 8.159878268920583 ], [ -64.847758095012992, 11.924043999929269 ] ] ] } },
{ "type": "Feature", "id": 91, "properties": { "cell_id": "92" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -57.261814931019458, 17.50388790906214 ], [ -59.713682649715402, 21.684532573031554 ], [ -64.891911158177464, 20.985391533539197 ], [ -67.309092027127477, 15.89721100155502 ], [ -64.847758095012992, 11.924043999929269 ], [ -59.932452552658468, 12.847490158556068 ], [ -57.261814931019458, 17.50388790906214 ] ] ] } },
{ "type": "Feature", "id": 92, "properties": { "cell_id": "93" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -49.281509208800522, 22.380217501468596 ], [ -51.669880448136638, 26.763641055321688 ], [ -56.997268437931311, 26.418802470318848 ], [ -59.713682649715402, 21.684532573031554 ], [ -57.261814931019458, 17.50388790906214 ], [ -52.139271101368742, 17.830030107204884 ], [ -49.281509208800522, 22.380217501468596 ] ] ] } },
{ "type": "Feature", "id": 92, "properties": { "cell_id": "93" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -49.281509208800522, 22.380217501468596 ], [ -51.669880448136638, 26.763641055321688 ], [ -56.997268437931311, 26.418802470318848 ], [ -59.713682649715402, 21.684532573031554 ], [ -57.261814931019458, 17.50388790906214 ], [ -52.139271101368742, 17.830030107204887 ], [ -49.281509208800522, 22.380217501468596 ] ] ] } },
{ "type": "Feature", "id": 93, "properties": { "cell_id": "94" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -40.871762116414153, 26.82227296101237 ], [ -43.087404351280689, 31.337414582074068 ], [ -48.630985530340077, 31.376016376576548 ], [ -51.669880448136638, 26.763641055321688 ], [ -49.281509208800522, 22.380217501468596 ], [ -44.040564342135468, 22.454214729327191 ], [ -40.871762116414153, 26.82227296101237 ] ] ] } },
{ "type": "Feature", "id": 94, "properties": { "cell_id": "95" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -31.724723098479146, 30.997791332285683 ], [ -33.749999999543114, 35.264389685039355 ], [ -39.358400590177141, 35.755220306712218 ], [ -43.087404351280689, 31.337414582074068 ], [ -40.871762116414146, 26.82227296101237 ], [ -35.37453575517295, 26.644770130811821 ], [ -31.724723098479146, 30.997791332285683 ] ] ] } },
{ "type": "Feature", "id": 95, "properties": { "cell_id": "96" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -21.392990413891003, 33.224915513449346 ], [ -23.366403155687017, 37.867932956324324 ], [ -30.141970134984945, 38.841258118832684 ], [ -33.749999999543114, 35.264389685039355 ], [ -31.724723098479146, 30.997791332285683 ], [ -25.599856048537148, 29.865188923573974 ], [ -21.392990413891003, 33.224915513449346 ] ] ] } },
{ "type": "Feature", "id": 96, "properties": { "cell_id": "97" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -10.886920766937232, 34.749501833281329 ], [ -12.305453870153679, 39.508852370066286 ], [ -18.947093640555075, 41.153323749609243 ], [ -23.366403155687017, 37.867932956324324 ], [ -21.392990413891003, 33.224915513449346 ], [ -15.44051174359269, 31.752076481583995 ], [ -10.886920766937232, 34.749501833281329 ] ] ] } },
{ "type": "Feature", "id": 97, "properties": { "cell_id": "98" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -73.485403345246752, -0.000000002203173 ], [ -76.102239681553016, 4.079195316488019 ], [ -81.397760318679175, 4.079195321289634 ], [ -84.014596654753248, 0.000000002203168 ], [ -81.397760318446984, -4.079195316488024 ], [ -76.102239681320825, -4.079195321289639 ], [ -73.485403345246752, -0.000000002203173 ] ] ] } },
{ "type": "Feature", "id": 98, "properties": { "cell_id": "99" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -65.556238440723689, 4.107001962964834 ], [ -68.016426110224046, 8.159878268920583 ], [ -73.392662781340164, 8.162493877817024 ], [ -76.102239681553016, 4.079195316488019 ], [ -73.485403345246752, -0.000000002203173 ], [ -68.253846693537454, -0.000000001800282 ], [ -65.556238440723689, 4.107001962964834 ] ] ] } },
{ "type": "Feature", "id": 99, "properties": { "cell_id": "100" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -57.561083008144834, 8.726464949005171 ], [ -59.932452552658468, 12.847490158556068 ], [ -64.847758095012992, 11.924043999929269 ], [ -68.016426110224046, 8.159878268920583 ], [ -65.556238440723689, 4.107001962964834 ], [ -60.144028600406074, 3.974849366090795 ], [ -57.561083008144834, 8.726464949005171 ] ] ] } },
{ "type": "Feature", "id": 100, "properties": { "cell_id": "101" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -49.876123592839988, 13.502148725055306 ], [ -52.139271101368742, 17.830030107204884 ], [ -57.261814931019458, 17.50388790906214 ], [ -59.932452552658468, 12.847490158556068 ], [ -57.561083008144834, 8.726464949005171 ], [ -52.597041017382743, 9.001946839049971 ], [ -49.876123592839988, 13.502148725055306 ] ] ] } },
{ "type": "Feature", "id": 101, "properties": { "cell_id": "102" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -41.919817218923029, 18.036082997005042 ], [ -44.040564342135468, 22.454214729327191 ], [ -49.281509208800522, 22.380217501468596 ], [ -52.139271101368742, 17.830030107204884 ], [ -49.876123592839988, 13.502148725055306 ], [ -44.893045783085014, 13.595102906040193 ], [ -41.919817218923029, 18.036082997005042 ] ] ] } },
{ "type": "Feature", "id": 100, "properties": { "cell_id": "101" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -49.876123592839988, 13.502148725055306 ], [ -52.139271101368742, 17.830030107204887 ], [ -57.261814931019458, 17.50388790906214 ], [ -59.932452552658468, 12.847490158556068 ], [ -57.561083008144834, 8.726464949005171 ], [ -52.597041017382743, 9.001946839049971 ], [ -49.876123592839988, 13.502148725055306 ] ] ] } },
{ "type": "Feature", "id": 101, "properties": { "cell_id": "102" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -41.919817218923029, 18.036082997005042 ], [ -44.040564342135468, 22.454214729327191 ], [ -49.281509208800522, 22.380217501468596 ], [ -52.139271101368742, 17.830030107204887 ], [ -49.876123592839988, 13.502148725055306 ], [ -44.893045783085014, 13.595102906040193 ], [ -41.919817218923029, 18.036082997005042 ] ] ] } },
{ "type": "Feature", "id": 102, "properties": { "cell_id": "103" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -33.43042978039071, 22.254201973925706 ], [ -35.37453575517295, 26.644770130811821 ], [ -40.871762116414146, 26.82227296101237 ], [ -44.040564342135461, 22.454214729327191 ], [ -41.919817218923029, 18.036082997005042 ], [ -36.776963937070384, 17.958619700500634 ], [ -33.43042978039071, 22.254201973925706 ] ] ] } },
{ "type": "Feature", "id": 103, "properties": { "cell_id": "104" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -23.9344478561659, 25.367288743409514 ], [ -25.599856048537148, 29.865188923573974 ], [ -31.724723098479146, 30.997791332285683 ], [ -35.37453575517295, 26.644770130811821 ], [ -33.43042978039071, 22.254201973925706 ], [ -28.147139099494996, 22.356609653155278 ], [ -23.9344478561659, 25.367288743409514 ] ] ] } },
{ "type": "Feature", "id": 104, "properties": { "cell_id": "105" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -14.062004367935165, 27.057879521685695 ], [ -15.44051174359269, 31.752076481583995 ], [ -21.392990413891003, 33.224915513449346 ], [ -25.599856048537148, 29.865188923573974 ], [ -23.9344478561659, 25.367288743409514 ], [ -18.278875542231049, 23.983112371791041 ], [ -14.062004367935165, 27.057879521685695 ] ] ] } },
Expand Down
13 changes: 13 additions & 0 deletions dev/develop/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Developer information · DGGS.jl</title><script data-outdated-warner src="../assets/warner.js"></script><link rel="canonical" href="https://danlooo.github.io/DGGS.jl/develop/"/><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.045/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/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="../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.svg" alt="DGGS.jl logo"/></a><div class="docs-package-name"><span class="docs-autofit"><a href="../">DGGS.jl</a></span></div><form class="docs-search" action="../search/"><input class="docs-search-query" id="documenter-search-query" name="q" type="text" placeholder="Search docs"/></form><ul class="docs-menu"><li><a class="tocitem" href="../">Home</a></li><li><a class="tocitem" href="../tutorial/">Tutorial</a></li><li><a class="tocitem" href="../background/">Background</a></li><li><a class="tocitem" href="../api/">API</a></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"><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>Developer information</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Developer information</a></li></ul></nav><div class="docs-right"><a class="docs-edit-link" href="https://github.com/danlooo/DGGS.jl/blob/main/docs/src/develop.md#" title="Edit on GitHub"><span class="docs-icon fab"></span><span class="docs-label is-hidden-touch">Edit on GitHub</span></a><a class="docs-settings-button fas fa-cog" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-sidebar-button fa fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a></div></header><article class="content" id="documenter-page"><h1 id="Developer-information"><a class="docs-heading-anchor" href="#Developer-information">Developer information</a><a id="Developer-information-1"></a><a class="docs-heading-anchor-permalink" href="#Developer-information" title="Permalink"></a></h1><h2 id="Create-a-DGGS"><a class="docs-heading-anchor" href="#Create-a-DGGS">Create a DGGS</a><a id="Create-a-DGGS-1"></a><a class="docs-heading-anchor-permalink" href="#Create-a-DGGS" title="Permalink"></a></h2><ol><li>Shell call to DGGRID to get grids i.e. <code>Vector{DgGrid}</code> at all resolutions. A grid is a ball tree containing cell center points in geographical coordinates</li><li>Indexing i.e. reorder cells by sorted address, e.g. HIndex</li><li>Add the data, i.e. create a cell cube based on that grid. Array indices and memory address depends on the calculated index.</li></ol><p>Cell center points in geographical space are ordered for fast point queries using <code>NearestNeighbors.BallTree(;reorder=true)</code>. To convert across indices, methods for <code>Base.getindex</code> are implemented for index types <code>&lt;:AbstractIndex</code>.</p><pre><code class="language-julia hljs">using DGGS
grids = [DgGrid(:isea, 7, :hexagon, resolution) for resolution in 0:4]


indices = [:seqnum]

grid = DgGrid(:isea, 7, :hexagon, 1, :seqnum)
grid[1] # geo coordinates of first cell

grid.data # ball tree of geo coordinates
grid.index
</code></pre></article><nav class="docs-footer"><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></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.24 on <span class="colophon-date" title="Wednesday 22 November 2023 10:57">Wednesday 22 November 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 9698e8b

Please sign in to comment.