Comments (6)
Thanks for pointing this out. The order of region and id in the basin235 lookup file was reversed. I have pushed an updated file, so please let me know if you have further problems with this.
from gcammaptools.
Thank you for this fix.
add_region_ID works correctly now for the basins which have consistent naming, however, add_region_ID results in only 147 matches as basin names within map.basin235 are currently different than output from GCAM. USA regions are defined as 'Great Lakes Basin' in map.basin235 but are output from GCAM as 'Great Lakes'. I am not sure if basin names are different across different pulls of GCAM
from gcammaptools.
It is possible that older versions of GCAM could have different basin names, but in the most recent versions, there is no basin just called 'Great Lakes'. Which version are you running?
from gcammaptools.
I am currently running feature/water-markets
from gcammaptools.
We don't currently support the basin names in that feature, however you can match them to the ones we do support fairly easily. Using the file below, try the following:
altnames <- read.csv('alternate_basin_names.txt', stringsAsFactors = F)
groundwater<- merge(groundwater, altnames, by.x = 'region', by.y = 'basin.name', sort = F)
groundwater$region <- groundwater$region.name
groundwater$region.name <- NULL
groundwater <- add_region_ID(groundwater, lookupfile = basin235)
from gcammaptools.
Thank you, this works well. Unless you see it necessary to remain open, this issue can be closed.
from gcammaptools.
Related Issues (20)
- Unplotted user inputted data gets removed
- add_region_ID munges other columns
- Add tests for add_region_id HOT 1
- Vignettes need an example of China and USA region maps
- Regions in view sometimes filtered out
- EPSG 3395 causes error
- Border polygons stretched too much with certain projections HOT 2
- Update README
- Basin map removes Antarctica
- Eck3 projection not vertically centered
- Update basin map HOT 1
- Raster data extends past map bounds HOT 1
- Feature for coloring maps with no regional data HOT 1
- Package install fails with staged install HOT 1
- Clean up existing structure
- Create choropleth map functionality
- Clean up test suite
- Restructure the process_xxx sections to be unit testable
- Error on Choropleth HOT 1
- How to plot pies on base map?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcammaptools.