Skip to content

Commit 7a10277

Browse files
committed
update tests to data version 006
1 parent d3d0e7f commit 7a10277

7 files changed

+36
-36
lines changed

Diff for: icepyx/core/query.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class Query(GenQuery, EarthdataAuthMixin):
341341
Available data products can be found at: https://nsidc.org/data/icesat-2/data-sets
342342
version : string, default most recent version
343343
Product version, given as a 3 digit string. If no version is given, the current
344-
version is used. Example: "004"
344+
version is used. Example: "006"
345345
cycles : string or a list of strings, default all available orbital cycles
346346
Product cycle, given as a 2 digit string. If no cycle is given, all available
347347
cycles are used. Example: "04"

Diff for: icepyx/tests/test_APIformatting.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_CMRparams_no_other_inputs():
139139

140140
CMRparams.build_params(
141141
product="ATL06",
142-
version="005",
142+
version="006",
143143
start=dt.datetime(2019, 2, 20, 0, 0),
144144
end=dt.datetime(2019, 2, 24, 23, 59, 59),
145145
extent_type="bounding_box",
@@ -148,7 +148,7 @@ def test_CMRparams_no_other_inputs():
148148
obs_fmted_params = CMRparams.fmted_keys
149149
exp_fmted_params = {
150150
"short_name": "ATL06",
151-
"version": "005",
151+
"version": "006",
152152
"temporal": "2019-02-20T00:00:00Z,2019-02-24T23:59:59Z",
153153
"bounding_box": "-55.0,68.0,-48.0,71.0",
154154
}

Diff for: icepyx/tests/test_behind_NSIDC_API_login.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@pytest.fixture(scope="module")
1313
def reg():
1414
live_reg = ipx.Query(
15-
"ATL06", [-55, 68, -48, 71], ["2019-02-22", "2019-02-28"], version="005"
15+
"ATL06", [-55, 68, -48, 71], ["2019-02-22", "2019-02-28"], version="006"
1616
)
1717
yield live_reg
1818
del live_reg

Diff for: icepyx/tests/test_granules.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -609,15 +609,15 @@ def test_correct_granule_list_returned():
609609
"ATL06",
610610
[-55, 68, -48, 71],
611611
["2019-02-20", "2019-02-28"],
612-
version="5",
612+
version="6",
613613
)
614614

615615
(obs_grans,) = reg_a.avail_granules(ids=True)
616616
exp_grans = [
617-
"ATL06_20190221121851_08410203_005_01.h5",
618-
"ATL06_20190222010344_08490205_005_01.h5",
619-
"ATL06_20190225121032_09020203_005_01.h5",
620-
"ATL06_20190226005526_09100205_005_01.h5",
617+
"ATL06_20190221121851_08410203_006_01.h5",
618+
"ATL06_20190222010344_08490205_006_01.h5",
619+
"ATL06_20190225121032_09020203_006_01.h5",
620+
"ATL06_20190226005526_09100205_006_01.h5",
621621
]
622622
assert set(obs_grans) == set(exp_grans)
623623

Diff for: icepyx/tests/test_query.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_icepyx_boundingbox_query():
2020
["2019-02-22", "2019-02-28"],
2121
start_time="03:30:00",
2222
end_time="21:30:00",
23-
version="5",
23+
version="6",
2424
)
2525
obs_tuple = (
2626
reg_a.product,
@@ -35,7 +35,7 @@ def test_icepyx_boundingbox_query():
3535
["2019-02-22", "2019-02-28"],
3636
"03:30:00",
3737
"21:30:00",
38-
"005",
38+
"006",
3939
("bounding_box", [-64.0, 66.0, -55.0, 72.0]),
4040
)
4141

Diff for: icepyx/tests/test_read.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_check_datasource_type():
1515
[
1616
("./", "is2_local"),
1717
(
18-
"s3://nsidc-cumulus-prod-protected/ATLAS/ATL03/004/2019/11/30/ATL03_20191130221008_09930503_004_01.h5",
18+
"s3://nsidc-cumulus-prod-protected/ATLAS/ATL03/006/2019/11/30/ATL03_20191130221008_09930503_006_01.h5",
1919
"is2_s3",
2020
),
2121
],

Diff for: icepyx/tests/test_visualization.py

