Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakout regions at model interface #334

Open
Sandie1994 opened this issue Aug 21, 2023 · 5 comments
Open

Breakout regions at model interface #334

Sandie1994 opened this issue Aug 21, 2023 · 5 comments

Comments

@Sandie1994
Copy link

Hi, please I would like to know how one can see the new regions at the model interface, after successfully using the breakout region function of the gcamdata. I have been able to follow the steps in ''gcambreakout'' online article, and the new region name automatically appeared in the GCAM_region_names.csv with ID 33. However, after running some scenarios, I expected to see at the model interface, the new region I added, but that was not the case. I hope someone can guide me on this. Thank you.

@pkyle
Copy link
Contributor

pkyle commented Aug 21, 2023

The regions listed in the Model Interface are the ones in the output database, which are the ones in the input XML files. They are listed in the order that they occur in the XML files read in, which is generally USA first, then 30 regions alphabetically from Africa_Eastern to Taiwan, then Argentina and Colombia, and finally Global. Your new region, if successfully added according to the instructions we've provided, would be just above "Global" in the list of regions (second to last entry). If that didn't happen, then here are some things to check:

  1. Do you see your region defined in the XML files, in gcamdata/xml? That's usually the folder that the configuration file is pointing to (from the exe directory, ../input/gcamdata/xml).
  2. Is the configuration file pointing to the correct folder path, where the XML files have the new region?

@Sandie1994
Copy link
Author

Thanks @pkyle for the feedback. Yes, I followed all the instructions successfully, and all files that were supposed to be automatically edited for my new region to appear got edited as seen in the screenshots below (The 'original' files and the new files). For now, I am using the same regions in the documentation as an example - so you can also see that Peru_Chile is a new region with ID 33.

However, I don't see the new region in the XML files and I have used the electricity_water.xml as an example in the screenshots below. At the model interface, the same 32 regions appear. On top of 'Global' I can't see the Peru_Chile.

I have also double-checked, and the configuration file points to the correct folder path where the XML files are. So, I am not sure what is causing the new region not to appear in XML files and ultimately at the model interface. Would be happy to hear more troubleshooting steps from you Sir.

19d35e4dd8a2edfa88e96ba3e3ca474

6fbc207bb72e75ecb38443067ec491c

bef7366a3e23d17326733d6935b083f

e216468a4e1acf3425b57b5a58d0ab4

63d0f21bc31e9eea423c25a09d9864b

@pkyle
Copy link
Contributor

pkyle commented Aug 23, 2023

I'm sorry, I just realized, I think the problem is that model users can only adjust the country-to-region mapping who have purchased a site license to the IEA's World Energy Balances, and placed the file in the appropriate place within the workspace. We aren't allowed to publicly distribute the country-level energy balances; any data that we distribute has to be aggregated to GCAM's model regions and sectors first. Without having the country-level energy balance data in the repository, any attempts to assign new model regions will fail as the "pre-built data" (which prescribe the standard default GCAM regions) will be used, over-riding any attempts to make new regions. I'm surprised XML files were built at all if this is the case. Can you check whether your workspace has the following step from the user guide?
IEA_EnergyBalances_2019.csv file placed in the ./input/inst/extdata/energy

@Sandie1994
Copy link
Author

Thanks @pkyle for the feedback. Yes, the user guide also mentions the purchase of the CEDS and IEA data. We have an institution ready to fund this work, so we are positive they will provide the funding for these CEDS and IEA data. Is it possible to send you an email directly for the right steps to follow in purchasing these files? Just want to be sure we purchased the exact required files to avoid compatibility issues later on.

Also, the energy balance file from the IEA is not present in my workspace just as you suspected.

@debibooo
Copy link

debibooo commented Jan 2, 2024

@Sandie1994 Hi, Sandie. After purchasing the IEA energy balance.cvs, did you manage to complete the breakout fuction? We would like to do something similar and would like you to share your experience? Thank a lot if you can respend to this message.

pralitp added a commit that referenced this issue Jun 4, 2024
Merge in JGCRI/gcam-core from js/feature/resid-mult-cons-gcam7 to master

Squashed commit of the following:

