forked from MPAS-Dev/geometric_features
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b3ab9f
commit 7c52b82
Showing
228 changed files
with
19,490 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<meta http-equiv="refresh" content="0; url=./main/index.html" /> |
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,4 @@ | ||
# Sphinx build info version 1 | ||
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 3aa78b4fd141cb5d916dab5237780cc8 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.96 KB
main/.doctrees/generated/geometric_features.FeatureCollection.add_feature.doctree
Binary file not shown.
Binary file added
BIN
+7.72 KB
main/.doctrees/generated/geometric_features.FeatureCollection.combine.doctree
Binary file not shown.
Binary file added
BIN
+8.39 KB
main/.doctrees/generated/geometric_features.FeatureCollection.difference.doctree
Binary file not shown.
Binary file added
BIN
+31.3 KB
main/.doctrees/generated/geometric_features.FeatureCollection.doctree
Binary file not shown.
Binary file added
BIN
+6.77 KB
main/.doctrees/generated/geometric_features.FeatureCollection.feature_in_collection.doctree
Binary file not shown.
Binary file added
BIN
+5.76 KB
main/.doctrees/generated/geometric_features.FeatureCollection.fix_antimeridian.doctree
Binary file not shown.
Binary file added
BIN
+5.92 KB
main/.doctrees/generated/geometric_features.FeatureCollection.merge.doctree
Binary file not shown.
Binary file added
BIN
+13.3 KB
main/.doctrees/generated/geometric_features.FeatureCollection.plot.doctree
Binary file not shown.
Binary file added
BIN
+5.97 KB
main/.doctrees/generated/geometric_features.FeatureCollection.set_group_name.doctree
Binary file not shown.
Binary file added
BIN
+7.57 KB
main/.doctrees/generated/geometric_features.FeatureCollection.simplify.doctree
Binary file not shown.
Binary file added
BIN
+7.81 KB
main/.doctrees/generated/geometric_features.FeatureCollection.tag.doctree
Binary file not shown.
Binary file added
BIN
+9.51 KB
main/.doctrees/generated/geometric_features.FeatureCollection.to_geojson.doctree
Binary file not shown.
Binary file added
BIN
+20.3 KB
main/.doctrees/generated/geometric_features.GeometricFeatures.doctree
Binary file not shown.
Binary file added
BIN
+17 KB
main/.doctrees/generated/geometric_features.GeometricFeatures.read.doctree
Binary file not shown.
Binary file added
BIN
+8.98 KB
main/.doctrees/generated/geometric_features.GeometricFeatures.split.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10.3 KB
main/.doctrees/generated/geometric_features.aggregation.get_aggregator_by_name.doctree
Binary file not shown.
Binary file added
BIN
+6.83 KB
main/.doctrees/generated/geometric_features.aggregation.ocean.antarctic.doctree
Binary file not shown.
Binary file added
BIN
+6.75 KB
main/.doctrees/generated/geometric_features.aggregation.ocean.arctic.doctree
Binary file not shown.
Binary file added
BIN
+6.9 KB
main/.doctrees/generated/geometric_features.aggregation.ocean.basins.doctree
Binary file not shown.
Binary file added
BIN
+2.98 KB
main/.doctrees/generated/geometric_features.aggregation.ocean.doctree
Binary file not shown.
Binary file added
BIN
+6.83 KB
main/.doctrees/generated/geometric_features.aggregation.ocean.greenland.doctree
Binary file not shown.
Binary file added
BIN
+6.83 KB
main/.doctrees/generated/geometric_features.aggregation.ocean.ice_shelves.doctree
Binary file not shown.
Binary file added
BIN
+6.45 KB
main/.doctrees/generated/geometric_features.aggregation.ocean.moc.doctree
Binary file not shown.
Binary file added
BIN
+7.12 KB
main/.doctrees/generated/geometric_features.aggregation.ocean.subbasins.doctree
Binary file not shown.
Binary file added
BIN
+6.79 KB
main/.doctrees/generated/geometric_features.aggregation.ocean.transport.doctree
Binary file not shown.
Binary file added
BIN
+6.77 KB
main/.doctrees/generated/geometric_features.aggregation.seaice.arctic.doctree
Binary file not shown.
Binary file added
BIN
+2.98 KB
main/.doctrees/generated/geometric_features.aggregation.seaice.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.47 KB
main/.doctrees/generated/geometric_features.difference_features.doctree
Binary file not shown.
Binary file added
BIN
+4.63 KB
main/.doctrees/generated/geometric_features.fix_features_at_antimeridian.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.55 KB
main/.doctrees/generated/geometric_features.read_feature_collection.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.57 KB
main/.doctrees/generated/geometric_features.simplify_features.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.82 KB
main/.doctrees/generated/geometric_features.write_feature_names_and_tags.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
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,196 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<html class="writer-html5" lang="en" data-content_root="../../"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>geometric_features.aggregation — geometric_features 1.5.0 documentation</title> | ||
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" /> | ||
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" /> | ||
|
||
|
||
<script src="../../_static/documentation_options.js?v=e0a75244"></script> | ||
<script src="../../_static/doctools.js?v=9bcbadda"></script> | ||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script src="../../_static/js/theme.js"></script> | ||
<link rel="index" title="Index" href="../../genindex.html" /> | ||
<link rel="search" title="Search" href="../../search.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
<div class="wy-grid-for-nav"> | ||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" > | ||
|
||
|
||
|
||
<a href="../../index.html" class="icon icon-home"> | ||
geometric_features | ||
</a> | ||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> | ||
<p class="caption" role="heading"><span class="caption-text">User's Guide</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../quick_start.html">Quick Start</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../geometric_features.html">GeometricFeatures</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../feature_collection.html">FeatureCollection</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../geometric_data.html">Geometric Data</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../aggregation.html">Aggregate Existing Features</a></li> | ||
</ul> | ||
<p class="caption" role="heading"><span class="caption-text">Developer's Guide</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../adding_features.html">Adding New Features</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../build_docs.html">Building the Documentation</a></li> | ||
<li class="toctree-l1"><a class="reference internal" href="../../api.html">API reference</a></li> | ||
</ul> | ||
<p class="caption" role="heading"><span class="caption-text">Versions</span></p> | ||
<ul> | ||
<li class="toctree-l1"><a class="reference internal" href="../../versions.html">Versions</a></li> | ||
</ul> | ||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > | ||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="../../index.html">geometric_features</a> | ||
</nav> | ||
|
||
<div class="wy-nav-content"> | ||
<div class="rst-content"> | ||
<div role="navigation" aria-label="Page navigation"> | ||
<ul class="wy-breadcrumbs"> | ||
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li> | ||
<li class="breadcrumb-item"><a href="../index.html">Module code</a></li> | ||
<li class="breadcrumb-item active">geometric_features.aggregation</li> | ||
<li class="wy-breadcrumbs-aside"> | ||
</li> | ||
</ul> | ||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<h1>Source code for geometric_features.aggregation</h1><div class="highlight"><pre> | ||
<span></span><span class="kn">from</span> <span class="nn">geometric_features.aggregation.ocean</span> <span class="kn">import</span> <span class="n">basins</span><span class="p">,</span> <span class="n">subbasins</span><span class="p">,</span> \ | ||
<span class="n">antarctic</span><span class="p">,</span> <span class="n">greenland</span><span class="p">,</span> <span class="n">ice_shelves</span><span class="p">,</span> <span class="n">ismip6</span><span class="p">,</span> <span class="n">arctic</span> <span class="k">as</span> <span class="n">arctic_ocean</span><span class="p">,</span> \ | ||
<span class="n">transport</span><span class="p">,</span> <span class="n">arctic_transport</span><span class="p">,</span> <span class="n">moc</span> | ||
<span class="kn">from</span> <span class="nn">geometric_features.aggregation.seaice</span> <span class="kn">import</span> <span class="n">arctic</span> <span class="k">as</span> <span class="n">arctic_seaice</span> | ||
|
||
|
||
<div class="viewcode-block" id="get_aggregator_by_name"> | ||
<a class="viewcode-back" href="../../generated/geometric_features.aggregation.get_aggregator_by_name.html#geometric_features.aggregation.get_aggregator_by_name">[docs]</a> | ||
<span class="k">def</span> <span class="nf">get_aggregator_by_name</span><span class="p">(</span><span class="n">region_group</span><span class="p">):</span> | ||
<span class="w"> </span><span class="sd">"""</span> | ||
<span class="sd"> Get a geojson mask file and the appropriate file suffix for the given</span> | ||
<span class="sd"> region group.</span> | ||
|
||
<span class="sd"> Parameters</span> | ||
<span class="sd"> ----------</span> | ||
<span class="sd"> region_group : str</span> | ||
<span class="sd"> The name of a region group to get mask features for, one of</span> | ||
<span class="sd"> 'Antarctic Regions', 'Arctic Ocean Regions', 'Arctic Sea Ice Regions',</span> | ||
<span class="sd"> 'Ocean Basins', 'Ice Shelves', 'Ocean Subbasins', 'ISMIP6 Regions',</span> | ||
<span class="sd"> 'MOC Basins', 'Transport Transects', or 'Arctic Transport Transects'</span> | ||
|
||
<span class="sd"> Returns</span> | ||
<span class="sd"> -------</span> | ||
<span class="sd"> function : callable</span> | ||
<span class="sd"> An aggregation functions for collecting the features, which takes a</span> | ||
<span class="sd"> :py:class:`geometric_features.GeometricFeatures` object as its argument</span> | ||
|
||
<span class="sd"> prefix : str</span> | ||
<span class="sd"> A prefix (or suffix) for use in file names that corresponds to the</span> | ||
<span class="sd"> region group</span> | ||
|
||
<span class="sd"> date : str</span> | ||
<span class="sd"> A date stamp when the regions in ``fc`` were last modified. This date</span> | ||
<span class="sd"> can be used to cache masks based on these regions as long as the date</span> | ||
<span class="sd"> remains the same.</span> | ||
<span class="sd"> """</span> | ||
|
||
<span class="n">regions</span> <span class="o">=</span> <span class="p">{</span><span class="s1">'Antarctic Regions'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'antarcticRegions'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20230403'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">antarctic</span><span class="p">},</span> | ||
<span class="s1">'Arctic Ocean Regions'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'arcticOceanRegions'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20201130'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">arctic_ocean</span><span class="p">},</span> | ||
<span class="s1">'Arctic Sea Ice Regions'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'arcticSeaIceRegions'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20201130'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">arctic_seaice</span><span class="p">},</span> | ||
<span class="s1">'Ocean Basins'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'oceanBasins'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20200621'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">basins</span><span class="p">},</span> | ||
<span class="s1">'Ice Shelves'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'iceShelves'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20200621'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">ice_shelves</span><span class="p">},</span> | ||
<span class="s1">'Ocean Subbasins'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'oceanSubbasins'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20201123'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">subbasins</span><span class="p">},</span> | ||
<span class="s1">'Greenland Regions'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'greenlandRegions'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20240510'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">greenland</span><span class="p">},</span> | ||
<span class="s1">'ISMIP6 Regions'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'ismip6Regions'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20210201'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">ismip6</span><span class="p">},</span> | ||
<span class="s1">'MOC Basins'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'mocBasins'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20210623'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">moc</span><span class="p">},</span> | ||
<span class="s1">'Transport Transects'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'transportTransects'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20210323'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">transport</span><span class="p">},</span> | ||
<span class="s1">'Arctic Transport Transects'</span><span class="p">:</span> <span class="p">{</span><span class="s1">'prefix'</span><span class="p">:</span> <span class="s1">'arcticTransportTransects'</span><span class="p">,</span> | ||
<span class="s1">'date'</span><span class="p">:</span> <span class="s1">'20220926'</span><span class="p">,</span> | ||
<span class="s1">'function'</span><span class="p">:</span> <span class="n">arctic_transport</span><span class="p">}}</span> | ||
|
||
<span class="k">if</span> <span class="n">region_group</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">regions</span><span class="p">:</span> | ||
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s1">'Unknown region group </span><span class="si">{</span><span class="n">region_group</span><span class="si">}</span><span class="s1">'</span><span class="p">)</span> | ||
|
||
<span class="n">region</span> <span class="o">=</span> <span class="n">regions</span><span class="p">[</span><span class="n">region_group</span><span class="p">]</span> | ||
|
||
<span class="n">prefix</span> <span class="o">=</span> <span class="n">region</span><span class="p">[</span><span class="s1">'prefix'</span><span class="p">]</span> | ||
<span class="n">date</span> <span class="o">=</span> <span class="n">region</span><span class="p">[</span><span class="s1">'date'</span><span class="p">]</span> | ||
|
||
<span class="n">function</span> <span class="o">=</span> <span class="n">region</span><span class="p">[</span><span class="s1">'function'</span><span class="p">]</span> | ||
|
||
<span class="k">return</span> <span class="n">function</span><span class="p">,</span> <span class="n">prefix</span><span class="p">,</span> <span class="n">date</span></div> | ||
|
||
</pre></div> | ||
|
||
</div> | ||
</div> | ||
<footer> | ||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p>© Copyright This software is open source software available under the BSD-3license. Copyright (c) 2019 Triad National Security, LLC. All rights reserved. Copyright (c) 2018 Lawrence Livermore National Security, LLC. All rights reserved. Copyright (c) 2018 UT-Battelle, LLC. All rights reserved..</p> | ||
</div> | ||
|
||
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a | ||
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> | ||
provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
|
||
</footer> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
<script> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.