================================================================================
                The Center for Global Trade Analysis (GTAP)                         
        	GTAP Data Base aggregation facilty for GTAP-RD suite of models

Created:       EC Feb 2019
Last modified: EC Jan 2024
Questions/comments: ecorong@purdue.edu 

Release notes: Jan2024
- This revised version is not backward compatible and will only work with 
  GTAP 11B Data Base onwards 

Questions/comments: ecorong@purdue.edu 
================================================================================

-------------------- 
General instructions
-------------------- 
Follow these steps to aggregate the GTAP Data Base for use by the GTAP-RD model

 Step 0: Ensure you have GTAPAgg2 installed with the relevant GTAP 11B Data Base 
		 packages, e.g., GTAP, GTAP-E, GTAP-Power, GTAP-AEZ etc.

 Step 1: GTAP-RD-DataAgg folder to your preferred directory

 Step 2: Run a test aggregation using default 10x10 aggregation (GTAP-RD-DB11-10x10.txt)
	 Open a DOS or CMD box, then type:  
                RunAgg c: gtap11B gtap 2017 GTAP-RD-DB11-10x10
                where 
                c:     	             is the location of GTAPAgg2 folder (c:\GTPAg2) 
    	     	gtap11B	             is the GTAP Data version
    	     	gtap 	             is the GTAP Data to be used
    	     	2017   	             is the Data base year 
    	     	GTAP-RD-DB11-10x10   is your aggregation input file 
        	    Note: Do NOT include .txt extension when specifying the aggregation file

    Example 2A: If your GTAPAgg2 folder is in a different location, say v drive (v:\GTPAg2), 
                instead of c, then type: 

                RunAgg v: gtap11B gtap 2017 GTAP-RD-DB11-10x10
                where 
                v:     	             is the location of GTAPAg2 folder

    Example 2B: If you want to aggregate the GTAP-E Data Base: 
 
                RunAgg c: gtap11B gtap-e 2017 GTAP-RD-e-DB11-10x10
                where 
                c:     	             is the location of GTAPAg2 folder
    	     	gtap11B	             is the GTAP Data version
    	     	gtap-e 	             is the GTAP Data to be used
    	     	2017   	             is the Data base year 
    	     	GTAP-RD-e-DB11-10x10 is your aggregation input file 
        	    Note: Do NOT include .txt extension when specifying the aggregation file

    Example 2C: If you want to aggregate the GTAP-Power Data Base: 
 
                RunAgg c: gtap11B gtap-power 2017 GTAP-RD-pwr-DB11-17x17x10
                where 
                c:     	                 is the location of GTAPAg2 folder
    	     	gtap11B	                 is the GTAP Data version
    	     	gtap-power 	             is the GTAP Data to be used
    	     	2017   	                 is the Data base year 
    	     	GTAP-RD-pwr-DB11-10x10   is your aggregation input file 
        	    Note: Do NOT include .txt extension when specifying the aggregation file

----------------------------
Run alternative aggregations
----------------------------
  
 Step 3: Make a copy of GTAP-RD-DB11-10x10.txt, rename, then modify based on your 
         preferred aggregation (say, DB11B-10x10.txt), then save.

 Step 4: Open a DOS or CMD box, then type:  
                RunAgg c: gtap11B gtap 2017 DB11B-10x10
                where 
                c:     	             is the location of GTAPAgg2 folder (c:\GTPAg2) 
    	     	gtap11B	             is the GTAP Data version
    	     	gtap 	             is the GTAP Data to be used
    	     	2017   	             is the Data base year 
    	     	DB11B-10x10   		 is your aggregation input file 
        	    Note: Do NOT include .txt extension when specifying the aggregation file
     


--------
Contents
--------
 This version facilitates aggregation of the following GTAP Data:
 (1) Standard GTAP Data Base
 (2) GTAP-E
 (3) GTAP-EP (E-Power)

ELC Last updated 31 January 2024

----------- 
End of file
-----------
