openradar / openradar/PyDDA

'Grid' object is not subscriptable

Open
#149 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
112
Forks
49
Avg merge
12h 52m
Merged PRs (30d)
2

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the traceback with pyart.io.read_grid and pydda.initialization.make_wind_field_from_profile, then inspect pydda/initialization/wind_fields.py at line 365 and compare behavior between versions 1.5.1 and 2.2.0. Done means the reported grid input works on version 2.2.0 without the TypeError, with the required usage or compatibility change clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.