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

Add JP prices #1577

Merged
merged 2 commits into from Aug 27, 2018
Merged

Add JP prices #1577

merged 2 commits into from Aug 27, 2018

Conversation

lorrieq
Copy link
Collaborator

@lorrieq lorrieq commented Aug 21, 2018

closes #1553

Please review:

  • takes prices of current day and next day (relative to target_datetime).
  • prices are half-hourly rather than hourly DAM that we're used to in Europe? Can we confirm this is how it is in Japan?
  • timezone set to Asia/Tokyo which I have assumed is correct.
  • column names / order is hardcoded, didn't want to deal with the Japanese symbols ;-)

parsers/JP.py Outdated
target_datetime = dt.datetime.now() + dt.timedelta(days=1)

url = 'http://www.jepx.org/market/excel/spot_{}.csv'.format(
target_datetime.year)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The year in the source url does not refer to calendar year, but to Japanese fiscal year, starting on Apr 1st. For example the the 2017 csv has prices from 2017/04/01 to 2018/03/31. Thus target_datetime needs to be shifted three months back before extracting year.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the graph of system price at http://www.jepx.org/ and the fact that it matches the last available day, column 6, of the csv source I am quite sure that the prices are half-hourly.

@lorrieq
Copy link
Collaborator Author

lorrieq commented Aug 22, 2018

Well spotted @tmslaine, that's now accounted for!
Sample output

@corradio corradio merged commit 6a98bcd into electricitymaps:master Aug 27, 2018
@lorrieq lorrieq deleted the jp_prices branch October 29, 2018 10:36
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

Successfully merging this pull request may close these issues.

Add JP prices
3 participants