Skip to content

'Grid' object is not subscriptable #149

@alment-Li

Description

@alment-Li

grid = pyart.io.read_grid(grid_file)
pydda.initialization.make_wind_field_from_profile(grid)
lib\site-packages\pydda\initialization\wind_fields.py", line 365, in make_wind_field_from_profile
analysis_grid_shape = Grid[vel_field].values.shape
TypeError: 'Grid' object is not subscriptable

Why does the latest version of pydda report the aforementioned error, while version 1.5.1 does not? If I want to use pydda version 2.2.0, how should I modify the code?

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