Skip to content

3D interpolation Qhull error #444

Description

@browniea

Using Interp.griddata ran into a Qhull error when interpolating. This code seemed to fix the issue:

        bad = ~np.isfinite(sigma) | (np.abs(sigma) > 1e6)
        if bad.any():
            sigma[bad] = -1.0
            _ds["mesh2d_interface_sigma"] = xr.DataArray(
                sigma,
                dims=_ds["mesh2d_interface_sigma"].dims,
                attrs=_ds["mesh2d_interface_sigma"].attrs,
            )

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

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