BILLSMELTERRATE
BILLSMELTERRATE is standing data, setting out the rates used in smelter reduction calculations.
Deprecation Warning
This table is in the HISTORICAL TABLES package, so is likely deprecated.
BILLSMELTERRATE is public data, and is available to all participants.
Source
BILLSMELTERRATE updates infrequently, when inserting new annual rates.
Volume
Two records inserted per year
Column Schema
CONTRACTYEAR
AEMO Contract Year number starting in week containing 1st January
SQL Type: NUMBER(22,0)
Polars Type: pl.UInt128
This column is mandatory, and a primary key.
Examples:
1998, 2021
EFFECTIVEDATE
Calendar settlement date record becomes effective
SQL Type: DATE
Polars Type: pl.Date()
This column is mandatory, and a primary key.
Example: 1998/07/01 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
VERSIONNO
Version no of the record for the given effective date
SQL Type: NUMBER(3,0)
Polars Type: pl.UInt16
This column is mandatory, and a primary key.
Examples:
1, 2
AUTHORISEDBY
Who authorised
SQL Type: VARCHAR2(10)
Polars Type: str
This column is not mandatory.
Examples:
HAMISHJWORMALDLLITTLEMORSBUGGYSCOTTSRAJUWING
AUTHORISEDDATE
Authorised date
SQL Type: DATE
Polars Type: pl.Date()
This column is not mandatory.
Example: 1998/03/29 00:00:00
Note that AEMO represents dates as datetimes with a midnight time component.
LASTCHANGED
Last date and time record changed
For more information, see the dedicated documentation page.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is not mandatory.
Example: 2002/01/10 17:47:07
RAR1
Smelter rate 1
SQL Type: NUMBER(6,2)
Polars Type: pl.Float64
This column is not mandatory.
Examples:
0, 2
RAR2
Smelter rate 2
SQL Type: NUMBER(6,2)
Polars Type: pl.Float64
This column is not mandatory.
Examples:
2.08, 0, 2.45
New Data Timing
Infrequently, when inserting new annual rates
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("EFFECTIVEDATE", "AUTHORISEDDATE").str.strptime(pl.Date, d_fmt),
)
.cast(
{
"CONTRACTYEAR": int, # or pl.UInt128
"EFFECTIVEDATE": pl.Date(),
"VERSIONNO": int, # or pl.UInt16
"AUTHORISEDBY": str,
"AUTHORISEDDATE": pl.Date(),
"RAR1": pl.Float64,
"RAR2": pl.Float64,
}
)
# Deduplicate
# We want one row per ['CONTRACTYEAR', 'EFFECTIVEDATE', 'VERSIONNO']
# Tie-breaker: greatest value of ['LASTCHANGED']
.sort(["LASTCHANGED"], descending=False)
.unique(subset=["CONTRACTYEAR", "EFFECTIVEDATE", "VERSIONNO"], keep="last")
)
Nemosis
This table is not yet available in Nemosis.
Example File
From PUBLIC_DVD_BILLSMELTERRATE_202407010000.zip
| EFFECTIVEDATE | VERSIONNO | CONTRACTYEAR | RAR1 | RAR2 | AUTHORISEDDATE | AUTHORISEDBY | LASTCHANGED |
| 1998/07/01 00:00:00 | 2 | 1998 | 2 | 2.08 | 1998/07/01 00:00:00 | WING | 2004/06/22 17:02:17 |
| 1999/07/01 00:00:00 | 1 | 1999 | 2 | 2.1 | 1999/06/15 00:00:00 | JWORMALD | 2004/06/22 17:02:17 |
| 2000/01/01 00:00:00 | 1 | 2000 | 2 | 2.1 | 1999/11/16 00:00:00 | SBUGGY | 2004/06/22 17:02:17 |
| 1999/07/01 00:00:00 | 1 | 2000 | 2 | 2.1 | 1998/03/29 00:00:00 | SCOTT | 2004/06/22 17:02:17 |
| 2000/07/01 00:00:00 | 1 | 2000 | 2 | 2.17 | 2000/06/02 00:00:00 | WING | 2004/06/22 17:02:17 |
| 2000/12/31 00:00:00 | 1 | 2001 | 2 | 2.17 | 2000/12/08 00:00:00 | JWORMALD | 2004/06/22 17:02:17 |
| 2001/07/01 00:00:00 | 1 | 2001 | 2 | 2.3 | 2001/06/01 00:00:00 | JWORMALD | 2004/06/22 17:02:17 |
| 2001/12/30 00:00:00 | 1 | 2002 | 2 | 2.3 | 2002/01/10 00:00:00 | JWORMALD | 2002/01/10 17:47:07 |
| 2003/12/28 00:00:00 | 1 | 2004 | 2 | 2.45 | 2003/12/18 00:00:00 | JWORMALD | 2004/06/22 17:02:17 |
| 2002/07/01 00:00:00 | 1 | 2002 | 2 | 2.37 | 2002/06/06 00:00:00 | JWORMALD | 2002/06/06 16:13:54 |
| 2002/12/29 00:00:00 | 1 | 2003 | 2 | 2.37 | 2002/12/30 00:00:00 | SBUGGY | 2002/12/30 07:24:35 |
| ... |
| C | SETP.WORLD | DVD_BILLSMELTERRATE | AEMO | PUBLIC | 2024/08/06 | 16:15:01 | 0000000428653896 | 0000000428653863 | |||
| I | BILLING_CONFIG | BILLSMELTERRATE | 1 | EFFECTIVEDATE | VERSIONNO | CONTRACTYEAR | RAR1 | RAR2 | AUTHORISEDDATE | AUTHORISEDBY | LASTCHANGED |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 1998/07/01 00:00:00 | 2 | 1998 | 2 | 2.08 | 1998/07/01 00:00:00 | WING | 2004/06/22 17:02:17 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 1999/07/01 00:00:00 | 1 | 1999 | 2 | 2.1 | 1999/06/15 00:00:00 | JWORMALD | 2004/06/22 17:02:17 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 2000/01/01 00:00:00 | 1 | 2000 | 2 | 2.1 | 1999/11/16 00:00:00 | SBUGGY | 2004/06/22 17:02:17 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 1999/07/01 00:00:00 | 1 | 2000 | 2 | 2.1 | 1998/03/29 00:00:00 | SCOTT | 2004/06/22 17:02:17 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 2000/07/01 00:00:00 | 1 | 2000 | 2 | 2.17 | 2000/06/02 00:00:00 | WING | 2004/06/22 17:02:17 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 2000/12/31 00:00:00 | 1 | 2001 | 2 | 2.17 | 2000/12/08 00:00:00 | JWORMALD | 2004/06/22 17:02:17 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 2001/07/01 00:00:00 | 1 | 2001 | 2 | 2.3 | 2001/06/01 00:00:00 | JWORMALD | 2004/06/22 17:02:17 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 2001/12/30 00:00:00 | 1 | 2002 | 2 | 2.3 | 2002/01/10 00:00:00 | JWORMALD | 2002/01/10 17:47:07 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 2003/12/28 00:00:00 | 1 | 2004 | 2 | 2.45 | 2003/12/18 00:00:00 | JWORMALD | 2004/06/22 17:02:17 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 2002/07/01 00:00:00 | 1 | 2002 | 2 | 2.37 | 2002/06/06 00:00:00 | JWORMALD | 2002/06/06 16:13:54 |
| D | BILLING_CONFIG | BILLSMELTERRATE | 1 | 2002/12/29 00:00:00 | 1 | 2003 | 2 | 2.37 | 2002/12/30 00:00:00 | SBUGGY | 2002/12/30 07:24:35 |
| ... | |||||||||||
| C | END OF REPORT | 34 |
EFFECTIVEDATE,VERSIONNO,CONTRACTYEAR,RAR1,RAR2,AUTHORISEDDATE,AUTHORISEDBY,LASTCHANGED
"1998/07/01 00:00:00",2,1998,2,2.08,"1998/07/01 00:00:00",WING,"2004/06/22 17:02:17"
"1999/07/01 00:00:00",1,1999,2,2.1,"1999/06/15 00:00:00",JWORMALD,"2004/06/22 17:02:17"
"2000/01/01 00:00:00",1,2000,2,2.1,"1999/11/16 00:00:00",SBUGGY,"2004/06/22 17:02:17"
"1999/07/01 00:00:00",1,2000,2,2.1,"1998/03/29 00:00:00",SCOTT,"2004/06/22 17:02:17"
"2000/07/01 00:00:00",1,2000,2,2.17,"2000/06/02 00:00:00",WING,"2004/06/22 17:02:17"
"2000/12/31 00:00:00",1,2001,2,2.17,"2000/12/08 00:00:00",JWORMALD,"2004/06/22 17:02:17"
"2001/07/01 00:00:00",1,2001,2,2.3,"2001/06/01 00:00:00",JWORMALD,"2004/06/22 17:02:17"
"2001/12/30 00:00:00",1,2002,2,2.3,"2002/01/10 00:00:00",JWORMALD,"2002/01/10 17:47:07"
"2003/12/28 00:00:00",1,2004,2,2.45,"2003/12/18 00:00:00",JWORMALD,"2004/06/22 17:02:17"
"2002/07/01 00:00:00",1,2002,2,2.37,"2002/06/06 00:00:00",JWORMALD,"2002/06/06 16:13:54"
"2002/12/29 00:00:00",1,2003,2,2.37,"2002/12/30 00:00:00",SBUGGY,"2002/12/30 07:24:35"
...
C,SETP.WORLD,DVD_BILLSMELTERRATE,AEMO,PUBLIC,2024/08/06,16:15:01,0000000428653896,,0000000428653863
I,BILLING_CONFIG,BILLSMELTERRATE,1,EFFECTIVEDATE,VERSIONNO,CONTRACTYEAR,RAR1,RAR2,AUTHORISEDDATE,AUTHORISEDBY,LASTCHANGED
D,BILLING_CONFIG,BILLSMELTERRATE,1,"1998/07/01 00:00:00",2,1998,2,2.08,"1998/07/01 00:00:00",WING,"2004/06/22 17:02:17"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"1999/07/01 00:00:00",1,1999,2,2.1,"1999/06/15 00:00:00",JWORMALD,"2004/06/22 17:02:17"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"2000/01/01 00:00:00",1,2000,2,2.1,"1999/11/16 00:00:00",SBUGGY,"2004/06/22 17:02:17"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"1999/07/01 00:00:00",1,2000,2,2.1,"1998/03/29 00:00:00",SCOTT,"2004/06/22 17:02:17"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"2000/07/01 00:00:00",1,2000,2,2.17,"2000/06/02 00:00:00",WING,"2004/06/22 17:02:17"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"2000/12/31 00:00:00",1,2001,2,2.17,"2000/12/08 00:00:00",JWORMALD,"2004/06/22 17:02:17"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"2001/07/01 00:00:00",1,2001,2,2.3,"2001/06/01 00:00:00",JWORMALD,"2004/06/22 17:02:17"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"2001/12/30 00:00:00",1,2002,2,2.3,"2002/01/10 00:00:00",JWORMALD,"2002/01/10 17:47:07"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"2003/12/28 00:00:00",1,2004,2,2.45,"2003/12/18 00:00:00",JWORMALD,"2004/06/22 17:02:17"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"2002/07/01 00:00:00",1,2002,2,2.37,"2002/06/06 00:00:00",JWORMALD,"2002/06/06 16:13:54"
D,BILLING_CONFIG,BILLSMELTERRATE,1,"2002/12/29 00:00:00",1,2003,2,2.37,"2002/12/30 00:00:00",SBUGGY,"2002/12/30 07:24:35"
...
C,"END OF REPORT",34
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 7 of 2024.
Every month in between has a file. (No gaps.)
Data Size
Each year of data is approximately 11 KB when zipped, 106 KB as unzipped CSV.
Deduplication and PDR Loader Configuration
The primary keys are:
| Report Name | Report Subtype | Version | Undisclosed |
|---|---|---|---|
| BILLING_CONFIG | BILLSMELTERRATE | 1 | ⚠️ |
Warning
Some of these file mappings are not in the published PDR Loader configuration file, even though files for this table exist with those metadata values. Mappings marked with ⚠️ have been added by me after manually inspecting those files.
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