Skip to content

Commit

Permalink
Merge pull request #2 from inbo/2023_voorlopig
Browse files Browse the repository at this point in the history
2023 voorlopig
  • Loading branch information
ThierryO authored Nov 14, 2022
2 parents ad827cb + d200275 commit 8ebbf1e
Show file tree
Hide file tree
Showing 53 changed files with 2,471 additions and 641 deletions.
Empty file modified .github/CODE_OF_CONDUCT.md
100644 → 100755
Empty file.
39 changes: 39 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# CONTRIBUTING #

### Fixing typos

Small typos or grammatical errors in documentation may be edited directly using the GitHub web interface, so long as the changes are made in the _source_ file.
E.g. edit a roxygen2 comment in a `.R` file below `R/`, not in an `.Rd` file below `man/`.

### Prerequisites

Before you make a substantial pull request, you should always file an issue and make sure someone from the team agrees that it’s a problem.
If you’ve found a bug, create an associated issue and illustrate the bug with a minimal [reproducible example](https://www.tidyverse.org/help/#reprex).

### Pull request process

* We recommend that you create a Git branch for each pull request (PR).
* Look at the GitHub Actions build status before and after making changes.
The `README` should contain badges for any continuous integration services used by the package.
* We require the tidyverse [style guide](http://style.tidyverse.org).
You can use the [styler](https://CRAN.R-project.org/package=styler) package to apply these styles, but please don't restyle code that has nothing to do with your PR.
* We use [roxygen2](https://cran.r-project.org/package=roxygen2).
* We use [testthat](https://cran.r-project.org/package=testthat).
Contributions with test cases included are easier to accept.
* For user-facing changes, add a bullet to the top of `NEWS.md` below the current development version header describing the changes made followed by your GitHub username, and links to relevant issue(s)/PR(s).

### Code of Conduct

Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md).
By contributing to this project you agree to abide by its terms.

### Prefer to Email?

Email the person listed as maintainer in the `DESCRIPTION` file of this repo.

Though note that private discussions over email don't help others - of course
email is totally warranted if it's a sensitive problem of any kind.

### Thanks for contributing!

This contributing guide is adapted from the tidyverse contributing guide available at https://raw.githubusercontent.com/r-lib/usethis/master/inst/templates/tidy-contributing.md
15 changes: 0 additions & 15 deletions .github/workflows/check_source.yml

This file was deleted.

13 changes: 8 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
*.gpkg
*.gpkg-shm
*.gpkg-wal
*.html
*.json
*.pbf
*.zip
.DS_Store
.RData
.Rhistory
.Rproj.user
.Ruserdata
.httr-oauth
cover.txt
data/*
docs
open_ruimte/*
output/*
43 changes: 43 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"title": "Sampling frame for partridge (Perdrix perdrix) in Flanders",
"version": "2023.1",
"description": "<p>Since 2008, partridge hunting in Flanders has been subject to a\nnumber of conditions. The first condition states compliance with an\naverage density of at least 3 breeding pairs per 100 ha of open space.\nThe Research Institute for Nature and Forest (<a\nhref=\"https://www.vlaanderen.be/inbo/en\">INBO<\/a>) is responsible for\nthe calculation of these densities and advises the Agency for Nature and\nForests (<a href=\"https://www.natuurenbos.be/\">ANB<\/a>) on this.<\/p>\n<p>This repository contains the source code to generate the layer with\nopen space within <a\nhref=\"https://doi.org/10.5281/zenodo.5584203\">hunting grounds<\/a> in\nFlanders. The selection is based on relevant categories of the <a\nhref=\"https://openstreetmap.org\">OpenStreetMap<\/a> information.<\/p>\n<p>We aim to make the layer reproducible by making the code publicly\navailable under an open source license. The code itself requires only\nfreeware open source software (<a\nhref=\"https://www.r-project.org/\">R<\/a> and <a\nhref=\"https://qgis.org\">QGIS<\/a>). The OpenStreetMap database updates\ncontinuously. Rerunning the code on the current database might yield a\ndifferent layer. Therefore we also republish the <a\nhref=\"https://doi.org/10.5281/zenodo.5792948\">snapshot<\/a> of the\nOpenStreetMap data we used. When we need to update the open space layer,\nwe will add an updated snapshot as a new version. Having both the code\nand the data available under version control, allows to recreate both\nthe most recent version as any older version.<\/p>",
"keywords": [
"hunting",
"monitoring",
"habitat"
],
"upload_type": "software",
"license": "CC-BY-4.0",
"language": "eng",
"contributors": [
{
"name": "Onkelinx, Thierry",
"affiliation": "Research Institute for Nature and Forest (INBO)",
"orcid": "0000-0001-8804-4216",
"type": "ContactPerson"
},
{
"name": "Research Institute for Nature and Forest",
"type": "RightsHolder"
}
],
"creators": [
{
"name": "Onkelinx, Thierry",
"affiliation": "Research Institute for Nature and Forest (INBO)",
"orcid": "0000-0001-8804-4216"
},
{
"name": "Carmen, Raïsa",
"affiliation": "Research Institute for Nature and Forest (INBO)",
"orcid": "0000-0003-1025-8702"
}
],
"access_right": "open",
"communities": [
{
"identifier": "inbo"
}
]
}
46 changes: 46 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: Sampling frame for partridge (Perdrix perdrix) in Flanders
authors:
- given-names: Thierry
family-names: Onkelinx
affiliation: Research Institute for Nature and Forest (INBO)
orcid: 0000-0001-8804-4216
- given-names: Raïsa
family-names: Carmen
affiliation: Research Institute for Nature and Forest (INBO)
orcid: 0000-0003-1025-8702
keywords:
- hunting
- monitoring
- habitat
contact:
- given-names: Thierry
family-names: Onkelinx
affiliation: Research Institute for Nature and Forest (INBO)
orcid: 0000-0001-8804-4216
doi: 10.5281/zenodo.5814813
license: CC-BY-4.0
repository-code: https://github.com/inbo/patrijs-steekproefkader
type: software
abstract: |-
Since 2008, partridge hunting in Flanders has been subject to a number of conditions.
The first condition states compliance with an average density of at least 3 breeding pairs per 100 ha of open space.
The Research Institute for Nature and Forest ([INBO](https://www.vlaanderen.be/inbo/en)) is responsible for the calculation of these densities and advises the Agency for Nature and Forests ([ANB](https://www.natuurenbos.be/)) on this.
This repository contains the source code to generate the layer with open space within [hunting grounds](https://doi.org/10.5281/zenodo.5584203) in Flanders.
The selection is based on relevant categories of the [OpenStreetMap](https://openstreetmap.org) information.
We aim to make the layer reproducible by making the code publicly available under an open source license.
The code itself requires only freeware open source software ([R](https://www.r-project.org/) and [QGIS](https://qgis.org)).
The OpenStreetMap database updates continuously.
Rerunning the code on the current database might yield a different layer.
Therefore we also republish the [snapshot](https://doi.org/10.5281/zenodo.5792948) of the OpenStreetMap data we used.
When we need to update the open space layer, we will add an updated snapshot as a new version.
Having both the code and the data available under version control, allows to recreate both the most recent version as any older version.
identifiers:
- type: doi
value: 10.5281/zenodo.5814813
- type: url
value: https://inbo.github.io/patrijs-steekproefkader/
version: '2023.1'
Empty file modified LICENSE.md
100644 → 100755
Empty file.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
<!-- badges: start -->
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5814813.svg)](https://doi.org/10.5281/zenodo.5814813)
[![website](https://img.shields.io/badge/website-https%3A%2F%2Finbo.github.io%2Fpatrijs--steekproefkader%2F-c04384)](https://inbo.github.io/patrijs-steekproefkader/)
![GitHub](https://img.shields.io/github/license/inbo/patrijs-steekproefkader)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/inbo/patrijs-steekproefkader)
![GitHub Release Date](https://img.shields.io/github/release-date/inbo/patrijs-steekproefkader)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/inbo/patrijs-steekproefkader/check-source)
![GitHub repo size](https://img.shields.io/github/repo-size/inbo/patrijs-steekproefkader)
<!-- badges: end -->

# Sampling frame for partridge (_Perdrix perdrix_) in Flanders

[Onkelinx, Thierry![ORCID logo](https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png)](https://orcid.org/0000-0001-8804-4216)[^aut][^cre][^INBO];
[Carmen, Raïsa![ORCID logo](https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png)](https://orcid.org/0000-0003-1025-8702)[^aut][^INBO];
Research Institute for Nature and Forest[^cph][^fnd]

[^aut]: author
[^cre]: contact person
[^cph]: copyright holder
[^fnd]: funder
[^INBO]: Research Institute for Nature and Forest (INBO)

**keywords**: hunting; monitoring; habitat

<!-- version: 2023.01 -->
<!-- community: inbo -->

<!-- description: start -->
Since 2008, partridge hunting in Flanders has been subject to a number of conditions.
The first condition states compliance with an average density of at least 3 breeding pairs per 100 ha of open space.
The Research Institute for Nature and Forest ([INBO](https://www.vlaanderen.be/inbo/en)) is responsible for the calculation of these densities and advises the Agency for Nature and Forests ([ANB](https://www.natuurenbos.be/)) on this.
Expand All @@ -14,3 +40,37 @@ Rerunning the code on the current database might yield a different layer.
Therefore we also republish the [snapshot](https://doi.org/10.5281/zenodo.5792948) of the OpenStreetMap data we used.
When we need to update the open space layer, we will add an updated snapshot as a new version.
Having both the code and the data available under version control, allows to recreate both the most recent version as any older version.
<!-- description: end -->

## Available maps for field work

### Areal photograph as background

- **West-Flanders**: https://doi.org/10.5281/zenodo.5812597
- **East-Flanders**: https://doi.org/10.5281/zenodo.5814972
- **Antwerp**: https://doi.org/10.5281/zenodo.5815049
- **Limburg**: https://doi.org/10.5281/zenodo.5815083
- **Flemish Brabant**: https://doi.org/10.5281/zenodo.5815089

### OpenStreetMap as background

- **West-Flanders**: https://doi.org/10.5281/zenodo.5815407
- **East-Flanders**: https://doi.org/10.5281/zenodo.5815400
- **Antwerp**: https://doi.org/10.5281/zenodo.5815392
- **Limburg**: https://doi.org/10.5281/zenodo.5815379
- **Flemish Brabant**: https://doi.org/10.5281/zenodo.5815209

### Cartoweb as background

- **West-Flanders**: https://doi.org/10.5281/zenodo.5827428
- **East-Flanders**: https://doi.org/10.5281/zenodo.5831528
- **Antwerp**: https://doi.org/10.5281/zenodo.5827467
- **Limburg**: https://doi.org/10.5281/zenodo.5827491
- **Flemish Brabant**: https://doi.org/10.5281/zenodo.5827509

## Other maps

- **open area for partridge**: https://doi.org/10.5281/zenodo.5814833
- **sampling units**: https://doi.org/10.5281/zenodo.5814900
- **hunting grounds**: https://doi.org/10.5281/zenodo.5584203
- **OpenStreetMap snapshot**: https://doi.org/10.5281/zenodo.5792948
27 changes: 27 additions & 0 deletions checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,30 @@ package: no
allowed:
warnings: []
notes: []
required:
- CITATION
- checklist
- filename conventions
- license
- lintr
- spelling
spelling:
default: en-GB
ignore:
- .github
- LICENSE.md
- output
- renv
- source/create_map
other:
nl-BE:
- source/density/detectie.Rmd
- source/density/detectie2.Rmd
- source/rapport/01_inleiding.Rmd
- source/rapport/1_alternatief.Rmd
- source/rapport/2_relevant.Rmd
- source/rapport/3_telblok.Rmd
- source/rapport/4_map_roulette.Rmd
- source/rapport/5_reproduceerbaar.Rmd
- source/rapport/index.Rmd
- source/rapport/zzz_references_and_appendix.Rmd
7 changes: 7 additions & 0 deletions data/downloads/checksum.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
file,sha512
geofabrik_belgium-latest.osm.pbf,c97842519b455fe399a854361d363d6d656a66fb745b498a1535d8c7a44481ea194c6f2ee4344aeb93fb7c5dceb4a309a389d168d94c40ff42a715352f4ec46c
jacht.zip,e948916e507ce4b4b66b328e7ad8ae72f74304da141e01421119d16de5a84c4f3d96191b900ddf6641a05eddb88c9c80302ea49fc6cad8388f1e0891149a6f6a
jachtter.dbf,4038b72b47495333b83b36b8542b8e89f3b20d450bb5620032d2643d4d537b2840d8d67ec98e63ee4619ccc90b9a2aae4449aa1434a883b8e95fb38a61ce2c35
jachtter.prj,ee7b429567697bd7f4121c69aeb3d345a9176be5206f339b5902c755a567cdf78706326706ad682cd80fe167726cbfe9ecc12a746681bbeeada5226426d2aaf2
jachtter.shp,cfa4c161856d78ff1e76569438040de741a05b3bbc3c8673a724845c12b9c081667919cd8466d0394948ea7bd59f9df5cc118ea1cec7df308ef336cb3e44aeeb
jachtter.shx,de58c01fabd81f83337f0896fea3e9f4f9d4e9ac1b2aeb09d37a107331f66781da4eecb7153c40bb760711e9a8342f0eb02b432efcc2b7c35e69375d67737b00
4 changes: 2 additions & 2 deletions downloads/checksum.yml → data/downloads/checksum.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
..generic:
git2rdata: 0.3.1
git2rdata: 0.4.0
optimize: no
NA string: NA
sorting: file
hash: 4357f869729f2486f31b410815b8dbd8fa089baf
data_hash: 02b07829404960e4fd2d0696dc5c42ef0832fa52
data_hash: c13513f7b776d7fa1199faa6f621a24b0153fde2
file:
class: character
sha512:
Expand Down
65 changes: 0 additions & 65 deletions download.R

This file was deleted.

5 changes: 0 additions & 5 deletions downloads/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions downloads/checksum.tsv

This file was deleted.

28 changes: 0 additions & 28 deletions inst/WORDLIST

This file was deleted.

Loading

0 comments on commit 8ebbf1e

Please sign in to comment.