SETCPDATAREGION
SETCPDATAREGION sets out summary meter settlement data for each region. The table is populated for participants using Data Model 5.2. For participants using Data Model 5.3 or higher,
SET_ENERGY_REGION_SUMMARYreplace SETCPDATAREGION.
Deprecation Warning
This table is in the HISTORICAL TABLES package, so is likely deprecated.
SETCPDATAREGION data is public, so is available to all participants.
Source
SETCPDATAREGION is a summary based on grouping on
SETCPDATAand is updated with each settlement run.
Column Schema
PERIODID
Settlements Trading Interval.
SQL Type: NUMBER(22,10)
Polars Type: pl.Float64
This column is mandatory, and a primary key.
Examples:
1, 200
REGIONID
Region Identifier
For more information, see the dedicated documentation page.
The SQL type is VARCHAR2(10).
This is actually a factor/enum, with values:
-
QLD1 -
VIC1 -
TAS1 -
NSW1 -
SA1 -
SNOWY1
This column is mandatory, and a primary key.
SETTLEMENTDATE
Calendar Settlement Date
SQL Type: DATE
Polars Type: pl.Date()
This column is mandatory, and a primary key.
Example: 2024/05/05 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
VERSIONNO
Settlement run no
SQL Type: NUMBER(22,10)
Polars Type: pl.Float64
This column is mandatory, and a primary key.
Example: 12
LASTCHANGED
current system date, to enable automatic replication
For more information, see the dedicated documentation page.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is not mandatory.
Example: 2024/11/25 07:51:48
SUMEP
Sum of energy price across the region
SQL Type: NUMBER(15,5)
Polars Type: pl.Float64
This column is not mandatory.
SUMIGENERGY
Import Gross energy into the pool - MWh
SQL Type: NUMBER(27,5)
Polars Type: pl.Float64
This column is not mandatory.
SUMINENERGY
Import Nett energy into the pool - MWh
SQL Type: NUMBER(27,5)
Polars Type: pl.Float64
This column is not mandatory.
Examples:
0.69175, 134.41807
SUMXGENERGY
Export Gross energy from the pool - MWh
SQL Type: NUMBER(27,5)
Polars Type: pl.Float64
This column is not mandatory.
SUMXNENERGY
Export Nett energy from the pool - MWh
SQL Type: NUMBER(27,5)
Polars Type: pl.Float64
This column is not mandatory.
Examples:
-93.77479, -685.4649
SUMIPOWER
Not used
SQL Type: NUMBER(22,0)
Polars Type: pl.Int128
This column is unused.
SUMXPOWER
Not used
SQL Type: NUMBER(22,0)
Polars Type: pl.Int128
This column is unused.
New Data Timing
After each settlement run
Code Examples
Polars
Casting is enums, categoricals etc is not essential, but may speed up parsing.
Swapping int for pl.UInt16, pl.Int32 would also speed up parsing. However some of the datatypes are inferred, so they may be wrong.
This code deduplicates for you. Deduplication is normally only required across multiple months.
This code assumes that all columns are present, which may not be true for older files.
import polars as pl
import polars.selectors as cs
# e.g. "2029/03/15 00:05:00"
dt_s_fmt = "%Y/%m/%d %H:%M:%S"
# Dates are represented as datetimes at midnight
d_fmt = "%Y/%m/%d 00:00:00"
csv_paths = ["SOMEFILE.CSV", "OTHERFILE.CSV"]
lf = (
pl.concat(
[
pl.scan_csv(
csv_path, # must be unzipped beforehand
skip_rows=1, # skip the header
infer_schema=False, # much faster
)
.filter(cs.by_index(0) == "D") # drop the footer
.select(~cs.by_index(range(4))) # drop metadata columns
for csv_path in csv_paths
],
how="diagonal_relaxed",
)
.with_columns(
pl.col("LASTCHANGED").str.strptime(pl.Datetime, dt_s_fmt),
pl.col("SETTLEMENTDATE").str.strptime(pl.Date, d_fmt),
)
.cast(
{
"PERIODID": pl.Float64,
"REGIONID": pl.Enum(["QLD1", "VIC1", "TAS1", "NSW1", "SA1", "SNOWY1"]),
"SETTLEMENTDATE": pl.Date(),
"VERSIONNO": pl.Float64,
"SUMEP": pl.Float64,
"SUMIGENERGY": pl.Float64,
"SUMINENERGY": pl.Float64,
"SUMXGENERGY": pl.Float64,
"SUMXNENERGY": pl.Float64,
"SUMIPOWER": int, # or pl.Int128
"SUMXPOWER": int, # or pl.Int128
}
)
# Drop deprecated/unused columns
.drop("SUMIPOWER", "SUMXPOWER")
# Deduplicate
# We want one row per ['PERIODID', 'REGIONID', 'SETTLEMENTDATE', 'VERSIONNO']
# Tie-breaker: greatest value of ['LASTCHANGED']
.sort(["LASTCHANGED"], descending=False)
.unique(subset=["PERIODID", "REGIONID", "SETTLEMENTDATE", "VERSIONNO"], keep="last")
)
Nemosis
This table is not yet available in Nemosis.
Example File
From PUBLIC_ARCHIVE_SETCPDATAREGION_FILE01_202412010000.zip
| SETTLEMENTDATE | VERSIONNO | PERIODID | REGIONID | SUMIGENERGY | SUMXGENERGY | SUMINENERGY | SUMXNENERGY | SUMIPOWER | SUMXPOWER | LASTCHANGED | SUMEP |
| 2024/05/05 00:00:00 | 12 | 1 | NSW1 | 3.81173 | -592.9154 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 1 | QLD1 | 16.69613 | -468.06228 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 1 | SA1 | 4.694 | -120.83046 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 1 | TAS1 | 0.74976 | -98.31392 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 1 | VIC1 | 38.19461 | -416.8594 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 2 | NSW1 | 3.81029 | -592.09769 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 2 | QLD1 | 17.32257 | -466.71039 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 2 | SA1 | 4.61496 | -120.83886 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 2 | TAS1 | 0.71945 | -98.15041 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 2 | VIC1 | 37.04812 | -414.91866 | 2024/11/25 07:51:48 | |||||
| 2024/05/05 00:00:00 | 12 | 3 | NSW1 | 3.7982 | -588.76804 | 2024/11/25 07:51:48 | |||||
| ... |
| C | SETP.WORLD | DVD_SETCPDATAREGION | AEMO | PUBLIC | 2025/01/10 | 15:05:49 | 001736485549162 | MONTHLY_ARCHIVE | 001736485549162 | ||||||
| I | SETTLEMENTS | CPDATAREGION | 5 | SETTLEMENTDATE | VERSIONNO | PERIODID | REGIONID | SUMIGENERGY | SUMXGENERGY | SUMINENERGY | SUMXNENERGY | SUMIPOWER | SUMXPOWER | LASTCHANGED | SUMEP |
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 1 | NSW1 | 3.81173 | -592.9154 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 1 | QLD1 | 16.69613 | -468.06228 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 1 | SA1 | 4.694 | -120.83046 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 1 | TAS1 | 0.74976 | -98.31392 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 1 | VIC1 | 38.19461 | -416.8594 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 2 | NSW1 | 3.81029 | -592.09769 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 2 | QLD1 | 17.32257 | -466.71039 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 2 | SA1 | 4.61496 | -120.83886 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 2 | TAS1 | 0.71945 | -98.15041 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 2 | VIC1 | 37.04812 | -414.91866 | 2024/11/25 07:51:48 | |||||
| D | SETTLEMENTS | CPDATAREGION | 5 | 2024/05/05 00:00:00 | 12 | 3 | NSW1 | 3.7982 | -588.76804 | 2024/11/25 07:51:48 | |||||
| ... | |||||||||||||||
| C | END OF REPORT | 1003 |
SETTLEMENTDATE,VERSIONNO,PERIODID,REGIONID,SUMIGENERGY,SUMXGENERGY,SUMINENERGY,SUMXNENERGY,SUMIPOWER,SUMXPOWER,LASTCHANGED,SUMEP
"2024/05/05 00:00:00",12,1,NSW1,,,3.81173,-592.9154,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,1,QLD1,,,16.69613,-468.06228,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,1,SA1,,,4.694,-120.83046,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,1,TAS1,,,0.74976,-98.31392,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,1,VIC1,,,38.19461,-416.8594,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,2,NSW1,,,3.81029,-592.09769,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,2,QLD1,,,17.32257,-466.71039,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,2,SA1,,,4.61496,-120.83886,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,2,TAS1,,,0.71945,-98.15041,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,2,VIC1,,,37.04812,-414.91866,,,"2024/11/25 07:51:48",
"2024/05/05 00:00:00",12,3,NSW1,,,3.7982,-588.76804,,,"2024/11/25 07:51:48",
...
C,SETP.WORLD,DVD_SETCPDATAREGION,AEMO,PUBLIC,2025/01/10,15:05:49,001736485549162,MONTHLY_ARCHIVE,001736485549162
I,SETTLEMENTS,CPDATAREGION,5,SETTLEMENTDATE,VERSIONNO,PERIODID,REGIONID,SUMIGENERGY,SUMXGENERGY,SUMINENERGY,SUMXNENERGY,SUMIPOWER,SUMXPOWER,LASTCHANGED,SUMEP
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,1,NSW1,,,3.81173,-592.9154,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,1,QLD1,,,16.69613,-468.06228,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,1,SA1,,,4.694,-120.83046,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,1,TAS1,,,0.74976,-98.31392,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,1,VIC1,,,38.19461,-416.8594,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,2,NSW1,,,3.81029,-592.09769,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,2,QLD1,,,17.32257,-466.71039,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,2,SA1,,,4.61496,-120.83886,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,2,TAS1,,,0.71945,-98.15041,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,2,VIC1,,,37.04812,-414.91866,,,"2024/11/25 07:51:48",
D,SETTLEMENTS,CPDATAREGION,5,"2024/05/05 00:00:00",12,3,NSW1,,,3.7982,-588.76804,,,"2024/11/25 07:51:48",
...
C,"END OF REPORT",1003
Availability
Visibility: Public
This table is in the public monthly MMSDM archive.
I have collated the list of all those files into one place, in this CSV metadata file. (Columns year, month, url, compressed_size in bytes).
The earliest available data is month 1 of 2015. The most recent available data is month 12 of 2024.
Warning
There are some months with no files.
Data Size
Each year of data is approximately 7 MB when zipped, 66 MB as unzipped CSV.
Deduplication and PDR Loader Configuration
The primary keys are:
The transaction type is "insert", which means that you will usually not see duplicate data. If you do, you can deduplicate based on the primary keys, without sorting first. Rows from different files with the same primary keys should have the same values.
| Report Name | Report Subtype | Version |
|---|---|---|
| SETTLEMENTS | CPDATAREGION | 5 |
This means that the CSV files start with metadata columns:
Indexes
Links
This page as JSON (schema documented here, but may change)
Download a JSON Schema specification for this table.
Official AEMO schema documentation
Other Information
Package: HISTORICAL TABLES