Comments (4)
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.
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.
from witchtools.
@jackjackk @JohannesEmm I added the function in current master
see: https://witchtools.witchmodel.org/reference/witch_region_mapping.html
from witchtools.
Related Issues (10)
- region/time mapping outside the package HOT 1
- dvc pull needs quote for filenames
- two questions HOT 2
- update time and region mappings HOT 1
- Convert_region additional check
- Correct definition of EU HOT 3
- Debug mode & separation from witch-data HOT 2
- weights for 'gdp' is defined twice HOT 3
- Consistent time mappings and allow adding new ones HOT 8
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 witchtools.