import os import numpy as np import pytest import xarray as xr import yaml import mvcm.restoral as restoral # data # thresholds # scene_flag @pytest.fixture def fixturepath(): return os.path.join(os.path.dirname(__file__), "fixtures") @pytest.fixture def data_path(): return "/ships19/hercules/pveglio/mvcm_cleanup" @pytest.fixture def thresholds_file(fixturepath): return os.path.join(fixturepath, "thresholds.mvcm.snpp.v0.0.1.yaml") @pytest.fixture def data_file(data_path): return os.path.join(data_path, "viirs_data_A2022173.1312.nc") @pytest.fixture def thresholds(thresholds_file): return yaml.safe_load(open(thresholds_file)) @pytest.fixture def scene_flags(data_path): return os.path.join(data_path, "scene_flags.nc") @pytest.fixture def confidence(data_path): return os.path.join(data_path, "ref_confidence.nc") @pytest.fixture def bits(data_path): return os.path.join(data_path, "bits.nc") # chk_spatial_var def test_spatial_variability(): pass # chk_sunglint def test_sunglint(): pass # chk_shallow_water def test_shallow_water(): pass # chk_land def test_land(): pass # chk_coast def test_coast(): pass # chck_land_night def test_land_night(): pass