Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local data guidelines #56

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions instructors/2-vector-slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for syntax highlighting */
Expand Down Expand Up @@ -107,11 +107,11 @@

.callout {
margin-top: 1em;
margin-bottom: 1em;
margin-bottom: 1em;
border-radius: .25rem;
}

.callout.callout-style-simple {
.callout.callout-style-simple {
padding: 0em 0.5em;
border-left: solid #acacac .3rem;
border-right: solid 1px silver;
Expand Down Expand Up @@ -162,7 +162,7 @@
margin-top: 0.5em;
margin-bottom: 0.5em;
}

.callout.callout-titled.callout-style-simple .callout-content p {
margin-top: 0;
}
Expand Down Expand Up @@ -213,7 +213,7 @@
.callout-title {
display: flex
}

.callout-icon::before {
margin-top: 1rem;
padding-right: .5rem;
Expand Down Expand Up @@ -326,12 +326,12 @@
}
.reveal .footnotes ol {
counter-reset: ol;
list-style-type: none;
list-style-type: none;
margin-left: 0;
}
.reveal .footnotes ol li:before {
counter-increment: ol;
content: counter(ol) ". ";
content: counter(ol) ". ";
}
.reveal .footnotes ol li > p:first-child {
display: inline-block;
Expand Down Expand Up @@ -373,19 +373,19 @@
.reveal .slide > img.r-stretch.quarto-figure-center {
display: block;
margin-left: auto;
margin-right: auto;
margin-right: auto;
}
.reveal .slide > img.stretch.quarto-figure-left,
.reveal .slide > img.r-stretch.quarto-figure-left {
display: block;
margin-left: 0;
margin-right: auto;
margin-right: auto;
}
.reveal .slide > img.stretch.quarto-figure-right,
.reveal .slide > img.r-stretch.quarto-figure-right {
display: block;
margin-left: auto;
margin-right: 0;
margin-right: 0;
}
</style>
<link href="2-vector-slides_files/libs/countdown-0.4.0/countdown.css" rel="stylesheet">
Expand All @@ -401,12 +401,12 @@ <h1 class="title">Introduction to Geospatial Vector Data with R</h1>
<div class="quarto-title-authors">
<div class="quarto-title-author">
<div class="quarto-title-author-name">
Ana Petrović
Ana Petrović
</div>
</div>
<div class="quarto-title-author">
<div class="quarto-title-author-name">
Claudiu Forgaci
Claudiu Forgaci
</div>
</div>
</div>
Expand Down Expand Up @@ -940,7 +940,7 @@ <h2>Challenge 8: <strong>3 mins</strong></h2>
<script src="2-vector-slides_files/libs/revealjs/plugin/reveal-menu/quarto-menu.js"></script>
<script src="2-vector-slides_files/libs/revealjs/plugin/reveal-chalkboard/plugin.js"></script>
<script src="2-vector-slides_files/libs/revealjs/plugin/quarto-support/support.js"></script>


<script src="2-vector-slides_files/libs/revealjs/plugin/notes/notes.js"></script>
<script src="2-vector-slides_files/libs/revealjs/plugin/search/search.js"></script>
Expand All @@ -962,7 +962,7 @@ <h2>Challenge 8: <strong>3 mins</strong></h2>
'menu': {"side":"left","useTextContentForMissingTitles":true,"markers":false,"loadIcons":false,"custom":[{"title":"Tools","icon":"<i class=\"fas fa-gear\"></i>","content":"<ul class=\"slide-menu-items\">\n<li class=\"slide-tool-item active\" data-item=\"0\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.fullscreen(event)\"><kbd>f</kbd> Fullscreen</a></li>\n<li class=\"slide-tool-item\" data-item=\"1\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.speakerMode(event)\"><kbd>s</kbd> Speaker View</a></li>\n<li class=\"slide-tool-item\" data-item=\"2\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.overview(event)\"><kbd>o</kbd> Slide Overview</a></li>\n<li class=\"slide-tool-item\" data-item=\"3\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.togglePdfExport(event)\"><kbd>e</kbd> PDF Export Mode</a></li>\n<li class=\"slide-tool-item\" data-item=\"4\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.toggleChalkboard(event)\"><kbd>b</kbd> Toggle Chalkboard</a></li>\n<li class=\"slide-tool-item\" data-item=\"5\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.toggleNotesCanvas(event)\"><kbd>c</kbd> Toggle Notes Canvas</a></li>\n<li class=\"slide-tool-item\" data-item=\"6\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.downloadDrawings(event)\"><kbd>d</kbd> Download Drawings</a></li>\n<li class=\"slide-tool-item\" data-item=\"7\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.keyboardHelp(event)\"><kbd>?</kbd> Keyboard Help</a></li>\n</ul>"}],"openButton":true},
'chalkboard': {"buttons":true},
'smaller': false,

// Display controls in the bottom right corner
controls: false,

Expand Down Expand Up @@ -1140,7 +1140,7 @@ <h2>Challenge 8: <strong>3 mins</strong></h2>
]
});
</script>

