You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an empty weather dataset for pvgis hourly TMY data
1113
-
1114
-
Parameters
1115
-
----------
1116
-
gids_size: int
1117
-
number of gids, equivalent to number of unique locations
1118
-
1119
-
Returns
1120
-
-------
1121
-
weather_ds: xarray.Dataset
1122
-
Weather dataset of the same format/shapes given by a `pvdeg.weather.get` geospatial call or `pvdeg.weather.weather_distributed` call or `GeosptialScenario.get_geospatial_data`.
1123
-
"""
1124
-
importdask.arrayasda
1125
-
1126
-
1127
-
1128
-
shapes= {
1129
-
"temp_air": ("gid", "time"),
1130
-
"relative_humidity": ("gid", "time"),
1131
-
"ghi": ("gid", "time"),
1132
-
"dni": ("gid", "time"),
1133
-
"dhi": ("gid", "time"),
1134
-
"IR(h)": ("gid", "time"),
1135
-
"wind_speed": ("gid", "time"),
1136
-
"wind_direction": ("gid", "time"),
1137
-
"pressure": ("gid", "time"),
1138
-
}
1139
-
attrs= {}
1140
-
global_attrs= {}
1106
+
# shapes = shapes | nsrdb_extra_shapes
1107
+
shapes=nsrdb_shapes
1108
+
elifdatabase=="PVGIS":
1109
+
shapes=pvgis_shapes
1110
+
else:
1111
+
raiseValueError(f"database must be PVGIS, NSRDB, PSM3 not {database}")
0 commit comments