Worldmap
# Worldmap Worldmap is a brane package for creating maps of the world using Geopandas. Each country can be given a value representing a color in the red, yellow and green range. ## Installation If on Linux or MacOS first run: ``` chmod +x run.py ``` Otherwise/then: ```console brane build container.y...
Main Author: | |
---|---|
Other Authors: | , , |
Format: | Other/Unknown Material |
Language: | English |
Published: |
Zenodo
2021
|
Subjects: | |
Online Access: | https://doi.org/10.5281/zenodo.4818229 |
id |
ftzenodo:oai:zenodo.org:4818229 |
---|---|
record_format |
openpolar |
spelling |
ftzenodo:oai:zenodo.org:4818229 2024-09-15T17:44:10+00:00 Worldmap Lucas de Geus Kalle Janssen Krijn Doekemeijer Tim Pelle 2021-05-24 https://doi.org/10.5281/zenodo.4818229 eng eng Zenodo https://doi.org/10.5281/zenodo.4783283 https://doi.org/10.5281/zenodo.4818229 oai:zenodo.org:4818229 info:eu-repo/semantics/openAccess Creative Commons Attribution 4.0 International https://creativecommons.org/licenses/by/4.0/legalcode Brane Geopandas Worldmap info:eu-repo/semantics/other 2021 ftzenodo https://doi.org/10.5281/zenodo.481822910.5281/zenodo.4783283 2024-07-26T21:59:27Z # Worldmap Worldmap is a brane package for creating maps of the world using Geopandas. Each country can be given a value representing a color in the red, yellow and green range. ## Installation If on Linux or MacOS first run: ``` chmod +x run.py ``` Otherwise/then: ```console brane build container.yml brane push worldmap 1.0.0 ``` Or install using the brane import function: ```console brane import lucasdegeus/braneWorldmap --kind ecu ``` ## Usage Input parameters are: * countries: an array of country names * values: an array of values corresponding with the countries * legend_name: name below the color bar * path: path to save file ```brane import worldmap; let countries := ["Canada", "United States of America"]; let values := [100.0, -50]; let legend_name := "Sentiment"; let path := "/data/wordmap.png"; create_map(values, countries, legend_name, path); ``` ## Notes Countries and values are matched using their index. Lowest value in the array is represented using the color red, highest value by green and missing countries by grey. These values can be positive, negative, floats or integers. Countries should be provided with names according to this list: ['Fiji', 'Tanzania', 'W. Sahara', 'Canada', 'United States of America', 'Kazakhstan', 'Uzbekistan', 'Papua New Guinea', 'Indonesia', 'Argentina', 'Chile', 'Dem. Rep. Congo', 'Somalia', 'Kenya', 'Sudan', 'Chad', 'Haiti', 'Dominican Rep.', 'Russia', 'Bahamas', 'Falkland Is.', 'Norway', 'Greenland', 'Fr. S. Antarctic Lands', 'Timor-Leste', 'South Africa', 'Lesotho', 'Mexico', 'Uruguay', 'Brazil', 'Bolivia', 'Peru', 'Colombia', 'Panama', 'Costa Rica', 'Nicaragua', 'Honduras', 'El Salvador', 'Guatemala', 'Belize', 'Venezuela', 'Guyana', 'Suriname', 'France', 'Ecuador', 'Puerto Rico', 'Jamaica', 'Cuba', 'Zimbabwe', 'Botswana', 'Namibia', 'Senegal', 'Mali', 'Mauritania', 'Benin', 'Niger', 'Nigeria', 'Cameroon', 'Togo', 'Ghana', "Côte d'Ivoire", 'Guinea', 'Guinea-Bissau', 'Liberia', 'Sierra Leone', 'Burkina Faso', 'Central African Rep.', 'Congo', 'Gabon', 'Eq. Guinea', ... Other/Unknown Material Antarc* Antarctic Greenland Zenodo |
institution |
Open Polar |
collection |
Zenodo |
op_collection_id |
ftzenodo |
language |
English |
topic |
Brane Geopandas Worldmap |
spellingShingle |
Brane Geopandas Worldmap Lucas de Geus Worldmap |
topic_facet |
Brane Geopandas Worldmap |
description |
# Worldmap Worldmap is a brane package for creating maps of the world using Geopandas. Each country can be given a value representing a color in the red, yellow and green range. ## Installation If on Linux or MacOS first run: ``` chmod +x run.py ``` Otherwise/then: ```console brane build container.yml brane push worldmap 1.0.0 ``` Or install using the brane import function: ```console brane import lucasdegeus/braneWorldmap --kind ecu ``` ## Usage Input parameters are: * countries: an array of country names * values: an array of values corresponding with the countries * legend_name: name below the color bar * path: path to save file ```brane import worldmap; let countries := ["Canada", "United States of America"]; let values := [100.0, -50]; let legend_name := "Sentiment"; let path := "/data/wordmap.png"; create_map(values, countries, legend_name, path); ``` ## Notes Countries and values are matched using their index. Lowest value in the array is represented using the color red, highest value by green and missing countries by grey. These values can be positive, negative, floats or integers. Countries should be provided with names according to this list: ['Fiji', 'Tanzania', 'W. Sahara', 'Canada', 'United States of America', 'Kazakhstan', 'Uzbekistan', 'Papua New Guinea', 'Indonesia', 'Argentina', 'Chile', 'Dem. Rep. Congo', 'Somalia', 'Kenya', 'Sudan', 'Chad', 'Haiti', 'Dominican Rep.', 'Russia', 'Bahamas', 'Falkland Is.', 'Norway', 'Greenland', 'Fr. S. Antarctic Lands', 'Timor-Leste', 'South Africa', 'Lesotho', 'Mexico', 'Uruguay', 'Brazil', 'Bolivia', 'Peru', 'Colombia', 'Panama', 'Costa Rica', 'Nicaragua', 'Honduras', 'El Salvador', 'Guatemala', 'Belize', 'Venezuela', 'Guyana', 'Suriname', 'France', 'Ecuador', 'Puerto Rico', 'Jamaica', 'Cuba', 'Zimbabwe', 'Botswana', 'Namibia', 'Senegal', 'Mali', 'Mauritania', 'Benin', 'Niger', 'Nigeria', 'Cameroon', 'Togo', 'Ghana', "Côte d'Ivoire", 'Guinea', 'Guinea-Bissau', 'Liberia', 'Sierra Leone', 'Burkina Faso', 'Central African Rep.', 'Congo', 'Gabon', 'Eq. Guinea', ... |
author2 |
Kalle Janssen Krijn Doekemeijer Tim Pelle |
format |
Other/Unknown Material |
author |
Lucas de Geus |
author_facet |
Lucas de Geus |
author_sort |
Lucas de Geus |
title |
Worldmap |
title_short |
Worldmap |
title_full |
Worldmap |
title_fullStr |
Worldmap |
title_full_unstemmed |
Worldmap |
title_sort |
worldmap |
publisher |
Zenodo |
publishDate |
2021 |
url |
https://doi.org/10.5281/zenodo.4818229 |
genre |
Antarc* Antarctic Greenland |
genre_facet |
Antarc* Antarctic Greenland |
op_relation |
https://doi.org/10.5281/zenodo.4783283 https://doi.org/10.5281/zenodo.4818229 oai:zenodo.org:4818229 |
op_rights |
info:eu-repo/semantics/openAccess Creative Commons Attribution 4.0 International https://creativecommons.org/licenses/by/4.0/legalcode |
op_doi |
https://doi.org/10.5281/zenodo.481822910.5281/zenodo.4783283 |
_version_ |
1810491544412618752 |