Skip to main content

Simple CLI for downloading data for Australia's NEM from AEMO.

Project description

nem-data

A simple & opinionated Python command line tool to access Australian National Energy Market (NEM) data provided by the Australian Energy Market Operator (AEMO).

It is designed for use by researchers & data scientists - this tool supports my personal research work. It is not designed for production use - see NEMOSIS for a production grade package.

See A hackers guide to AEMO & NEM data for more on context the data provided by AEMO.

Setup

Install as editable package:

$ make setup

Use

$ nemdata --help
Usage: nemdata [OPTIONS]

  nem-data is a tool to access NEM data

Options:
  -s, --start TEXT    start date (YYYY-MM)
  -e, --end TEXT      end date (incusive) (YYYY-MM)
  -r, --report TEXT   nemde, predispatch, unit-scada, trading-price
  --help              Show this message and exit.

To download NEMDE data:

$ nemdata -r nemde --start 2018-01 --end 2018-03

To download trading price data:

$ nemdata -r trading-price -s 2018-01 -e 2018-03

Support the following datasets from MMSDM:

reports = {
    'trading-price': 'TRADINGPRICE',
    'unit-scada': 'UNIT_SCADA',
    'predispatch': "PREDISPATCHPRICE"
}

Output Data

Data is downloaded into into $HOME/nem-data/data/:

$ nemdata -r trading-price -s 2020-01 -e 2020-02
$ tree ~/nem-data
/Users/adam/nem-data
└── data
    └── trading-price
        ├── 2020-01
        │   ├── PUBLIC_DVD_TRADINGPRICE_202001010000.CSV
        │   ├── clean.csv
        │   ├── clean.parquet
        │   └── raw.zip
        └── 2020-02
            ├── PUBLIC_DVD_TRADINGPRICE_202002010000.CSV
            ├── clean.csv
            ├── clean.parquet
            └── raw.zip

4 directories, 8 files

A few things happen during data processing:

  • the top & bottom rows of the raw CSV are removed,
  • interval-start and interval-end columns are added,
  • for trading-price, all data is resampled to a 5 minute frequency (both before and after the 30 to 5 minute settlement interval change).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nemdata-0.1.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

nemdata-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file nemdata-0.1.1.tar.gz.

File metadata

  • Download URL: nemdata-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.0-1023-azure

File hashes

Hashes for nemdata-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e51d963154fe43818fd5f0ed2abc9415fa290b12ae12accde1b30a155957e377
MD5 f97f7f5abb538d0729e10b81ee67c53c
BLAKE2b-256 7e3a22f6af6509eae0a86eabab1ed5e0b7844c233799d2469bd04edca8539b00

See more details on using hashes here.

File details

Details for the file nemdata-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nemdata-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/5.15.0-1023-azure

File hashes

Hashes for nemdata-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c314cdca95051ea2f5dfb32d25d53f233c2cfd8ac16da17f75d540745b6913f
MD5 3df8031125ad11e0941f6c0daefdc0d0
BLAKE2b-256 95350128726b071f77095262b9c93eea17f3ebd0ead8f2d5c069ca37ac03e811

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page