@echo off

rem *****************************************************
rem **    GTAP ELECTRICITY DISAGGREGATION VERSION 10  ***
rem *****************************************************

rem ** This takes in GTAP basedata.har, default.prm, and sets.har for the FULL VERSION 10 2014 and returns electricity expanded database
rem ** Run time: 15 minutes * 1 years ~ 15 minutes (depending on CPU)

1.  Set up directory paths on your machine. In order to do this, modify paths in the following files: 
	"Ely_disagg_ERP_2014.gms", line 16
	"Ely_disagg_10.bat", line 43
	"xlsread.gms", line 8
	Corresponding paths should be pointing to the folder with GTAP-Power 10 database (e.g. d:\docs\GTAP\v10a_2014)

2.  From your flexagg v10 database folder, copy gsddat.har, gsdset.har and gsdpar.har into /input, and rename them as follows:
        gsddat.har 	--> 	basedata.har
        gsdset.har 	--> 	sets.har
        gsdpar.har 	--> 	default.prm
    If emissions and volumes desired:
	gsdemiss.har 	--> 	gsdemiss.har
	gsdvole.har 	--> 	gsdvole.har

3. Run ely_disagg_10.bat

3. Updated .har files with disaggregated electricity sectors will be stored in /output
		
	
