Giter Site home page Giter Site logo

Comments (6)

calebbraun avatar calebbraun commented on June 8, 2024

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.

nealtg avatar nealtg commented on June 8, 2024

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.

calebbraun avatar calebbraun commented on June 8, 2024

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.

nealtg avatar nealtg commented on June 8, 2024

I am currently running feature/water-markets

from gcammaptools.

calebbraun avatar calebbraun commented on June 8, 2024

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)

alternate_basin_names.txt

from gcammaptools.

nealtg avatar nealtg commented on June 8, 2024

Thank you, this works well. Unless you see it necessary to remain open, this issue can be closed.

from gcammaptools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.