Browse Source

Upgraded to nbdev2

master
Florian Börgel 9 months ago
parent
commit
43bd16a0fb
  1. 22
      README.md
  2. 1
      docs/.gitignore
  3. BIN
      docs/02_stats_files/figure-html/cell-11-output-2.png
  4. BIN
      docs/02_stats_files/figure-html/cell-14-output-2.png
  5. BIN
      docs/02_stats_files/figure-html/cell-18-output-1.png
  6. BIN
      docs/02_stats_files/figure-html/cell-19-output-1.png
  7. BIN
      docs/02_stats_files/figure-html/cell-7-output-2.png
  8. BIN
      docs/08_mom_preprocessing_obc_files/figure-html/cell-10-output-1.png
  9. 447
      docs/09_mom_preprocessing_mergetime.html
  10. BIN
      docs/10_mom_validation_files/figure-html/cell-10-output-1.png
  11. BIN
      docs/10_mom_validation_files/figure-html/cell-9-output-1.png
  12. 8
      docs/Gemfile
  13. 263
      docs/Gemfile.lock
  14. 63
      docs/_config.yml
  15. 15
      docs/_data/alerts.yml
  16. 1
      docs/_data/definitions.yml
  17. 1
      docs/_data/glossary.yml
  18. 45
      docs/_data/sidebars/home_sidebar.yml
  19. 3
      docs/_data/tags.yml
  20. 0
      docs/_data/terms.yml
  21. 10
      docs/_data/topnav.yml
  22. 15
      docs/_includes/archive.html
  23. 1
      docs/_includes/callout.html
  24. 9
      docs/_includes/footer.html
  25. 6
      docs/_includes/google_analytics.html
  26. 83
      docs/_includes/head.html
  27. 28
      docs/_includes/head_print.html
  28. 1
      docs/_includes/image.html
  29. 1
      docs/_includes/important.html
  30. 130
      docs/_includes/initialize_shuffle.html
  31. 1
      docs/_includes/inline_image.html
  32. 44
      docs/_includes/links.html
  33. 1
      docs/_includes/note.html
  34. 5
      docs/_includes/notebook_colab_link.html
  35. 16
      docs/_includes/search_google_custom.html
  36. 16
      docs/_includes/search_simple_jekyll.html
  37. 59
      docs/_includes/sidebar.html
  38. 1
      docs/_includes/tip.html
  39. 21
      docs/_includes/toc.html
  40. 62
      docs/_includes/topnav.html
  41. 1
      docs/_includes/warning.html
  42. 110
      docs/_layouts/default.html
  43. 25
      docs/_layouts/default_print.html
  44. 3
      docs/_layouts/none.html
  45. 70
      docs/_layouts/page.html
  46. 15
      docs/_layouts/page_print.html
  47. 1611
      docs/cci.html
  48. 99
      docs/core.html
  49. 7535
      docs/css/bootstrap.min.css
  50. 24
      docs/css/boxshadowproperties.css
  51. 1344
      docs/css/customstyles.css
  52. 4
      docs/css/font-awesome.min.css
  53. BIN
      docs/css/fonts/FontAwesome.otf
  54. BIN
      docs/css/fonts/fontawesome-webfont.eot
  55. 2671
      docs/css/fonts/fontawesome-webfont.svg
  56. BIN
      docs/css/fonts/fontawesome-webfont.ttf
  57. BIN
      docs/css/fonts/fontawesome-webfont.woff
  58. BIN
      docs/css/fonts/fontawesome-webfont.woff2
  59. 89
      docs/css/modern-business.css
  60. 159
      docs/css/printstyles.css
  61. 60
      docs/css/syntax.css
  62. 121
      docs/css/theme-blue.css
  63. 110
      docs/css/theme-green.css
  64. 339
      docs/derivative.html
  65. 151
      docs/derivatives.html
  66. 668
      docs/ergom.html
  67. 32
      docs/feed.xml
  68. BIN
      docs/fonts/FontAwesome.otf
  69. BIN
      docs/fonts/fontawesome-webfont.eot
  70. 520
      docs/fonts/fontawesome-webfont.svg
  71. BIN
      docs/fonts/fontawesome-webfont.ttf
  72. BIN
      docs/fonts/fontawesome-webfont.woff
  73. BIN
      docs/fonts/glyphicons-halflings-regular.eot
  74. 288
      docs/fonts/glyphicons-halflings-regular.svg
  75. BIN
      docs/fonts/glyphicons-halflings-regular.ttf
  76. BIN
      docs/fonts/glyphicons-halflings-regular.woff
  77. BIN
      docs/fonts/glyphicons-halflings-regular.woff2
  78. 711
      docs/helper_functions.html
  79. 1
      docs/images/colab.svg
  80. BIN
      docs/images/company_logo.png
  81. BIN
      docs/images/company_logo_big.png
  82. BIN
      docs/images/doc_example.png
  83. BIN
      docs/images/export_example.png
  84. BIN
      docs/images/favicon.ico
  85. BIN
      docs/images/output_11_1.png
  86. BIN
      docs/images/output_14_1.png
  87. BIN
      docs/images/output_17_1.png
  88. BIN
      docs/images/output_21_1.png
  89. BIN
      docs/images/output_26_1.png
  90. BIN
      docs/images/output_27_1.png
  91. BIN
      docs/images/output_28_1.png
  92. BIN
      docs/images/output_8_1.png
  93. BIN
      docs/images/workflowarrow.png
  94. 398
      docs/index.html
  95. 54
      docs/js/customscripts.js
  96. 1
      docs/js/jekyll-search.js
  97. 9
      docs/js/jquery.ba-throttle-debounce.min.js
  98. 8
      docs/js/jquery.navgoco.min.js
  99. 1588
      docs/js/jquery.shuffle.min.js
  100. 90
      docs/js/toc.js
  101. Some files were not shown because too many files have changed in this diff Show More

22
README.md

@ -1,23 +1,23 @@
# Dynamics of Regional Climate Systems (DRCS) - Tools
> For data analysis
Dynamics of Regional Climate Systems (DRCS) - Tools
================
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
## Content
- Stormtracks
* Follows Benestad et al. (2006)+
- Follows Benestad et al. (2006)+
- derivative
* Calculates first and second derivative following Gill (1981)
- Calculates first and second derivative following Gill (1981)
- stats
* spatial mean added
* regression function for regression maps and more
- spatial mean added
- regression function for regression maps and more
- helper_functions
* reading netcdf files using xarray
* adjusting 0-360 lon to -180 to 180
* much more
- reading netcdf files using xarray
- adjusting 0-360 lon to -180 to 180
- much more
- total exchange flow
* using xarray
- using xarray
## Install

1
docs/.gitignore vendored

@ -1 +0,0 @@
_site/

BIN
docs/02_stats_files/figure-html/cell-11-output-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
docs/02_stats_files/figure-html/cell-14-output-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
docs/02_stats_files/figure-html/cell-18-output-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
docs/02_stats_files/figure-html/cell-19-output-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
docs/02_stats_files/figure-html/cell-7-output-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
docs/08_mom_preprocessing_obc_files/figure-html/cell-10-output-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

447
docs/09_mom_preprocessing_mergetime.html

