Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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