Ejemplo n.º 1
0
    def test_dap_access(self):
        ds = open_dataset(
            name="20070917-MODIS_A-JPL-L2P-A2007260000000.L2_LAC_GHRSST-v01.nc",
            dap_url=self.dap_url,
        )

        assert isinstance(ds, xarray.Dataset)
Ejemplo n.º 2
0
    def test_open_dataset_no_cache(self):
        ds = open_dataset(
            name=
            "raven-gr4j-cemaneige/Salmon-River-Near-Prince-George_meteo_daily_3d.nc",
            branch=self.branch,
            cache=False,
        )

        assert (not Path(_default_cache_dir).joinpath(
            "raven-gr4j-cemaneige",
            "Salmon-River-Near-Prince-George_meteo_daily_3d.nc",
        ).exists())
        assert isinstance(ds, xarray.Dataset)