Giter Club home page Giter Club logo

Comments (4)

lolow avatar lolow commented on September 24, 2024 1

This is already implemented and explained in the documentation.
https://witchtools.witchmodel.org/reference/index.html

I can add a specific vignette if you want an example, but you might provide me a specific case to be more helpful.

You can define your own region mappings, time mappings and weights. Default datasets are used as a default parameter. They can be overloaded with new items. Example:

library(witchtools)
newregs <- region_mappings # get default 
newregs <- c(newregs,list(z54 = rm1, h12 = rm2)) # add 2 new mappings

where rm1 and rm2 are data.table containing the mapping as a 2-column data.table .

You can use to convert a gdx:

convert_gdx('input/build/data_climate.gdx','witch17','t30','data_witch17', region_mappings = newregs)

or to translate all witch data:
witch_translate_data(region = "r5", timescale = 't30', region_mappings = newregs)

from witchtools.

JohannesEmm avatar JohannesEmm commented on September 24, 2024

Hi,
ok works very well, great!
Just one comment: the function load_region_mapping was removed correct?
Maybe we can add it again to the package to be able to quickly convert the inc files from the witch repo to the required data table format, what you think?

from witchtools.

lolow avatar lolow commented on September 24, 2024

from witchtools.

lolow avatar lolow commented on September 24, 2024

@jackjackk @JohannesEmm I added the function in current master
see: https://witchtools.witchmodel.org/reference/witch_region_mapping.html

from witchtools.

Related Issues (10)

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.