Brane - Location Converter
# 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.4818215 |
id |
ftzenodo:oai:zenodo.org:4818215 |
---|---|
record_format |
openpolar |
spelling |
ftzenodo:oai:zenodo.org:4818215 2024-09-15T17:45:22+00:00 Brane - Location Converter Lucas de Geus Tim Pelle Krijn Doekemeijer Kalle Janssen 2021-05-25 https://doi.org/10.5281/zenodo.4818215 eng eng Zenodo https://doi.org/10.5281/zenodo.4791612 https://doi.org/10.5281/zenodo.4818215 oai:zenodo.org:4818215 info:eu-repo/semantics/openAccess Creative Commons Attribution 4.0 International https://creativecommons.org/licenses/by/4.0/legalcode Brane Location converter info:eu-repo/semantics/other 2021 ftzenodo https://doi.org/10.5281/zenodo.481821510.5281/zenodo.4791612 2024-07-27T01:24:09Z # 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 Location converter |
spellingShingle |
Brane Location converter Lucas de Geus Brane - Location Converter |
topic_facet |
Brane Location converter |
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 |
Tim Pelle Krijn Doekemeijer Kalle Janssen |
format |
Other/Unknown Material |
author |
Lucas de Geus |
author_facet |
Lucas de Geus |
author_sort |
Lucas de Geus |
title |
Brane - Location Converter |
title_short |
Brane - Location Converter |
title_full |
Brane - Location Converter |
title_fullStr |
Brane - Location Converter |
title_full_unstemmed |
Brane - Location Converter |
title_sort |
brane - location converter |
publisher |
Zenodo |
publishDate |
2021 |
url |
https://doi.org/10.5281/zenodo.4818215 |
genre |
Antarc* Antarctic Greenland |
genre_facet |
Antarc* Antarctic Greenland |
op_relation |
https://doi.org/10.5281/zenodo.4791612 https://doi.org/10.5281/zenodo.4818215 oai:zenodo.org:4818215 |
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.481821510.5281/zenodo.4791612 |
_version_ |
1810493149979607040 |