-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
Some datasets might have negative index values in their connectivity array (likely for NaN representation?), e.g. "https://web.lcrc.anl.gov/public/e3sm/inputdata/share/meshes/mpas/ocean/oQU480.230422.nc" as shown in the example below, which can break the code.
To Reproduce
Steps to reproduce the behavior:
- Open the dataset
import requests
small_file_480km = requests.get("https://web.lcrc.anl.gov/public/e3sm/inputdata/share/meshes/mpas/ocean/oQU480.230422.nc").content
ds_small_480km = ux.open_dataset(small_file_480km, small_file_480km)
- Look into the minimum value of
ds_small_480km.uxgrid.Mesh2_node_faces
Expected behavior
Such values should be properly read in (i.e. np.nan etc.) when digesting the dataset.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
📚 Backlog