gcam-core icon indicating copy to clipboard operation
gcam-core copied to clipboard

rgcam::localDBConn cannot read GCAM v8.2 output database, but works for v7.0

Open pkufubo opened this issue 2 weeks ago • 0 comments

Hello developers,

I encountered a compatibility issue when using rgcam to read GCAM output databases.

When running the following code:

data <- rgcam::localDBConn(
  "F:/gcam-v8.2-Windows-Release-Package/output",
  "database_basexdb"
)

the function fails with:

Error in rgcam::localDBConn("F:/gcam-v8.2-Windows-Release-Package/output",  : 
  Database does not exist or is invalid: F:/gcam-v8.2-Windows-Release-Package/output/database_basexdb
Warning message:
The following named parsers don't match the column names: name, date, version

However, the exact same code works fine for GCAM v7.0:

data <- rgcam::localDBConn(
  "F:/gcam-v7.0-Windows-Release-Package/output",
  "database_basexdb"
)

This suggests that rgcam may not (yet) be compatible with the GCAM v8.2 database structure, or that the output format has changed in ways that require adjustments to the parsers. Thank you very much for your help!

pkufubo avatar Dec 06 '25 06:12 pkufubo