# IBEI-PUBLISHING-1

> IBEI Results Summary File.
> Industry Benchmark Emission Index Results

!!! danger "Warning"

    This table is missing from AEMO's [main schema documentation](https://nemweb.com.au/Reports/CURRENT/MMSDataModelReport/Electricity/ElectricityDataModelReport.htm), but is listed on their [other, less comprehensive schema documentation page](https://web.nemweb.com.au/#ibei). The name really does end with `-1`. The column datatypes and meanings are undocumented. The information here is my best guess from looking at the data.

!!! tip Note

    This table gives daily emissions by region. See also [`BILLING_CO2E_PUBLICATION`](./BILLING_CO2E_PUBLICATION.md) for per-region daily emissions. (It is unclear what the difference between these two tables is.) See [`GENUNITS`](./GENUNITS.md) for per-generator emissions intensity.

## Column Schema

### CONTRACTYEAR

SQL Type: `NUMBER(4)`
Polars Type: `pl.UInt16`

This column is mandatory, and a primary key.

Example: `2026`

### REGIONID

!!! danger "Warning"
    Unlike most tables, this column contains "NEM" as a region ID, referring to the sum of the per-region values for the same time day.

For more information, see the [dedicated documentation page](../../guide/querying.md#region-id).

The SQL type is `VARCHAR2(10)`.
This is actually a factor/enum, with values:

- `QLD1` 

- `NSW1` 

- `VIC1` 

- `SA1` 

- `TAS1` 

- `NEM` 

This column is mandatory, and a primary key.

### SETTLEMENTDATE

SQL Type: `DATE`
Polars Type: `pl.Date()`

This column is mandatory, and a primary key.

Example: `2025/12/28 00:00:00`

Note that AEMO represents dates as datetimes with a midnight time component.

### WEEKNO

!!! danger "Warning"
    There may be 53 weeks in a year, depending on how weeks align to the year start/end.

SQL Type: `NUMBER(2)`
Polars Type: `pl.UInt8`

This column is mandatory, and a primary key.

Examples:
`1`, `47`

### ADJUSTED_INTENSITY_INDEX

> Ratio of GENERATOREMISSIONS to ADJUSTED_SENTOUTENERGY, tCO2e/MWh.

SQL Type: `NUMBER(0,5)`
Polars Type: `pl.Float64`

This column is mandatory (but not a primary key).

Examples:
`0.000000`, `0.000100`, `0.965400`

### ADJUSTED_SENTOUTENERGY

> Amount of energy (MWh) generated in this region.

!!! danger "Warning"
    This this table is undocumented, it is unclear how transmission and distribution losses, and rooftop solar, are treated.

!!! danger "Warning"
    This is published with 17 decimal places, but the last 4 digits are always zero.

SQL Type: `NUMBER(6,17)`
Polars Type: `pl.Float64`

This column is mandatory (but not a primary key).

Examples:
`13780.2988839141440000`, `583306.1005597630640000`

### GENERATOREMISSIONS

> Tonnes of CO2e emissions

SQL Type: `NUMBER(6,8)`
Polars Type: `pl.Float64`

This column is mandatory (but not a primary key).

Examples:
`0.00000000`, `1.83496653`, `381452.63146982`

## Code Examples

### Polars

Explicitly listing every column, casting to 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.

```python
import polars as pl
import polars.selectors as cs

# Dates are represented as datetimes at midnight

# e.g. "2029/03/15 00:00:00"

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("SETTLEMENTDATE").str.strptime(pl.Date, d_fmt),
    )
    .cast(
        {
            "CONTRACTYEAR": int,  # or pl.UInt16
            "REGIONID": pl.Enum(["QLD1", "NSW1", "VIC1", "SA1", "TAS1", "NEM"]),
            "SETTLEMENTDATE": pl.Date(),
            "WEEKNO": int,  # or pl.UInt8
            "ADJUSTED_INTENSITY_INDEX": pl.Float64,
            "ADJUSTED_SENTOUTENERGY": pl.Float64,
            "GENERATOREMISSIONS": pl.Float64,
        }
    )
    # Deduplicate
    # We want one row per ['CONTRACTYEAR', 'WEEKNO', 'SETTLEMENTDATE', 'REGIONID']
    .unique(subset=["CONTRACTYEAR", "WEEKNO", "SETTLEMENTDATE", "REGIONID"], keep="any")
)

```

### Nemosis

This table is not yet available in [Nemosis](https://github.com/UNSW-CEEM/NEMOSIS/#static_table).

## Example File

From [IBEI_SUMMARY_RESULTS_2026.CSV](https://nemweb.com.au/Reports/CURRENT/IBEI/IBEI_SUMMARY_RESULTS_2026.CSV)

=== "Raw Text with Metadata"
    ```csv
    C,SETP.WORLD,IBEI_RESULTS_SUMMARY_YEAR,AEMO,PUBLIC,2026/11/25,09:44:42,0000000550488294,,0000000550488263
    I,IBEI,PUBLISHING,1,CONTRACTYEAR,WEEKNO,SETTLEMENTDATE,REGIONID,ADJUSTED_SENTOUTENERGY,GENERATOREMISSIONS,ADJUSTED_INTENSITY_INDEX
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/28 00:00:00",NEM,391518.1087565131950000,216214.27299651,0.552200
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/28 00:00:00",NSW1,122516.9046325120500000,56341.70607685,0.459900
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/28 00:00:00",QLD1,133790.9230534193440000,84101.42317896,0.628600
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/28 00:00:00",SA1,20151.9670544572540000,1377.05419298,0.068300
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/28 00:00:00",TAS1,20767.7522557369060000,0.00000000,0.000000
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/28 00:00:00",VIC1,94290.5617603876410000,74394.08954772,0.789000
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/29 00:00:00",NEM,423438.8981837734010000,234266.67001651,0.553200
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/29 00:00:00",NSW1,123337.7324936200740000,61120.53357156,0.495600
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/29 00:00:00",QLD1,138219.1231612258500000,85201.79940586,0.616400
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/29 00:00:00",SA1,28059.4886433869420000,2047.68221791,0.073000
    D,IBEI,PUBLISHING,1,2026,1,"2025/12/29 00:00:00",TAS1,21555.9108112248600000,0.00000000,0.000000
    ...
    C,"END OF REPORT",1977
    ```

## Availability

This table is publicly available in an unusual location.

<https://nemweb.com.au/Reports/CURRENT/IBEI/>

    
All files in that folder are for this table.
    

## Data Size

    
Across all time, the files add up to 794 KB (as uncompressed CSV).
    

## Deduplication and PDR Loader Configuration

The primary keys are:

- [`CONTRACTYEAR`](#contractyear)

- [`WEEKNO`](#weekno)

- [`SETTLEMENTDATE`](#settlementdate)

- [`REGIONID`](#regionid)

[PDR Loader configuration](https://nemweb.com.au/Reports/Current/MMSDataModelReport/PDRCONFIG/PROD_PUBLIC_PDR_CONFIG_FULL.zip) is:

| Report Name | Report Subtype | Version |
|---------------|-------------------|-----------|
| IBEI | PUBLISHING  | 1 |

This means that the CSV files start with metadata columns:

```csv
I,IBEI,PUBLISHING,1,...
D,IBEI,PUBLISHING,1,...
```

## Links

[This page as JSON](../json/tables/IBEI-PUBLISHING-1/bespoke.json) (schema documented [here](https://gitlab.com/MatthewDavis/mms-schema/-/blob/master/schema.py?ref_type=heads), but may change)

Download a [JSON Schema](../json/tables/IBEI-PUBLISHING-1/json-schema.json) specification for this table.

[Official AEMO schema documentation](https://web.nemweb.com.au/#ibei)

## Other Information

This table is not part of a package.