@ -0,0 +1,447 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta charset="utf-8">
<meta name="generator" content="quarto-1.1.189">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>drcstools - MOM preprocessing mergtime</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { color: #008000; } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { color: #008000; font-weight: bold; } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<script src="site_libs/quarto-nav/quarto-nav.js"></script>
<script src="site_libs/quarto-nav/headroom.min.js"></script>
<script src="site_libs/clipboard/clipboard.min.js"></script>
<script src="site_libs/quarto-search/autocomplete.umd.js"></script>
<script src="site_libs/quarto-search/fuse.min.js"></script>
<script src="site_libs/quarto-search/quarto-search.js"></script>
<meta name="quarto:offset" content="./">
<script src="site_libs/quarto-html/quarto.js"></script>
<script src="site_libs/quarto-html/popper.min.js"></script>
<script src="site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="site_libs/quarto-html/anchor.min.js"></script>
<link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="site_libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
"collapse-after": 3,
"panel-placement": "end",
"type": "overlay",
"limit": 20,
"language": {
"search-no-results-text": "No results",
"search-matching-documents-text": "matching documents",
"search-copy-link-title": "Copy link to search",
"search-hide-matches-text": "Hide additional matches",
"search-more-match-text": "more match in this document",
"search-more-matches-text": "more matches in this document",
"search-clear-button-title": "Clear",
"search-detached-cancel-button-title": "Cancel",
"search-submit-button-title": "Submit"
}
}</script>
<link rel="stylesheet" href="styles.css">
<meta property="og:title" content="drcstools - MOM preprocessing mergtime">
<meta property="og:site-name" content="drcstools">
<meta name="twitter:title" content="drcstools - MOM preprocessing mergtime">
<meta name="twitter:card" content="summary">
</head>
<body class="nav-sidebar floating nav-fixed">
<div id="quarto-search-results"></div>
<header id="quarto-header" class="headroom fixed-top">
<nav class="navbar navbar-expand-lg navbar-dark ">
<div class="navbar-container container-fluid">
<div class="navbar-brand-container">
<a class="navbar-brand" href="./index.html">
<span class="navbar-title">drcstools</span>
</a>
</div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav navbar-nav-scroll ms-auto">
<li class="nav-item compact">
<a class="nav-link" href="https://github.com/florianboergel/drcstools/tree/master/"><i class="bi bi-github" role="img">
</i>
</a>
</li>
</ul>
<div id="quarto-search" class="" title="Search"></div>
</div> <!-- /navcollapse -->
</div> <!-- /container-fluid -->
</nav>
<nav class="quarto-secondary-nav" data-bs-toggle="collapse" data-bs-target="#quarto-sidebar" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<div class="container-fluid d-flex justify-content-between">
<h1 class="quarto-secondary-nav-title">MOM preprocessing mergtime</h1>
<button type="button" class="quarto-btn-toggle btn" aria-label="Show secondary navigation">
<i class="bi bi-chevron-right"></i>
</button>
</div>
</nav>
</header>
<!-- content -->
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
<!-- sidebar -->
<nav id="quarto-sidebar" class="sidebar collapse sidebar-navigation floating overflow-auto">
<div class="sidebar-menu-container">
<ul class="list-unstyled mt-1">
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./index.html" class="sidebar-item-text sidebar-link">Dynamics of Regional Climate Systems (DRCS) - Tools</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./derivative.html" class="sidebar-item-text sidebar-link">Derivatives</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./stats.html" class="sidebar-item-text sidebar-link">stats</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./helper_functions.html" class="sidebar-item-text sidebar-link">helper_functions</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./read_data.html" class="sidebar-item-text sidebar-link">read_data</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./ergom.html" class="sidebar-item-text sidebar-link">Ergom</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./lfca.html" class="sidebar-item-text sidebar-link">Low-frequency component analysis</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./lanczos_filter.html" class="sidebar-item-text sidebar-link">Filter</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./mom_preprocessing_obc.html" class="sidebar-item-text sidebar-link">MOM preprocessing OBC</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./09_mom_preprocessing_mergetime.html" class="sidebar-item-text sidebar-link active">MOM preprocessing mergtime</a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="./mom_validation.html" class="sidebar-item-text sidebar-link">MOM validation</a>
</div>
</li>
</ul>
</div>
</nav>
<!-- margin-sidebar -->
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
</div>
<!-- main -->
<main class="content" id="quarto-document-content">
<header id="title-block-header" class="quarto-title-block default">
<div class="quarto-title">
<h1 class="title d-none d-lg-block">MOM preprocessing mergtime</h1>
</div>
<div class="quarto-title-meta">
</div>
</header>
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
<div class="cell" data-execution_count="1">
<div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> os, glob, re, argparse</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> subprocess <span class="im">as</span> sp</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="bu">print</span>(<span class="st">"Remember to use 'module load cdo &amp;&amp; module load nco'"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>Remember to use 'module load cdo &amp;&amp; module load nco'</code></pre>
</div>
</div>
<div class="cell" data-execution_count="3">
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="op">!</span>ls <span class="op">/</span>silod7<span class="op">/</span>boergel<span class="op">/</span>MOM_projections<span class="op">/</span><span class="dv">1961</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>dsr_1961_remap.nc slp_1961_remap.nc
dsr.mom.dta.nc slp.mom.dta.nc
huss_1961_remap.nc snf_1961_remap.nc
huss.mom.dta.nc snf.mom.dta.nc
lsr_1961_remap.nc t2m_1961_obc.nc
lsr.mom.dta.nc t2m_1961_obc.nc.mom.dta.nc
precip_1961_obc.nc t2m_1961_remap.nc
precip_1961_obc.nc.mom.dta.nc t2m.mom.dta.nc
precip_1961_remap.nc uv10_1961_obc.nc
precip.mom.dta.nc uv10_1961_obc.nc.mom.dta.nc
slp_1961_obc.nc uv10_1961_remap.nc
slp_1961_obc.nc.mom.dta.nc uv10.mom.dta.nc</code></pre>
</div>
</div>
<div class="cell" data-execution_count="46">
<div class="sourceCode cell-code" id="cb5"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="kw">def</span> mergetime(data_path, year, suffix):</span>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(<span class="ss">f"</span><span class="sc">{</span>data_path<span class="sc">}</span><span class="ss">/</span><span class="sc">{</span>year<span class="sc">}</span><span class="ss">/</span><span class="sc">{</span>suffix<span class="sc">}</span><span class="ss">"</span>) </span>
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a> files <span class="op">=</span> glob.glob(<span class="ss">f"</span><span class="sc">{</span>data_path<span class="sc">}</span><span class="ss">/</span><span class="sc">{</span>year<span class="sc">}</span><span class="ss">/</span><span class="sc">{</span>suffix<span class="sc">}</span><span class="ss">"</span>)</span>
<span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(files)</span>
<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a> </span>
<span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a> <span class="cf">for</span> <span class="bu">file</span> <span class="kw">in</span> files:</span>
<span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a> </span>
<span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a> <span class="co"># get file name as string and remove .nc</span></span>
<span id="cb5-9"><a href="#cb5-9" aria-hidden="true" tabindex="-1"></a> fname <span class="op">=</span> os.path.basename(<span class="bu">file</span>).strip(<span class="st">".nc"</span>) </span>
<span id="cb5-10"><a href="#cb5-10" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(fname)</span>
<span id="cb5-11"><a href="#cb5-11" aria-hidden="true" tabindex="-1"></a> <span class="co"># sometimes the file name itself contains some year information</span></span>
<span id="cb5-12"><a href="#cb5-12" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> <span class="bu">str</span>(year) <span class="kw">in</span> fname:</span>
<span id="cb5-13"><a href="#cb5-13" aria-hidden="true" tabindex="-1"></a> <span class="co"># we replace the year with the * flag</span></span>
<span id="cb5-14"><a href="#cb5-14" aria-hidden="true" tabindex="-1"></a> <span class="co"># this helps to search for previous years</span></span>
<span id="cb5-15"><a href="#cb5-15" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(<span class="st">"Found &lt;year&gt; in string ... adapting"</span>)</span>
<span id="cb5-16"><a href="#cb5-16" aria-hidden="true" tabindex="-1"></a> fnameSearch <span class="op">=</span> fname.replace(<span class="bu">str</span>(year), <span class="st">"*"</span>)</span>
<span id="cb5-17"><a href="#cb5-17" aria-hidden="true" tabindex="-1"></a> <span class="cf">else</span>:</span>
<span id="cb5-18"><a href="#cb5-18" aria-hidden="true" tabindex="-1"></a> fnameSearch <span class="op">=</span> fname</span>
<span id="cb5-19"><a href="#cb5-19" aria-hidden="true" tabindex="-1"></a> <span class="co"># Search for previous and past year</span></span>
<span id="cb5-20"><a href="#cb5-20" aria-hidden="true" tabindex="-1"></a> fpath_prev <span class="op">=</span> glob.glob(<span class="ss">f"</span><span class="sc">{</span>data_path<span class="sc">}</span><span class="ss">/</span><span class="sc">{</span>year<span class="op">-</span><span class="dv">1</span><span class="sc">}</span><span class="ss">/</span><span class="sc">{</span>fnameSearch<span class="sc">}</span><span class="ss">.nc"</span>)</span>
<span id="cb5-21"><a href="#cb5-21" aria-hidden="true" tabindex="-1"></a> fpath_past <span class="op">=</span> glob.glob(<span class="ss">f"</span><span class="sc">{</span>data_path<span class="sc">}</span><span class="ss">/</span><span class="sc">{</span>year<span class="op">+</span><span class="dv">1</span><span class="sc">}</span><span class="ss">/</span><span class="sc">{</span>fnameSearch<span class="sc">}</span><span class="ss">.nc"</span>)</span>
<span id="cb5-22"><a href="#cb5-22" aria-hidden="true" tabindex="-1"></a> </span>
<span id="cb5-23"><a href="#cb5-23" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> os.path.isfile(fpath_prev):</span>
<span id="cb5-24"><a href="#cb5-24" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(<span class="st">"Found previous month"</span>)</span>
<span id="cb5-25"><a href="#cb5-25" aria-hidden="true" tabindex="-1"></a> sp.check_call(<span class="st">"cdo seldate,</span><span class="sc">{}</span><span class="st">-12-01T00:00:00,</span><span class="sc">{}</span><span class="st">-01-01T00:00:00 -setcalendar,standard </span><span class="sc">{}</span><span class="st"> tmp1.nc"</span>.<span class="bu">format</span>(year<span class="op">-</span><span class="dv">1</span>, year, fpath_prev), shell<span class="op">=</span><span class="va">True</span>)</span>
<span id="cb5-26"><a href="#cb5-26" aria-hidden="true" tabindex="-1"></a> fpath_prev <span class="op">=</span> <span class="st">"tmp1.nc"</span></span>
<span id="cb5-27"><a href="#cb5-27" aria-hidden="true" tabindex="-1"></a> <span class="cf">else</span>:</span>
<span id="cb5-28"><a href="#cb5-28" aria-hidden="true" tabindex="-1"></a> fpath_prev <span class="op">=</span> <span class="st">""</span></span>
<span id="cb5-29"><a href="#cb5-29" aria-hidden="true" tabindex="-1"></a> <span class="cf">if</span> os.path.isfile(fpath_past):</span>
<span id="cb5-30"><a href="#cb5-30" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(<span class="st">"Found past month"</span>)</span>
<span id="cb5-31"><a href="#cb5-31" aria-hidden="true" tabindex="-1"></a> sp.check_call(<span class="st">"cdo seldate,</span><span class="sc">{}</span><span class="st">-01-01T00:00:00,</span><span class="sc">{}</span><span class="st">-01-31T23:59:59 -setcalendar,standard </span><span class="sc">{}</span><span class="st"> tmp3.nc"</span>.<span class="bu">format</span>(year, year<span class="op">+</span><span class="dv">1</span>, fpath_past), shell<span class="op">=</span><span class="va">True</span>)</span>
<span id="cb5-32"><a href="#cb5-32" aria-hidden="true" tabindex="-1"></a> fpath_past <span class="op">=</span> <span class="st">"tmp3.nc"</span></span>
<span id="cb5-33"><a href="#cb5-33" aria-hidden="true" tabindex="-1"></a> <span class="cf">else</span>:</span>
<span id="cb5-34"><a href="#cb5-34" aria-hidden="true" tabindex="-1"></a> fpath_past <span class="op">=</span> <span class="st">""</span></span>
<span id="cb5-35"><a href="#cb5-35" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-36"><a href="#cb5-36" aria-hidden="true" tabindex="-1"></a> <span class="bu">print</span>(<span class="st">"MERGING </span><span class="sc">{}</span><span class="st"> to </span><span class="sc">{}{}</span><span class="st">/</span><span class="sc">{}</span><span class="st">.mom.dta.nc"</span>.<span class="bu">format</span>(<span class="bu">file</span>,data_path,YEAR,fname))</span>
<span id="cb5-37"><a href="#cb5-37" aria-hidden="true" tabindex="-1"></a> sp.check_call(<span class="st">"cdo -O mergetime </span><span class="sc">{}</span><span class="st"> </span><span class="sc">{}</span><span class="st"> </span><span class="sc">{}</span><span class="st"> </span><span class="sc">{}{}</span><span class="st">/</span><span class="sc">{}</span><span class="st">.mom.dta.nc"</span>.<span class="bu">format</span>(fpath_prev,<span class="bu">file</span>,fpath_past,data_path,YEAR,fname),shell <span class="op">=</span><span class="va">True</span>)</span>
<span id="cb5-38"><a href="#cb5-38" aria-hidden="true" tabindex="-1"></a> sp.check_call(<span class="st">"ncatted -a calendar,time,o,c,julian </span><span class="sc">{}{}</span><span class="st">/</span><span class="sc">{}</span><span class="st">.mom.dta.nc"</span>.<span class="bu">format</span>(data_path,YEAR,fname),shell<span class="op">=</span><span class="va">True</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<div class="cell" data-execution_count="47">
<div class="sourceCode cell-code" id="cb6"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>fname<span class="op">=</span><span class="st">"snf_1962_remap"</span></span>
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a>fname.replace(<span class="st">"1962"</span>, <span class="st">"*"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="47">
<pre><code>'snf_*_remap'</code></pre>
</div>
</div>
<div class="cell" data-execution_count="48">
<div class="sourceCode cell-code" id="cb8"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a><span class="co">#mergetime("/silod7/boergel/MOM_projections", year=1962, suffix="*????_remap*")</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code>/silod7/boergel/MOM_projections/1962/*????_remap*
['/silod7/boergel/MOM_projections/1962/snf_1962_remap.nc', '/silod7/boergel/MOM_projections/1962/t2m_1962_remap.nc', '/silod7/boergel/MOM_projections/1962/dsr_1962_remap.nc', '/silod7/boergel/MOM_projections/1962/lsr_1962_remap.nc', '/silod7/boergel/MOM_projections/1962/huss_1962_remap.nc', '/silod7/boergel/MOM_projections/1962/precip_1962_remap.nc', '/silod7/boergel/MOM_projections/1962/slp_1962_remap.nc', '/silod7/boergel/MOM_projections/1962/uv10_1962_remap.nc']
snf_1962_remap
Found &lt;year&gt; in string ... adapting
snf_1962_remap
snf_*_remap
['/silod7/boergel/MOM_projections/1961/snf_1961_remap.nc']</code></pre>
</div>
</div>
</main> <!-- /main -->
<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
const toggleBodyColorMode = (bsSheetEl) => {
const mode = bsSheetEl.getAttribute("data-mode");
const bodyEl = window.document.querySelector("body");
if (mode === "dark") {
bodyEl.classList.add("quarto-dark");
bodyEl.classList.remove("quarto-light");
} else {
bodyEl.classList.add("quarto-light");
bodyEl.classList.remove("quarto-dark");
}
}
const toggleBodyColorPrimary = () => {
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
if (bsSheetEl) {
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
placement: 'right',
icon: icon
};
anchorJS.add('.anchored');
const clipboard = new window.ClipboardJS('.code-copy-button', {
target: function(trigger) {
return trigger.previousElementSibling;
}
});
clipboard.on('success', function(e) {
// button target
const button = e.trigger;
// don't keep focus
button.blur();
// flash "checked"
button.classList.add('code-copy-button-checked');
var currentTitle = button.getAttribute("title");
button.setAttribute("title", "Copied!");
setTimeout(function() {
button.setAttribute("title", currentTitle);
button.classList.remove('code-copy-button-checked');
}, 1000);
// clear code selection
e.clearSelection();
});
function tippyHover(el, contentFn) {
const config = {
allowHTML: true,
content: contentFn,
maxWidth: 500,
delay: 100,
arrow: false,
appendTo: function(el) {
return el.parentElement;
},
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start'
};
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
const ref = noterefs[i];
tippyHover(ref, function() {
// use id or data attribute instead here
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
return note.innerHTML;
});
}
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
for (var i=0; i<bibliorefs.length; i++) {
const ref = bibliorefs[i];
const cites = ref.parentNode.getAttribute('data-cites').split(' ');
tippyHover(ref, function() {
var popup = window.document.createElement('div');
cites.forEach(function(cite) {
var citeDiv = window.document.createElement('div');
citeDiv.classList.add('hanging-indent');
citeDiv.classList.add('csl-entry');
var biblioDiv = window.document.getElementById('ref-' + cite);
if (biblioDiv) {
citeDiv.innerHTML = biblioDiv.innerHTML;
}
popup.appendChild(citeDiv);
});
return popup.innerHTML;
});
}
});
</script>
</div> <!-- /content -->
</body></html>

BIN
docs/10_mom_validation_files/figure-html/cell-10-output-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
docs/10_mom_validation_files/figure-html/cell-9-output-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

8
docs/Gemfile

@ -1,8 +0,0 @@
source "https://rubygems.org"
gem 'github-pages', group: :jekyll_plugins
# Added at 2019-11-25 10:11:40 -0800 by jhoward:
gem "nokogiri", "< 1.11.1"
gem "jekyll", ">= 3.7"
gem "kramdown", ">= 2.3.1"

263
docs/Gemfile.lock

@ -1,263 +0,0 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.3.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.7)
dnsruby (1.61.4)
simpleidn (~> 0.1)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
ethon (0.12.0)
ffi (>= 1.3.0)
eventmachine (1.2.7)
execjs (2.7.0)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
ffi (1.13.1)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (207)
github-pages-health-check (= 1.16.1)
jekyll (= 3.9.0)
jekyll-avatar (= 0.7.0)
jekyll-coffeescript (= 1.1.1)
jekyll-commonmark-ghpages (= 0.1.6)
jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.13.0)
jekyll-gist (= 1.5.0)
jekyll-github-metadata (= 2.13.0)
jekyll-mentions (= 1.5.1)
jekyll-optional-front-matter (= 0.3.2)
jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.3.0)
jekyll-redirect-from (= 0.15.0)
jekyll-relative-links (= 0.6.1)
jekyll-remote-theme (= 0.4.1)
jekyll-sass-converter (= 1.5.2)
jekyll-seo-tag (= 2.6.1)
jekyll-sitemap (= 1.4.0)
jekyll-swiss (= 1.0.0)
jekyll-theme-architect (= 0.1.1)
jekyll-theme-cayman (= 0.1.1)
jekyll-theme-dinky (= 0.1.1)
jekyll-theme-hacker (= 0.1.1)
jekyll-theme-leap-day (= 0.1.1)
jekyll-theme-merlot (= 0.1.1)
jekyll-theme-midnight (= 0.1.1)
jekyll-theme-minimal (= 0.1.1)
jekyll-theme-modernist (= 0.1.1)
jekyll-theme-primer (= 0.5.4)
jekyll-theme-slate (= 0.1.1)
jekyll-theme-tactile (= 0.1.1)
jekyll-theme-time-machine (= 0.1.1)
jekyll-titles-from-headings (= 0.5.3)
jemoji (= 0.11.1)
kramdown (= 2.3.1)
kramdown-parser-gfm (= 1.1.0)
liquid (= 4.0.3)
mercenary (~> 0.3)
minima (= 2.5.1)
nokogiri (>= 1.10.4, < 2.0)
rouge (= 3.19.0)
terminal-table (~> 1.4)
github-pages-health-check (1.16.1)
addressable (~> 2.3)
dnsruby (~> 1.60)
octokit (~> 4.0)
public_suffix (~> 3.0)
typhoeus (~> 1.3)
html-pipeline (2.14.0)
activesupport (>= 2)
nokogiri (>= 1.4)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.9.0)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (>= 1.17, < 3)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-avatar (0.7.0)
jekyll (>= 3.0, < 5.0)
jekyll-coffeescript (1.1.1)
coffee-script (~> 2.2)
coffee-script-source (~> 1.11.1)
jekyll-commonmark (1.3.1)
commonmarker (~> 0.14)
jekyll (>= 3.7, < 5.0)
jekyll-commonmark-ghpages (0.1.6)
commonmarker (~> 0.17.6)
jekyll-commonmark (~> 1.2)
rouge (>= 2.0, < 4.0)
jekyll-default-layout (0.1.4)
jekyll (~> 3.0)
jekyll-feed (0.13.0)
jekyll (>= 3.7, < 5.0)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-github-metadata (2.13.0)
jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0)
jekyll-mentions (1.5.1)
html-pipeline (~> 2.3)
jekyll (>= 3.7, < 5.0)
jekyll-optional-front-matter (0.3.2)
jekyll (>= 3.0, < 5.0)
jekyll-paginate (1.1.0)
jekyll-readme-index (0.3.0)
jekyll (>= 3.0, < 5.0)
jekyll-redirect-from (0.15.0)
jekyll (>= 3.3, < 5.0)
jekyll-relative-links (0.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-remote-theme (0.4.1)
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
rubyzip (>= 1.3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-swiss (1.0.0)
jekyll-theme-architect (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-cayman (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-dinky (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-hacker (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-leap-day (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-merlot (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-midnight (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-minimal (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-modernist (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-primer (0.5.4)
jekyll (> 3.5, < 5.0)
jekyll-github-metadata (~> 2.9)
jekyll-seo-tag (~> 2.0)
jekyll-theme-slate (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-tactile (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-theme-time-machine (0.1.1)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.0)
jekyll-titles-from-headings (0.5.3)
jekyll (>= 3.3, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
jemoji (0.11.1)
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (2.3.1)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.2.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
mini_portile2 (2.5.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.14.1)
multipart-post (2.1.1)
nokogiri (1.11.0)
mini_portile2 (~> 2.5.0)
racc (~> 1.4)
octokit (4.18.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.1.1)
racc (1.5.2)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.19.0)
ruby-enum (0.8.0)
i18n
rubyzip (2.3.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
simpleidn (0.1.1)
unf (~> 0.1.4)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.7)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (1.7.0)
zeitwerk (2.4.0)
PLATFORMS
ruby
DEPENDENCIES
github-pages
jekyll (>= 3.7)
kramdown (>= 2.3.1)
nokogiri (< 1.11.1)
BUNDLED WITH
2.0.2

63
docs/_config.yml

@ -1,63 +0,0 @@
repository: florianboergel/drcstools
output: web
topnav_title: drcstools
site_title: drcstools
company_name: Florian Boergel
description: Tools for climate analysis
# Set to false to disable KaTeX math
use_math: true
# Add Google analytics id if you have one and want to use it here
google_analytics:
# See http://nbdev.fast.ai/search for help with adding Search
google_search:
host: 127.0.0.1
# the preview server used. Leave as is.
port: 4000
# the port where the preview is rendered.
exclude:
- .idea/
- .gitignore
- vendor
exclude: [vendor]
highlighter: rouge
markdown: kramdown
kramdown:
input: GFM
auto_ids: true
hard_wrap: false
syntax_highlighter: rouge
collections:
tooltips:
output: false
defaults:
-
scope:
path: ""
type: "pages"
values:
layout: "page"
comments: true
search: true
sidebar: home_sidebar
topnav: topnav
-
scope:
path: ""
type: "tooltips"
values:
layout: "page"
comments: true
search: true
tooltip: true
sidebars:
- home_sidebar
theme: jekyll-theme-cayman
baseurl: /drcstools/

15
docs/_data/alerts.yml

@ -1,15 +0,0 @@
tip: '<div class="alert alert-success" role="alert"><i class="fa fa-check-square-o"></i> <b>Tip: </b>'
note: '<div class="alert alert-info" role="alert"><i class="fa fa-info-circle"></i> <b>Note: </b>'
important: '<div class="alert alert-warning" role="alert"><i class="fa fa-warning"></i> <b>Important: </b>'
warning: '<div class="alert alert-danger" role="alert"><i class="fa fa-exclamation-circle"></i> <b>Warning: </b>'
end: '</div>'
callout_danger: '<div class="bs-callout bs-callout-danger">'
callout_default: '<div class="bs-callout bs-callout-default">'
callout_primary: '<div class="bs-callout bs-callout-primary">'
callout_success: '<div class="bs-callout bs-callout-success">'
callout_info: '<div class="bs-callout bs-callout-info">'
callout_warning: '<div class="bs-callout bs-callout-warning">'
hr_faded: '<hr class="faded"/>'
hr_shaded: '<hr class="shaded"/>'

1
docs/_data/definitions.yml

@ -1 +0,0 @@

1
docs/_data/glossary.yml

@ -1 +0,0 @@

45
docs/_data/sidebars/home_sidebar.yml

@ -1,45 +0,0 @@
#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# Instead edit ../../sidebar.json
entries:
- folders:
- folderitems:
- output: web,pdf
title: Overview
url: /
- output: web,pdf
title: Derivatives
url: derivatives.html
- output: web,pdf
title: stats
url: stats.html
- output: web,pdf
title: helper_functions
url: helper_functions.html
- output: web,pdf
title: read_data
url: read_data.html
- output: web,pdf
title: Ergom
url: ergom.html
- output: web,pdf
title: 'Low-frequency component analysis '
url: lfca.html
- output: web,pdf
title: Filter
url: lanczos_filter.html
- output: web,pdf
title: MOM preprocessing OBC
url: mom_preprocessing_obc.html
- output: web,pdf
title: MOM preprocessing mergtime
url: mom_preprocessing_mergetime.html
- output: web,pdf
title: MOM validation
url: mom_validation.html
output: web
title: drcstools
output: web
title: Sidebar

3
docs/_data/tags.yml

@ -1,3 +0,0 @@
allowed-tags:
- getting_started
- navigation

0
docs/_data/terms.yml

10
docs/_data/topnav.yml

@ -1,10 +0,0 @@
topnav:
- title: Topnav
items:
- title: github
external_url: https://github.com/florianboergel/drcstools/tree/master/
#Topnav dropdowns
topnav_dropdowns:
- title: Topnav dropdowns
folders:

15
docs/_includes/archive.html

@ -1,15 +0,0 @@
---
layout: default
type: archive
---
<div class="post-header">
<h1 class="post-title-main">{{ page.title }}</h1>
</div>
<div class="post-content">
{{ content }}
</div>

1
docs/_includes/callout.html

@ -1 +0,0 @@
<div markdown="span" class="bs-callout bs-callout-{{include.type}}">{{include.content}}</div>

9
docs/_includes/footer.html

@ -1,9 +0,0 @@
<footer>
<div class="row">
<div class="col-lg-12 footer">
<p><img src="{{ "images/company_logo.png" | relative_url }}" alt="Company logo"/></p>
&copy;{{ site.time | date: "%Y" }} {{site.company_name}}. All rights reserved. <br />
{% if page.last_updated %}<span>Page last updated:</span> {{page.last_updated}}<br/>{% endif %} Site last generated: {{ site.time | date: "%b %-d, %Y" }} <br />
</div>
</div>
</footer>

6
docs/_includes/google_analytics.html

@ -1,6 +0,0 @@
<!-- the google_analytics_id gets auto inserted from the config file -->
{% if site.google_analytics %}
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','{{site.google_analytics}}','auto');ga('require','displayfeatures');ga('send','pageview');</script>
{% endif %}

83
docs/_includes/head.html

@ -1,83 +0,0 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{% if page.summary %}{{ page.summary | strip_html | strip_newlines | truncate: 160 }}{% endif %}">
<meta name="keywords" content="{{page.tags}}{% if page.tags %}, {% endif %} {{page.keywords}}">
<title>{{ page.title }} | {{ site.site_title }}</title>
<link rel="stylesheet" href="{{ "css/syntax.css" | relative_url }}">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!--<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">-->
<link rel="stylesheet" href="{{ "css/modern-business.css" | relative_url }}">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="{{ "css/customstyles.css" | relative_url }}">
<link rel="stylesheet" href="{{ "css/boxshadowproperties.css" | relative_url }}">
<!-- most color styles are extracted out to here -->
<link rel="stylesheet" href="{{ "css/theme-blue.css" | relative_url }}">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="{{ "js/jquery.navgoco.min.js" | relative_url }}"></script>
{% if site.use_math %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement( document.body, {
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "[%", right: "%]", display: true},
{left: "$", right: "$", display: false}
]}
);
});
</script>
{% endif %}
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Anchor.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/2.0.0/anchor.min.js"></script>
<script src="{{ "js/toc.js" | relative_url }}"></script>
<script src="{{ "js/customscripts.js" | relative_url }}"></script>
<link rel="shortcut icon" href="{{ "images/favicon.ico?" | relative_url }}">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "feed.xml" | relative_url | prepend: site.url }}">
<!-- Twitter cards -->
{% if site.twitter_username %}
<meta name="twitter:site" content="@{{ site.twitter_username }}">
<meta name="twitter:creator" content="@{{ site.twitter_username }}">
<meta name="twitter:title" content="{{ page.title }}">
{% endif %}
{% if page.summary %}
<meta name="twitter:description" content="{{ page.summary }}">
{% else %}
<meta name="twitter:description" content="{{ site.description }}">
{% endif %}
{% if page.image %}
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="{{ site.url }}/{{ page.image }}">
{% else %}
<!-- <meta name="twitter:card" content="summary"> -->
<!-- <meta name="twitter:image" content="{{ site.title_image }}"> -->
{% endif %}
<!-- end of Twitter cards -->

28
docs/_includes/head_print.html

@ -1,28 +0,0 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{% if page.summary %}{{ page.summary | strip_html | strip_newlines | truncate: 160 }}{% endif %}">
<meta name="keywords" content="{{page.tags}}{% if page.tags %}, {% endif %} {{page.keywords}}">
<title>{% if page.homepage == true %} {{site.homepage_title}} {% elsif page.title %}{{ page.title }}{% endif %} | {{ site.site_title }}</title>
<link rel="stylesheet" href="{{ "css/syntax.css" | relative_url | prepend: site.url }}">
<link rel="stylesheet" href="{{ "css/font-awesome.min.css" | relative_url | prepend: site.url }}">
<link rel="stylesheet" href="{{ "css/bootstrap.min.css" | relative_url | prepend: site.url }}">
<link rel="stylesheet" href="{{ "css/modern-business.css" | relative_url | prepend: site.url }}">
<link rel="stylesheet" href="{{ "css/customstyles.css" | relative_url | prepend: site.url }}">
<link rel="stylesheet" href="{{ "css/theme-blue.css" | relative_url | prepend: site.url }}">
<link rel="stylesheet" href="{{ "css/syntax.css" | relative_url | prepend: site.url }}">
<link rel="stylesheet" href="{{ "css/printstyles.css" | relative_url }}">
<script>
Prince.addScriptFunc("datestamp", function() {
return "PDF last generated: {{ site.time | date: '%B %d, %Y' }}";
});
</script>
<script>
Prince.addScriptFunc("guideName", function() {
return "{{site.print_title}} User Guide";
});
</script>

1
docs/_includes/image.html

@ -1 +0,0 @@
<figure>{% if {{include.url}} %}<a class="no_icon" target="_blank" href="{{include.url}}">{% endif %}<img class="docimage" src="{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />{% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %}<figcaption>{{include.caption}}</figcaption>{% endif %}</figure>

1
docs/_includes/important.html

@ -1 +0,0 @@
<div markdown="span" class="alert alert-warning" role="alert"><i class="fa fa-warning"></i> <b>Important:</b> {{include.content}}</div>

130
docs/_includes/initialize_shuffle.html

@ -1,130 +0,0 @@
<script type="text/javascript">
$(document).ready(function() {
$('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });
});
</script>
<!-- shuffle -->
<script>
var shuffleme = (function( $ ) {
'use strict';
var $grid = $('#grid'),
$filterOptions = $('.filter-options'),
$sizer = $grid.find('.shuffle_sizer'),
init = function() {
// None of these need to be executed synchronously
setTimeout(function() {
listen();
setupFilters();
}, 100);
// instantiate the plugin
$grid.shuffle({
itemSelector: '[class*="col-"]',
sizer: $sizer
});
},
// Set up button clicks
setupFilters = function() {
var $btns = $filterOptions.children();
$btns.on('click', function() {
var $this = $(this),
isActive = $this.hasClass( 'active' ),
group = isActive ? 'all' : $this.data('group');
// Hide current label, show current label in title
if ( !isActive ) {
$('.filter-options .active').removeClass('active');
}
$this.toggleClass('active');
// Filter elements
$grid.shuffle( 'shuffle', group );
});
$btns = null;
},
// Re layout shuffle when images load. This is only needed
// below 768 pixels because the .picture-item height is auto and therefore
// the height of the picture-item is dependent on the image
// I recommend using imagesloaded to determine when an image is loaded
// but that doesn't support IE7
listen = function() {
var debouncedLayout = $.throttle( 300, function() {
$grid.shuffle('update');
});
// Get all images inside shuffle
$grid.find('img').each(function() {
var proxyImage;
// Image already loaded
if ( this.complete && this.naturalWidth !== undefined ) {
return;
}
// If none of the checks above matched, simulate loading on detached element.
proxyImage = new Image();
$( proxyImage ).on('load', function() {
$(this).off('load');
debouncedLayout();
});
proxyImage.src = this.src;
});
// Because this method doesn't seem to be perfect.
setTimeout(function() {
debouncedLayout();
}, 500);
};
return {
init: init
};
}( jQuery ));
$(document).ready(function() {
shuffleme.init();
});
</script>
<!-- new attempt-->
<script>
$(document).ready(function() {
/* initialize shuffle plugin */
var $grid = $('#grid');
$grid.shuffle({
itemSelector: '.item' // the selector for the items in the grid
});
});</script>
<script>
$('#filter a').click(function (e) {
e.preventDefault();
// set active class
$('#filter a').removeClass('active');
$(this).addClass('active');
// get group name from clicked item
var groupName = $(this).attr('data-group');
// reshuffle grid
$grid.shuffle('shuffle', groupName );
});</script>

1
docs/_includes/inline_image.html

@ -1 +0,0 @@
<img class="inline" src="images/{{include.file}}" alt="{{include.alt}}" />

44
docs/_includes/links.html

@ -1,44 +0,0 @@
{% comment %}Get links from each sidebar, as listed in the _config.yml file under sidebars{% endcomment %}
{% for sidebar in site.sidebars %}
{% for entry in site.data.sidebars[sidebar].entries %}
{% for folder in entry.folders %}
{% for folderitem in folder.folderitems %}
{% if folderitem.url contains "html#" %}
[{{folderitem.url | remove: "/" }}]: {{folderitem.url | remove: "/"}}
{% else %}
[{{folderitem.url | remove: "/" | remove: ".html"}}]: {{folderitem.url | remove: "/"}}
{% endif %}
{% for subfolders in folderitem.subfolders %}
{% for subfolderitem in subfolders.subfolderitems %}
[{{subfolderitem.url | remove: "/" | remove: ".html"}}]: {{subfolderitem.url | remove: "/"}}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
{% comment %} Get links from topnav {% endcomment %}
{% for entry in site.data.topnav.topnav %}