Skip to content

Commit

Permalink
Fixing errors in M1.10 and F1.4, add reproducible code
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfep committed Jul 20, 2024
1 parent 20f30ab commit 9affc2e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion map-info/F1_4_valid.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ execute:
---

{{< include _valid_map_info.qmd >}}
{{< include _valid_maps_database.qmd >}}
{{< include _valid_maps_database.qmd >}}
1 change: 0 additions & 1 deletion map-info/M1_10_valid.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ execute:
---

{{< include _valid_map_info.qmd >}}

{{< include _valid_maps_database.qmd >}}
2 changes: 2 additions & 0 deletions map-info/T1_3_valid.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ execute:

{{< include _valid_map_info.qmd >}}
{{< include _valid_maps_database.qmd >}}

<script src="https://gist.github.com/jrfep/0ec53645edaf7c14de7b847e2856e353.js"></script>
24 changes: 24 additions & 0 deletions map-info/_valid_maps_database.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,30 @@ for (j in seq(along = maps_available$map_code)) {

Note that you need to login to some services like [mapbox](https://www.mapbox.com){target="links"} or [earthengine](https://earthengine.google.com){target="links"}, and in some cases you also need to request access to the files.

### Reproducible code

```{r}
#| results: asis
#| eval: true
mscripts <- maps_available |>
inner_join(map_files, by = c("map_code", "map_version")) |>
filter(grepl("gist.github", map_script))
if (nrow(mscripts)>0) {
cat("Code to reproduce the maps from the source datasets is available in following gist:\n\n")
mscripts <- mscripts |>
mutate(link = sprintf(":::{.}\n<script src=\"%s.js\"></script>\n:::",
map_script)) |>
distinct(link) |>
pull()
for (mscript in mscripts) {
cat(mscript)
}
} else {
cat("Code to reproduce the maps from the source datasets is not available at the moment.")
}
```

### License information

Indicative maps have been released with a ![](https://zenodo.org/static/icons/licenses/cc-by-icon.svg){height=20} Creative Commons Attribution 4.0 International license.
Expand Down
9 changes: 9 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
/* css styles */

/* https://github.com/lonekorean/gist-syntax-themes */
@import url('https://cdn.rawgit.com/lonekorean/gist-syntax-themes/d49b91b3/stylesheets/solarized-dark.css');

@import url('https://fonts.googleapis.com/css?family=Open+Sans');
body {
margin: 20px;
font: 16px 'Open Sans', sans-serif;
}

0 comments on commit 9affc2e

Please sign in to comment.