Skip to content

Out of bounds error when using 'pf.get_transect'  #178

Description

@mzapponi
  • pyfesom2 version: newest
  • Python version: 3.9.12
  • Operating System: Linux

Description

When calling the function pf.get_transect with the new version of pyfesom an error Index out of bounds is returned.

What I Did

dist, transect_data = pf.get_transect(temp, mesh, lonlat)

Traceback:

File "/work/ba1264/a270210/miniconda3/lib/python3.9/site-packages/pyfesom2/[transect.py](https://transect.py/)", line 92, in get_transect
    transect_data = transect_get_data(data, nodes, mask2d)
  File "/work/ba1264/a270210/miniconda3/lib/python3.9/site-packages/pyfesom2/[transect.py](https://transect.py/)", line 58, in transect_get_data
    transect_data = data3d[nodes,:]
IndexError: index 412253 is out of bounds for axis 0 with size 79

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions