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

Add CITATION.cff and update README #36

Merged
merged 6 commits into from
Sep 4, 2024
Merged
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
27 changes: 27 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: pysquirrel
message: >-
If you use this package please cite the doi
corresponding to the release used
type: software
authors:
- given-names: David
family-names: Almeida
email: [email protected]
affiliation: >-
International Institute for Applied Systems Analysis (IIASA)
orcid: 'https://orcid.org/0009-0000-5458-7917'
- given-names: Daniel
family-names: Huppmann
affiliation: >-
International Institute for Applied Systems Analysis (IIASA)
orcid: 'https://orcid.org/0000-0002-7729-7389'
- given-names: Philip
family-names: Hackstock
affiliation: >-
International Institute for Applied Systems Analysis (IIASA)
orcid: 'https://orcid.org/0000-0002-1482-1366'
license: MIT
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,18 @@ parameters and the values to search as shown below:

>>> pysquirrel.nuts.get(country_code="AT") # gets all regions in Austria

>>> pysquirrel.nuts.get(code="PT191") # gets the PT191 region

>>> pysquirrel.nuts.get(label="Drenthe") # gets the Drenthe region

>>> pysquirrel.nuts.get(level=3) # gets all NUTS3 regions

>>> pysquirrel.nuts.get(parent_code="DE2") # gets all regions whose parent region is DE2
>>> pysquirrel.nuts.get(country_code="AT", level=3) # gets all NUTS3 regions in Austria
```

Each Region object consists of five attributes:
- a NUTS code (e.g.: AT127)
- a country code
- a label (the full region name)
- a NUTS level (1, 2 or 3)
- a parent code (corresponding to the NUTS parent region)

## Eurostat copyright notice on NUTS region data file

This package imports the NUTS spreadsheet from the Eurostat website.
Expand Down