commit 1c759b51bd7d9a31fd9bdd51fbca3d9977722caf
Author: Pralit Patel <[email protected]>
Date:   Mon May 20 13:30:37 2024 -0400

    Remove ununsed assumption files

commit 2f8d7228dee09260a0ed3f3ef3cdf71d845c8a30
Merge: 45f013141 ff0b792
Author: Pralit Patel <[email protected]>
Date:   Wed May 15 15:59:41 2024 -0400

    Merge remote-tracking branch 'origin/master' into js/feature/resid-mult-cons-gcam7

commit 45f01314159a04dbcf7d836cb5c658e222ca997b
Author: Pralit Patel <[email protected]>
Date:   Wed May 15 12:16:03 2024 -0400

    Fix mapping bug which was causing resid HFC MACs not to apply

commit 8463e9aa386c0cc2710ecdcbad9829769ea1d4ec
Author: Pralit Patel <[email protected]>
Date:   Wed May 15 12:14:52 2024 -0400

    Revert unintentional change in Xcode project file

commit 4a3b99db5e190add6d4d81125cdf6d255c9d175e
Merge: dfae0f3 9deea8c
Author: Pralit Patel <[email protected]>
Date:   Mon May 13 09:26:17 2024 -0400

    Merge remote-tracking branch 'stash/master' into CMP-Mult-Cons

commit dfae0f3
Author: jon <[email protected]>
Date:   Wed Jan 31 09:47:58 2024 +0100

    add decreasing EFs for resid TradBio following SSP2-trends from Rao et al 2017

commit 44df533
Author: Jon Sampedro <[email protected]>
Date:   Mon Dec 4 17:03:15 2023 +0100

    correct satiation impedance for SSP scenarios

commit dc59271
Author: Sampedro <[email protected]>
Date:   Fri Jun 17 09:50:01 2022 -0400

    Update income distribution paths from pridr

commit f94705c
Author: Sampedro <[email protected]>
Date:   Thu Jun 16 16:25:19 2022 -0400

    Expand elec heating sw to further regions (beyond China)

commit dda9b1e
Author: Sampedro <[email protected]>
Date:   Thu Jun 16 16:24:40 2022 -0400

    Update prebuilt data

commit fc12098
Merge: 8d6985f 8d00382
Author: Sampedro <[email protected]>
Date:   Tue Jun 14 16:23:11 2022 -0400

    Merge branch 'master' into JS/feature/building_mult_cons

commit 8d6985f
Author: Sampedro <[email protected]>
Date:   Tue Jun 14 10:25:53 2022 -0400

    Update income shares based on latets pridr release

commit 398aa63
Author: Sampedro <[email protected]>
Date:   Fri Jun 10 12:38:00 2022 -0400

    Adjust electric heating in China

commit c23792a
Merge: 0647288 ea406d0
Author: samp699 <[email protected]>
Date:   Tue May 31 10:28:30 2022 -0400

    Merge branch 'master' into JS/feature/building_mult_cons

commit 0647288
Merge: 3fca83f 9019fcf
Author: samp699 <[email protected]>
Date:   Thu May 26 13:17:10 2022 -0400

    Merge branch 'master' into JS/feature/building_mult_cons

commit 3fca83f
Author: samp699 <[email protected]>
Date:   Thu May 12 14:13:45 2022 -0400

    In the adjustment, set the adder to final calibration period

commit a74ea39
Author: samp699 <[email protected]>
Date:   Thu May 12 13:56:01 2022 -0400

    BugFix: Change the approach to adjust "negative values" and eliminate jumps created by the adder

commit e365390
Author: samp699 <[email protected]>
Date:   Mon May 2 19:04:26 2022 -0400

    Add base service density for bugFix

commit fb381e5
Author: samp699 <[email protected]>
Date:   Fri Apr 29 11:07:33 2022 -0400

    Add SSP-specific subregional income distribution pathways for future
    periods

commit a4799e8
Author: samp699 <[email protected]>
Date:   Thu Apr 28 13:36:48 2022 -0400

    Adjust HFC MACC curves for cooling with multiple consumers

... and 146 more commits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants