isp-trace-parser 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- isp_trace_name_mapping_configs/demand_scenario_mapping.yaml +3 -0
- isp_trace_name_mapping_configs/solar_area_mapping.yaml +37 -0
- isp_trace_name_mapping_configs/solar_project_mapping.yaml +114 -0
- isp_trace_name_mapping_configs/wind_area_mapping.yaml +43 -0
- isp_trace_name_mapping_configs/wind_project_mapping.yaml +356 -0
- isp_trace_parser/__init__.py +18 -0
- isp_trace_parser/construct_reference_year_mapping.py +29 -0
- isp_trace_parser/demand_traces.py +161 -0
- isp_trace_parser/generator_to_trace_draft_mapper.py +144 -0
- isp_trace_parser/get_data.py +662 -0
- isp_trace_parser/metadata_extractors.py +73 -0
- isp_trace_parser/solar_traces.py +153 -0
- isp_trace_parser/trace_formatter.py +101 -0
- isp_trace_parser/trace_restructure_helper_functions.py +145 -0
- isp_trace_parser/wind_traces.py +216 -0
- isp_trace_parser-0.1.0.dist-info/LICENSE +675 -0
- isp_trace_parser-0.1.0.dist-info/METADATA +147 -0
- isp_trace_parser-0.1.0.dist-info/RECORD +20 -0
- isp_trace_parser-0.1.0.dist-info/WHEEL +5 -0
- isp_trace_parser-0.1.0.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: isp-trace-parser
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A Python package for reformatting and accessing demand, solar, and wind time series data used by the
|
|
5
|
+
Author-email: nick-gorman <n.gorman305@gmail.com>, prakaa <abiprakash007@gmail.com>, dylanjmcconnell <dylan.mcconnell@unsw.edu.au>
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: polars>=1.7.1
|
|
10
|
+
Requires-Dist: pandas>=2.2.2
|
|
11
|
+
|
|
12
|
+
from scratch import new_dir
|
|
13
|
+
|
|
14
|
+
# isp-trace-parser
|
|
15
|
+
|
|
16
|
+
A Python package for reformatting and accessing demand, solar, and wind time series data used by the Australian Energy
|
|
17
|
+
Market Operator in their Integrated System Plan (ISP) modelling study. Currently, the trace parser only data in the
|
|
18
|
+
format of 2024 ISP.
|
|
19
|
+
|
|
20
|
+
## Examples
|
|
21
|
+
|
|
22
|
+
The trace parser has two core functionalities. Firstly reformatted or parsing raw AEMO trace data into a more
|
|
23
|
+
standard programmatic format. Secondly querying the parsed data.
|
|
24
|
+
|
|
25
|
+
### Reformatting (parsing) trace data
|
|
26
|
+
|
|
27
|
+
If AEMO trace data is downloaded onto a local machine it can be reformatted using isp_trace_parser. To perform the
|
|
28
|
+
restructuring solar, wind, and demand data should each be store in separate directories, then the following code can be
|
|
29
|
+
used to parse the data. No exact directory structure within solar, wind, and demand subdirectories needs to be followed.
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
from isp_trace_parser import parse_solar_traces, parse_wind_traces, parse_demand_traces
|
|
33
|
+
|
|
34
|
+
parse_solar_traces(
|
|
35
|
+
input_directory='<path/to/aemo/solar/traces>',
|
|
36
|
+
new_directory='<path/to/store/solar/output>',
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
parse_wind_traces(
|
|
40
|
+
input_directory='<path/to/aemo/wind/traces>',
|
|
41
|
+
parsed_directory='<path/to/store/wind/output>',
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
parse_solar_traces(
|
|
45
|
+
input_directory='<path/to/aemo/demand/traces>',
|
|
46
|
+
new_directory='<path/to/store/demand/output>',
|
|
47
|
+
)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Querying parsed trace data
|
|
51
|
+
|
|
52
|
+
Once trace data has been parsed it can be queried using the following API functionality.
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from isp_trace_parser import get_data
|
|
56
|
+
|
|
57
|
+
solar_project_trace_single_reference_year = get_data.solar_project_single_reference_year(
|
|
58
|
+
start_year=2022,
|
|
59
|
+
end_year=2024,
|
|
60
|
+
reference_year=2011,
|
|
61
|
+
project='Adelaide Desalination Plant Solar Farm',
|
|
62
|
+
directory='<path/to/parsed/solar/data>'
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
solar_project_trace_many_reference_years = get_data.solar_project_multiple_reference_years(
|
|
66
|
+
reference_years={2022: 2011, 2024: 2012},
|
|
67
|
+
project='Adelaide Desalination Plant Solar Farm',
|
|
68
|
+
directory='example_parsed_data/solar'
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
solar_rez_trace_single_reference_years = get_data.solar_area_single_reference_year(
|
|
72
|
+
start_year=2022,
|
|
73
|
+
end_year=2024,
|
|
74
|
+
reference_year=2011,
|
|
75
|
+
area='Q1',
|
|
76
|
+
technology='SAT',
|
|
77
|
+
directory='example_parsed_data/solar'
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
solar_rez_trace_many_reference_years = get_data.solar_area_multiple_reference_years(
|
|
81
|
+
reference_years={2022: 2011, 2024: 2012},
|
|
82
|
+
area='Q1',
|
|
83
|
+
technology='SAT',
|
|
84
|
+
directory='example_parsed_data/solar'
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
wind_project_trace_single_reference_years = get_data.wind_project_single_reference_year(
|
|
88
|
+
start_year=2022,
|
|
89
|
+
end_year=2024,
|
|
90
|
+
reference_year=2011,
|
|
91
|
+
project='Bango 973 Wind Farm',
|
|
92
|
+
directory='example_parsed_data/wind'
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
wind_project_trace_many_reference_years = get_data.wind_project_multiple_reference_years(
|
|
96
|
+
reference_years={2022: 2011, 2024: 2012},
|
|
97
|
+
project='Bango 973 Wind Farm',
|
|
98
|
+
directory='example_parsed_data/wind'
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
wind_rez_trace_single_reference_years = get_data.wind_area_single_reference_year(
|
|
102
|
+
start_year=2022,
|
|
103
|
+
end_year=2024,
|
|
104
|
+
reference_year=2011,
|
|
105
|
+
area='Q1',
|
|
106
|
+
resource_quality='WH',
|
|
107
|
+
directory='example_parsed_data/wind'
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
wind_rez_trace_many_reference_years = get_data.wind_area_multiple_reference_years(
|
|
111
|
+
reference_years={2022: 2011, 2024: 2012},
|
|
112
|
+
area='Q1',
|
|
113
|
+
resource_quality='WH',
|
|
114
|
+
directory='example_parsed_data/wind'
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
demand_subregion_trace_single_reference_years = get_data.demand_single_reference_year(
|
|
118
|
+
start_year=2024,
|
|
119
|
+
end_year=2024,
|
|
120
|
+
reference_year=2011,
|
|
121
|
+
subregion='CNSW',
|
|
122
|
+
scenario='Green Energy Exports',
|
|
123
|
+
poe='POE10',
|
|
124
|
+
descriptor='OPSO_MODELLING',
|
|
125
|
+
directory='example_parsed_data/demand'
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
demand_subregion_trace_many_reference_years = get_data.demand_multiple_reference_years(
|
|
129
|
+
reference_years={2024: 2011},
|
|
130
|
+
subregion='CNSW',
|
|
131
|
+
scenario='Green Energy Exports',
|
|
132
|
+
poe='POE10',
|
|
133
|
+
descriptor='OPSO_MODELLING',
|
|
134
|
+
directory='example_parsed_data/demand'
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Contributing
|
|
140
|
+
|
|
141
|
+
Interested in contributing to the source code or adding table configurations? Check out the [contributing instructions](./CONTRIBUTING.md), which also includes steps to install `package_name` for development.
|
|
142
|
+
|
|
143
|
+
Please note that this project is released with a [Code of Conduct](./CONDUCT.md). By contributing to this project, you agree to abide by its terms.
|
|
144
|
+
|
|
145
|
+
## License
|
|
146
|
+
|
|
147
|
+
`package_name` was created as a part of the [OpenISP project](https://github.com/Open-ISP). It is licensed under the terms of [GNU GPL-3.0-or-later](LICENSE) licences.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
isp_trace_name_mapping_configs/demand_scenario_mapping.yaml,sha256=h4VNctRRt7AeLrigcUSYz6AYKNgaceICQPJu_IC0adc,102
|
|
2
|
+
isp_trace_name_mapping_configs/solar_area_mapping.yaml,sha256=Bz5NpsIFgbopNykWpVb1Yv3Hgy6kEUNjEUUgI3KaX4s,261
|
|
3
|
+
isp_trace_name_mapping_configs/solar_project_mapping.yaml,sha256=YwxIh6cA0W23BxUCG1KuB_3uhMWDOpvkAiuugdOnYNM,3979
|
|
4
|
+
isp_trace_name_mapping_configs/wind_area_mapping.yaml,sha256=EtknfLB1V5BIkE0cv1m1Xh-c_976SELMdz5l2YZFbWg,309
|
|
5
|
+
isp_trace_name_mapping_configs/wind_project_mapping.yaml,sha256=e86xDzjqiEhqd4kmTs7SRhfH5LM6eoQnExNyxT-9dGM,8793
|
|
6
|
+
isp_trace_parser/__init__.py,sha256=SQES8Rb65bk-6B_VHrJVlZGj0v20qY8WPxIp9nW_dCg,559
|
|
7
|
+
isp_trace_parser/construct_reference_year_mapping.py,sha256=d6ixOPV35YW2BPol-XVZmxT7soC2GFFBrgRrC1LK0iU,1212
|
|
8
|
+
isp_trace_parser/demand_traces.py,sha256=dit2NdJadnK14FlyPYwilDHkLlmzdMrJYD39edclrYU,6401
|
|
9
|
+
isp_trace_parser/generator_to_trace_draft_mapper.py,sha256=APkh6-56q5-0R2zIrhSKtMxi8lSlf4AXK_KPiG5q6Uw,5312
|
|
10
|
+
isp_trace_parser/get_data.py,sha256=UhNhARTroXXClcdgKV5yUeb20E2TToflwlSvDJ7sByo,25879
|
|
11
|
+
isp_trace_parser/metadata_extractors.py,sha256=zaCp-ug7na3ARHgfON3h9bxCLs_pQwKKGa2pqPreii0,2581
|
|
12
|
+
isp_trace_parser/solar_traces.py,sha256=33CfZ7IIg3K9ygWEtZ14O-6W4zwaM2sNdWk6s3XJ_1U,5028
|
|
13
|
+
isp_trace_parser/trace_formatter.py,sha256=Hyg3ZW1sKZWmbUFwCC6-PAvVfhtLGgzUwDcimrDrvlc,3471
|
|
14
|
+
isp_trace_parser/trace_restructure_helper_functions.py,sha256=9SM-341Tc-WSmRtOpKySZRMU8ERtD_-dY__vIJOtMrU,4282
|
|
15
|
+
isp_trace_parser/wind_traces.py,sha256=-Ud7dGtXHBGDCzx_3UcZZeZhOzGjG88uo83P4UV8eVQ,7234
|
|
16
|
+
isp_trace_parser-0.1.0.dist-info/LICENSE,sha256=-JHhLXXB2RRUeojKiRRTDHyJ1QiOCtrDfwbahUOb6Yc,35150
|
|
17
|
+
isp_trace_parser-0.1.0.dist-info/METADATA,sha256=-_w9KSVq0aJtRxn9KLlQgT-Y1jyYSLV6EIRE48XhHIU,4961
|
|
18
|
+
isp_trace_parser-0.1.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
19
|
+
isp_trace_parser-0.1.0.dist-info/top_level.txt,sha256=0FGaENW0TgJ7ETtPZzRMER0kLB9-Si4cFeJOrYIPakA,48
|
|
20
|
+
isp_trace_parser-0.1.0.dist-info/RECORD,,
|