Skip to content

Inhomogeneous shape #92

@Miron025

Description

@Miron025

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions