HAR file from TASTE to GDX

questions about GAMS' tools
Post Reply
basz_8
User
User
Posts: 1
Joined: 1 year ago

HAR file from TASTE to GDX

Post by basz_8 »

Hi, im new to GAMS and I'm trying to transform HAR file (the output from program TASTE -Tariff Analytical and Simulation Tool for Economists) into gdx but I encounter some fatal errors. I tried to use ViewHar from Gempack, some tools like HAR2GDX but i got error about too much parameters. I need the new GDX file to be as close to the orginal file as possible. Can someone push me into right direction? How should I approach this? :oops:

ps.1. If some one want to have a look at a file:
https://we.tl/t-AjYSF3aNJb

ps.2 I was able to transform Har file into csv file without any problems. Maybe this is the way HAR->CVS->GDX??
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: HAR file from TASTE to GDX

Post by bussieck »

Hi,

if neither the har2gdx that comes with GAMS nor the har2gdx from Gempack works, I think your path via CSV is your best option. Unfortunately, the har2gdx tools are not well maintained and due to this GAMS has announced (https://www.gams.com/42/docs/RN_37.html#g3710_GDX2HAR) to drop their version of the har2gdx/gdx2har tools from the distribution. There is also a Python package (https://github.com/GEMPACKsoftware/HARPY) that might get you the har data into Python and then via e.g. GAMS Transfer Python (https://www.gams.com/latest/docs/API_PY ... NSFER.html) into GDX. I did not experiment much with the harpy package, but activity on this is also very low.

If you succeed, it would be great if you could describe your "pipeline" so others can benefit from this.

Good luck.
-Michael
Post Reply