Skip to main content

A Python package for reformatting and accessing demand, solar, and wind time series data used by the

Project description

from scratch import new_dir

isp-trace-parser

A Python package for reformatting and accessing demand, solar, and wind time series data used by the Australian Energy Market Operator in their Integrated System Plan (ISP) modelling study. Currently, the trace parser only data in the format of 2024 ISP.

Examples

The trace parser has two core functionalities. Firstly reformatted or parsing raw AEMO trace data into a more standard programmatic format. Secondly querying the parsed data.

Reformatting (parsing) trace data

If AEMO trace data is downloaded onto a local machine it can be reformatted using isp_trace_parser. To perform the restructuring solar, wind, and demand data should each be store in separate directories, then the following code can be used to parse the data. No exact directory structure within solar, wind, and demand subdirectories needs to be followed.

from isp_trace_parser import parse_solar_traces, parse_wind_traces, parse_demand_traces

parse_solar_traces(
    input_directory='<path/to/aemo/solar/traces>',
    new_directory='<path/to/store/solar/output>',
)

parse_wind_traces(
    input_directory='<path/to/aemo/wind/traces>',
    parsed_directory='<path/to/store/wind/output>',
)

parse_solar_traces(
    input_directory='<path/to/aemo/demand/traces>',
    new_directory='<path/to/store/demand/output>',
)

Querying parsed trace data

Once trace data has been parsed it can be queried using the following API functionality.

from isp_trace_parser import get_data

solar_project_trace_single_reference_year = get_data.solar_project_single_reference_year(
    start_year=2022,
    end_year=2024,
    reference_year=2011,
    project='Adelaide Desalination Plant Solar Farm',
    directory='<path/to/parsed/solar/data>'
)

solar_project_trace_many_reference_years = get_data.solar_project_multiple_reference_years(
    reference_years={2022: 2011, 2024: 2012},
    project='Adelaide Desalination Plant Solar Farm',
    directory='example_parsed_data/solar'
)

solar_rez_trace_single_reference_years = get_data.solar_area_single_reference_year(
    start_year=2022,
    end_year=2024,
    reference_year=2011,
    area='Q1',
    technology='SAT',
    directory='example_parsed_data/solar'
)

solar_rez_trace_many_reference_years = get_data.solar_area_multiple_reference_years(
    reference_years={2022: 2011, 2024: 2012},
    area='Q1',
    technology='SAT',
    directory='example_parsed_data/solar'
)

wind_project_trace_single_reference_years = get_data.wind_project_single_reference_year(
    start_year=2022,
    end_year=2024,
    reference_year=2011,
    project='Bango 973 Wind Farm',
    directory='example_parsed_data/wind'
)

wind_project_trace_many_reference_years = get_data.wind_project_multiple_reference_years(
    reference_years={2022: 2011, 2024: 2012},
    project='Bango 973 Wind Farm',
    directory='example_parsed_data/wind'
)

wind_rez_trace_single_reference_years = get_data.wind_area_single_reference_year(
    start_year=2022,
    end_year=2024,
    reference_year=2011,
    area='Q1',
    resource_quality='WH',
    directory='example_parsed_data/wind'
)

wind_rez_trace_many_reference_years = get_data.wind_area_multiple_reference_years(
    reference_years={2022: 2011, 2024: 2012},
    area='Q1',
    resource_quality='WH',
    directory='example_parsed_data/wind'
)

demand_subregion_trace_single_reference_years = get_data.demand_single_reference_year(
    start_year=2024,
    end_year=2024,
    reference_year=2011,
    subregion='CNSW',
    scenario='Green Energy Exports',
    poe='POE10',
    descriptor='OPSO_MODELLING',
    directory='example_parsed_data/demand'
)

demand_subregion_trace_many_reference_years = get_data.demand_multiple_reference_years(
    reference_years={2024: 2011},
    subregion='CNSW',
    scenario='Green Energy Exports',
    poe='POE10',
    descriptor='OPSO_MODELLING',
    directory='example_parsed_data/demand'
)

Contributing

Interested in contributing to the source code or adding table configurations? Check out the contributing instructions, which also includes steps to install package_name for development.

Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

package_name was created as a part of the OpenISP project. It is licensed under the terms of GNU GPL-3.0-or-later licences.

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

isp_trace_parser-0.1.0.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

isp_trace_parser-0.1.0-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

Details for the file isp_trace_parser-0.1.0.tar.gz.

File metadata

  • Download URL: isp_trace_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for isp_trace_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8bc88d72c06aac0c7975ff658057727f93626924abc2e52d5dea7f060478631c
MD5 dfa4ed5ccf31fd397ce0c20cc20ef028
BLAKE2b-256 228bd05550287be4d33d6ddb9cffa954d60aec093b053c7f43892db2fc4bb85f

See more details on using hashes here.

File details

Details for the file isp_trace_parser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for isp_trace_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cad520409eef6ba245488b6ec4649afd7dfcc06c3d8cb29c6346f08f2a9e070c
MD5 29638323d38224fc069332555299a3eb
BLAKE2b-256 0e2ca6e4aa6892885d3622ac92a976ad309e509a5608d0e1cf1238726bcd7bc4

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