This repository was archived by the owner on Jun 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -78,15 +78,14 @@ def __iter__(self) -> xr.DataArray:
78
78
79
79
# Ensure the centroids have the same GSP ID index as the GSP PV power:
80
80
gsp_id_to_shape = gsp_id_to_shape .loc [gsp_pv_power_mw_ds .gsp_id ]
81
-
82
81
data_array = _put_gsp_data_into_an_xr_dataarray (
83
82
gsp_pv_power_mw = gsp_pv_power_mw_ds .generation_mw .data .astype (np .float32 ),
84
83
time_utc = gsp_pv_power_mw_ds .datetime_gmt .data ,
85
84
gsp_id = gsp_pv_power_mw_ds .gsp_id .data ,
86
85
# TODO: Try using `gsp_id_to_shape.geometry.envelope.centroid`. See issue #76.
87
86
x_osgb = gsp_id_to_shape .geometry .centroid .x .astype (np .float32 ),
88
87
y_osgb = gsp_id_to_shape .geometry .centroid .y .astype (np .float32 ),
89
- capacity_megawatt_power = gsp_pv_power_mw_ds .installedcapacity_megawatt_power .data .astype (np .float32 ),
88
+ capacity_megawatt_power = gsp_pv_power_mw_ds .installedcapacity_mwp .data .astype (np .float32 ),
90
89
)
91
90
92
91
del gsp_id_to_shape , gsp_pv_power_mw_ds
Original file line number Diff line number Diff line change 84
84
"gsp_id"
85
85
]
86
86
},
87
- "installedcapacity_megawatt_power /.zarray": {
87
+ "installedcapacity_mwp /.zarray": {
88
88
"chunks": [
89
89
49,
90
90
22
106
106
],
107
107
"zarr_format": 2
108
108
},
109
- "installedcapacity_megawatt_power /.zattrs": {
109
+ "installedcapacity_mwp /.zattrs": {
110
110
"_ARRAY_DIMENSIONS": [
111
111
"datetime_gmt",
112
112
"gsp_id"
You can’t perform that action at this time.
0 commit comments