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
Hi I've been trying to load in the Copernicus WISC simulations (now just held in the climate data store) and have been having issues with naming conventions in the StormEurope class.
I've tried changing the .nc variable name to 'lat', 'latitude', and 'latitudes,' but none of those work for this bug.
File ~/opt/anaconda3/envs/climada_env/lib/python3.8/site-packages/climada/hazard/storm_europe.py:216, in StormEurope._read_one_nc(file_name, centroids, intensity_thres)
195 """Read a single WISC footprint. Assumes a time dimension of length 1.
196 Omits a footprint if another file with the same timestamp has already
197 been read.
(...)
212 Hazard instance for one single storm.
213 """
214 ncdf = xr.open_dataset(file_name)
--> 216 if centroids.size != (ncdf.sizes['latitude'] * ncdf.sizes['longitude']):
217 ncdf.close()
218 LOGGER.warning(('Centroids size doesn\'t match NCDF dimensions. '
219 'Omitting file %s.'), file_name)
File ~/opt/anaconda3/envs/climada_env/lib/python3.8/site-packages/xarray/core/utils.py:453, in Frozen.__getitem__(self, key)
452 def __getitem__(self, key: K) -> V:
--> 453 return self.mapping[key]
KeyError: 'latitude'
The text was updated successfully, but these errors were encountered:
We're also tracking a case where WISC files downloaded from the Copernicus Climate Data Store (CDS) cause a memory overflow when reading them into Climada, see #610 (comment)
Hi I've been trying to load in the Copernicus WISC simulations (now just held in the climate data store) and have been having issues with naming conventions in the StormEurope class.
I've tried changing the .nc variable name to 'lat', 'latitude', and 'latitudes,' but none of those work for this bug.
The text was updated successfully, but these errors were encountered: