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
When trying to download volume data from DWD, some stations, for example HNR or DRS (from time to time) showing this annyoing error:
In:
volume_velocity = [v[-6:] for v in volume_velocity]
volume_velocity = np.array(volume_velocity).T.tolist()
ValueError Traceback (most recent call last)
Cell In[86], line 2
1 volume_velocity = [v[-6:] for v in volume_velocity]
----> 2 volume_velocity = np.array(volume_velocity).T.tolist()
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (10,) + inhomogeneous part.
This is done by iterating over the different elevation (here 10) and read all available files between certain start_date and end_date. In the example we choose a time range of 30 minutes which should be 6 files per elevation.
After getting back the request from wetterservice we get the buffers and sort the different sweeps into a list of single volumes. During this process the error is raised. It means that there might be one file missing for one or more elevations. We should make this sorting approach and the consecutive reading part more robust to also handle missing files.
This is no error in the wradlib library but an issue of the wradlib-notebooks. So I'll move the issue over there.
When trying to download volume data from DWD, some stations, for example HNR or DRS (from time to time) showing this annyoing error:
In:
volume_velocity = [v[-6:] for v in volume_velocity]
volume_velocity = np.array(volume_velocity).T.tolist()
ValueError Traceback (most recent call last)
Cell In[86], line 2
1 volume_velocity = [v[-6:] for v in volume_velocity]
----> 2 volume_velocity = np.array(volume_velocity).T.tolist()
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (10,) + inhomogeneous part.
Is there any way how to stop this? Thanks
fullcode+error.txt
The text was updated successfully, but these errors were encountered: