Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit f18e2eb

Browse files
Merge pull request #236 from openclimatefix/issue/201-gps-metadata
Issue/201 GSP metadata
2 parents 4fad459 + 9c923c2 commit f18e2eb

File tree

1 file changed

+10
-0
lines changed
  • nowcasting_dataset/data_sources/gsp

1 file changed

+10
-0
lines changed

nowcasting_dataset/data_sources/gsp/eso.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ def get_gsp_metadata_from_eso(calculate_centroid: bool = True) -> pd.DataFrame:
7575
metadata.merge(shape_data, right_on="RegionID", left_on="region_id", how="left")
7676
)
7777

78+
assert "centroid_lat" in metadata.keys(), (
79+
"GSP Metadata does not contain centroid_lat, "
80+
'try deleting the folder "nowcasting_dataset/data_sources/gsp/gsp_shape"'
81+
)
82+
83+
assert "centroid_lon" in metadata.keys(), (
84+
"GSP Metadata does not contain centroid_lon, "
85+
'try deleting the folder "nowcasting_dataset/data_sources/gsp/gsp_shape"'
86+
)
87+
7888
return metadata
7989

8090

0 commit comments

Comments
 (0)