How to use the pyinterp.core.cartesian function in pyinterp

To help you get started, we’ve selected a few pyinterp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CNES / pangeo-pyinterp / tests / test_cartesian.py View on Github external
def test_nearest(self):
        self._test(core.cartesian.Nearest3D(), "mss_cartesian_nearest3d")
github CNES / pangeo-pyinterp / tests / test_cartesian.py View on Github external
def test_bilinear(self):
        self._test(core.cartesian.Bilinear3D(), "mss_cartesian_bilinear3d")
github CNES / pangeo-pyinterp / tests / test_cartesian.py View on Github external
def test_idw(self):
        self._test(core.cartesian.InverseDistanceWeighting3D(),
                   "mss_cartesian_idw3d")
github CNES / pangeo-pyinterp / tests / test_cartesian.py View on Github external
def test_nearest(self):
        self._test(core.cartesian.Nearest2D(), "mss_cartesian_nearest")
github CNES / pangeo-pyinterp / tests / test_cartesian.py View on Github external
def _load_data(cls):
        with netCDF4.Dataset(cls.GRID) as ds:
            z = ds.variables['mss'][:].T
            z[z.mask] = float("nan")
            return core.cartesian.Bivariate(
                core.Axis(ds.variables['lon'][:], is_circle=True),
                core.Axis(ds.variables['lat'][:]), z.data)
github CNES / pangeo-pyinterp / tests / test_cartesian.py View on Github external
def _load_data(cls):
        with netCDF4.Dataset(cls.GRID) as ds:
            z = ds.variables['tcw'][:].T
            z[z.mask] = float("nan")
            return core.cartesian.Trivariate(
                core.Axis(ds.variables['longitude'][:], is_circle=True),
                core.Axis(ds.variables['latitude'][:]),
                core.Axis(ds.variables['time'][:]), z.data)