<script>
// htmlwidgets need to know to resize themselves when slides are shown/hidden.
// Fire the "slideenter" event (handled by htmlwidgets.js) when the current
Expand Down Expand Up @@ -1197,14 +1197,14 @@ <h2>Challenge 8: <strong>3 mins</strong></h2>
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
toggleBodyColorPrimary();
const tabsets = window.document.querySelectorAll(".panel-tabset-tabby")
tabsets.forEach(function(tabset) {
const tabby = new Tabby('#' + tabset.id);
});
const isCodeAnnotation = (el) => {
for (const clz of el.classList) {
if (clz.startsWith('code-annotation-')) {
if (clz.startsWith('code-annotation-')) {
return true;
}
}
Expand Down Expand Up @@ -1235,11 +1235,11 @@ <h2>Challenge 8: <strong>3 mins</strong></h2>
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
button.setAttribute("data-bs-title", "Copied!");
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
Expand Down Expand Up @@ -1279,7 +1279,7 @@ <h2>Challenge 8: <strong>3 mins</strong></h2>
}
config['offset'] = [0,0];
config['maxWidth'] = 700;
window.tippy(el, config);
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
Expand Down Expand Up @@ -1332,6 +1332,6 @@ <h2>Challenge 8: <strong>3 mins</strong></h2>
}
});
</script>


</body></html>

</body></html>
8 changes: 5 additions & 3 deletions instructors/local-data-guidelines.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ <h1 class="title">Guidelines for local workshop data</h1>

</header>

<section id="heading-1" class="level1">
<h1>Heading 1</h1>
<p>text</p>
<section id="using-alternative-datasets-for-other-countries" class="level2">
<h2 class="anchored" data-anchor-id="using-alternative-datasets-for-other-countries">Using alternative datasets for other countries</h2>
<p>For the parts of the workshop using OpenStreetMap data, you can use data for other countries from the same source, but keep in mind that the OpenStreetMap data is not the same for all countries. If the variables listed above are not available for your country, you can use other variables from the OpenStreetMap if they fit in the lesson plan. Or you may find the same variables as in the Dutch OpenStreetMap data, but from another source available in your country. In any case, please make sure that the types of the variables are the same and that the missing values are coded in the same way.</p>
<p>For Part 1, using the data from the Statistics Netherlands, you can search for alternative sources from your country, such as the national statistics office or other governmental institutions. Possibly, data from your own or your colleagues’ research can be used.</p>
<p>After choosing and adjusting your alternative dataset, and before running the workshop, data needs to be tested. Please follow the lesson plan to see if you can execute all the commands. Also, pay attention that the results you get fit within the programme of the lesson – that you can continue with the next steps without disruption.</p>
</section>

</main>
Expand Down
56 changes: 53 additions & 3 deletions instructors/local-data-guidelines.qmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,58 @@
---
title: Guidelines for local workshop data
title: Guidelines for local workshop data: Metadata and instructions for using alternative datasets
output: html
---

## Heading 1
text
For the Geospatial Data Carpentry for Urbanism (GDCU) workshop you can use either the provided datasets for the Netherlands or other data, for example equivalent or similar data for your own country. This document describes the provided data, including the variable names and properties, and the data sources. This can help you to find alternative data for other countries and, if needed, to adjust them to the lessons thought in this workshop. The text of the lessons mentions Dutch data, but this can also be adjusted easily.

Provided data comes mainly from the OpenStreetMap, except one dataset which comes from the Statistics Netherlands (CBS). Each part of the workshop uses a different dataset, namely:

• Part 1: Dutch municipalities

• Part 2: Municipality of Delft

• Part 3: Part of the municipality of Delft

• Part 4: Municipality of Brielle

Table 1 summarises the main properties of all the datasets from the Netherlands.

| Dataset | List of variables | Source | Size |
|---------|-------------------|--------|------|
| | | | |
| | | | |
| | | | |
| | | | |

Table 1: Summary of the provided datasets

For each of the datasets, Table 2 summarises the main properties of the variables, including the coding of missing values.

| Dataset | Variable name | Variable type | Missing values |
|---------|---------------|---------------|----------------|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |

Table 2: Main properties of the variables

## Using alternative datasets for other countries

For the parts of the workshop using OpenStreetMap data, you can use data for other countries from the same source, but keep in mind that availability of the OpenStreetMap data is not the same worldwide. If a specific variable listed above is not available for your country, you can use another variable from the OpenStreetMap as long as it fits in the lesson plan. While the availability of the OpenStreetMap data is not the same worldwide, the structure of the data and variables is the same. You can therefore make use of this open data source and choose appropriate variables available locally. Or you may find the same variables as in the Dutch OpenStreetMap data, but from another source available in your country. In this case, please make sure that the types of the variables are the same and that the missing values are coded in the same way.

For Part 1, using the data from the Statistics Netherlands, you can search for alternative sources from your country, such as the national statistics office or other governmental institutions. Possibly, data from your own or your colleagues’ research can be used.

After choosing and adjusting your alternative dataset, and before running the workshop, data needs to be tested. Please follow the lesson plan to see if you can execute all the commands. Also, pay attention that the results you get fit within the programme of the lesson – that you can continue with the next steps without disruption.