+24-24
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,38 @@
1010
(
1111
1,
1212
[
13-
"ATL06_20200702014158_01020810_004_01.h5",
14-
"ATL06_20200703011618_01170810_004_01.h5",
13+
"ATL06_20200702014158_01020810_006_01.h5",
14+
"ATL06_20200703011618_01170810_006_01.h5",
1515
],
1616
),
1717
(
1818
2,
1919
[
20-
"ATL06_20200612151119_11920712_004_01.h5",
21-
"ATL06_20200616021517_12450710_004_01.h5",
22-
"ATL06_20200702014158_01020810_004_01.h5",
23-
"ATL06_20200703011618_01170810_004_01.h5",
20+
"ATL06_20200612151119_11920712_006_01.h5",
21+
"ATL06_20200616021517_12450710_006_01.h5",
22+
"ATL06_20200702014158_01020810_006_01.h5",
23+
"ATL06_20200703011618_01170810_006_01.h5",
2424
],
2525
),
2626
(
2727
3,
2828
[
29-
"ATL06_20200612151119_11920712_004_01.h5",
30-
"ATL06_20200616021517_12450710_004_01.h5",
31-
"ATL06_20200702014158_01020810_004_01.h5",
32-
"ATL06_20200703011618_01170810_004_01.h5",
29+
"ATL06_20200612151119_11920712_006_01.h5",
30+
"ATL06_20200616021517_12450710_006_01.h5",
31+
"ATL06_20200702014158_01020810_006_01.h5",
32+
"ATL06_20200703011618_01170810_006_01.h5",
3333
],
3434
),
3535
],
3636
)
3737
def test_files_in_latest_cycles(n, exp):
3838
files = [
39-
"ATL06_20190710071617_01860412_004_01.h5",
40-
"ATL06_20190713182016_02390410_004_01.h5",
41-
"ATL06_20200612151119_11920712_004_01.h5",
42-
"ATL06_20200616021517_12450710_004_01.h5",
43-
"ATL06_20200702014158_01020810_004_01.h5",
44-
"ATL06_20200703011618_01170810_004_01.h5",
39+
"ATL06_20190710071617_01860412_006_01.h5",
40+
"ATL06_20190713182016_02390410_006_01.h5",
41+
"ATL06_20200612151119_11920712_006_01.h5",
42+
"ATL06_20200616021517_12450710_006_01.h5",
43+
"ATL06_20200702014158_01020810_006_01.h5",
44+
"ATL06_20200703011618_01170810_006_01.h5",
4545
]
4646
cycles = [8, 7, 4]
4747
obs = vis.files_in_latest_n_cycles(files, cycles=cycles, n=n)
@@ -51,14 +51,14 @@ def test_files_in_latest_cycles(n, exp):
5151
@pytest.mark.parametrize(
5252
"filename, expect",
5353
[
54-
("ATL06_20190525202604_08790310_004_01.h5", [879, 3, "2019-05-25"]),
55-
("ATL06_20190614194425_11840310_004_01.h5", [1184, 3, "2019-06-14"]),
56-
("ATL07-02_20190624063616_13290301_004_01.h5", [1329, 3, "2019-06-24"]),
57-
("ATL07-02_20190602190916_10010301_004_01.h5", [1001, 3, "2019-06-02"]),
58-
("ATL10-02_20190611072656_11310301_004_01.h5", [1131, 3, "2019-06-11"]),
59-
("ATL10-02_20190731045538_05060401_004_01.h5", [506, 4, "2019-07-31"]),
60-
("ATL12_20190615023544_11890301_004_01.h5", [1189, 3, "2019-06-15"]),
61-
("ATL12_20190721170332_03610401_004_01.h5", [361, 4, "2019-07-21"]),
54+
("ATL06_20190525202604_08790310_006_01.h5", [879, 3, "2019-05-25"]),
55+
("ATL06_20190614194425_11840310_006_01.h5", [1184, 3, "2019-06-14"]),
56+
("ATL07-02_20190624063616_13290301_006_01.h5", [1329, 3, "2019-06-24"]),
57+
("ATL07-02_20190602190916_10010301_006_01.h5", [1001, 3, "2019-06-02"]),
58+
("ATL10-02_20190611072656_11310301_006_01.h5", [1131, 3, "2019-06-11"]),
59+
("ATL10-02_20190731045538_05060401_006_01.h5", [506, 4, "2019-07-31"]),
60+
("ATL12_20190615023544_11890301_006_01.h5", [1189, 3, "2019-06-15"]),
61+
("ATL12_20190721170332_03610401_006_01.h5", [361, 4, "2019-07-21"]),
6262
],
6363
)
6464
def test_gran_paras(filename, expect):

0 commit comments

Comments
 (0)