Skip to content

Commit

Permalink
Variance in datetime parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey-Vervoort-KNMI committed Dec 1, 2023
1 parent 09975ea commit 2097ce1
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
},
"t": {
"values": [
"2022-12-31T00:50:00Z",
"2022-12-31T01:00:00Z",
"2022-12-31T01:10:00Z",
"2022-12-31T01:20:00Z",
"2022-12-31T01:30:00Z",
"2022-12-31T01:40:00Z",
"2022-12-31T01:50:00Z",
"2022-12-31T02:00:00Z"
"2022-12-31T22:50:00Z",
"2022-12-31T23:00:00Z",
"2022-12-31T23:10:00Z",
"2022-12-31T23:20:00Z",
"2022-12-31T23:30:00Z",
"2022-12-31T23:40:00Z",
"2022-12-31T23:50:00Z"
]
}
},
Expand Down Expand Up @@ -103,19 +102,18 @@
"x"
],
"shape": [
8,
7,
1,
1
],
"values": [
236.4,
240.3,
250.4,
239.2,
232.7,
241.4,
247.9,
248.1
214.8,
215,
212.5,
213.9,
216.6,
213.9,
212.3
]
},
"ff": {
Expand All @@ -127,19 +125,18 @@
"x"
],
"shape": [
8,
7,
1,
1
],
"values": [
5.38,
5.25,
4.04,
4.06,
4.41,
4.31,
4.57,
4.37
10.68,
8.84,
9.09,
8.64,
8.72,
9.59,
10.7
]
},
"rh": {
Expand All @@ -151,19 +148,18 @@
"x"
],
"shape": [
8,
7,
1,
1
],
"values": [
97,
96,
96,
96,
96,
97,
96,
95
56,
56,
55,
58,
56,
56,
57
]
}
}
Expand All @@ -186,14 +182,13 @@
},
"t": {
"values": [
"2022-12-31T00:50:00Z",
"2022-12-31T01:00:00Z",
"2022-12-31T01:10:00Z",
"2022-12-31T01:20:00Z",
"2022-12-31T01:30:00Z",
"2022-12-31T01:40:00Z",
"2022-12-31T01:50:00Z",
"2022-12-31T02:00:00Z"
"2022-12-31T22:50:00Z",
"2022-12-31T23:00:00Z",
"2022-12-31T23:10:00Z",
"2022-12-31T23:20:00Z",
"2022-12-31T23:30:00Z",
"2022-12-31T23:40:00Z",
"2022-12-31T23:50:00Z"
]
}
},
Expand Down Expand Up @@ -270,19 +265,18 @@
"x"
],
"shape": [
8,
7,
1,
1
],
"values": [
237.9,
235.4,
240,
243.2,
243.2,
240,
239.9,
229.5
211.5,
211.2,
209.6,
213.9,
216.3,
213.7,
219.1
]
},
"ff": {
Expand All @@ -294,19 +288,18 @@
"x"
],
"shape": [
8,
7,
1,
1
],
"values": [
4.26,
4.72,
4.1,
3.79,
4.2,
3.83,
3.69,
3.3
8.37,
7.71,
8.35,
8.45,
8.95,
9.17,
9.4
]
},
"rh": {
Expand All @@ -318,19 +311,18 @@
"x"
],
"shape": [
8,
7,
1,
1
],
"values": [
95,
94,
94,
94,
94,
93,
93,
94
58,
58,
58,
58,
58,
58,
59
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@
},
"t": {
"values": [
"2022-12-31T00:00:00Z",
"2022-12-31T00:10:00Z",
"2022-12-31T00:20:00Z",
"2022-12-31T00:30:00Z",
"2022-12-31T00:40:00Z",
"2022-12-31T00:50:00Z",
"2022-12-31T01:00:00Z",
"2022-12-31T01:10:00Z",
"2022-12-31T01:20:00Z",
"2022-12-31T01:30:00Z",
"2022-12-31T01:40:00Z",
"2022-12-31T01:50:00Z",
"2022-12-31T02:00:00Z"
"2022-12-31T01:00:00Z"
]
}
},
Expand Down Expand Up @@ -100,19 +99,18 @@
"x"
],
"shape": [
8,
7,
1,
1
],
"values": [
224.3,
226,
228.3,
230.3,
234.9,
237.9,
235.4,
240,
243.2,
243.2,
240,
239.9,
229.5
235.4
]
},
"ff": {
Expand All @@ -124,19 +122,18 @@
"x"
],
"shape": [
8,
7,
1,
1
],
"values": [
4.26,
4.72,
4.1,
3.79,
4.95,
4.43,
4.35,
3.77,
4.2,
3.83,
3.69,
3.3
4.26,
4.72
]
},
"rh": {
Expand All @@ -148,18 +145,17 @@
"x"
],
"shape": [
8,
7,
1,
1
],
"values": [
95,
94,
94,
94,
94,
93,
93,
95,
95,
95,
95,
94
]
}
Expand Down
4 changes: 2 additions & 2 deletions integration-test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_from_a_single_collection_get_a_single_location():
collection_id = "observations"
location_id = "06260"
parameters = "dd,ff,rh"
datetime = "2022-12-31T00:50:00Z/2022-12-31T02:10:00Z"
datetime = "../2022-12-31T01:10:00Z"
actual_response = requests.get(
url=BASE_URL + f"/collections/{collection_id}/locations/{location_id}"
f"?parameter-name={parameters}&datetime={datetime}"
Expand Down Expand Up @@ -113,7 +113,7 @@ def test_from_a_single_collection_get_an_area_with_multiple_parameters():
collection_id = "observations"
coords = "POLYGON((5.0 52.0, 6.0 52.0,6.0 52.1,5.0 52.1, 5.0 52.0))"
parameters = "dd,ff,rh"
datetime = "2022-12-31T00:50:00Z/2022-12-31T02:10:00Z"
datetime = "2022-12-31T22:50:00Z/.."
actual_response = requests.get(
url=BASE_URL + f"/collections/{collection_id}/area"
f"?coords={coords}&parameter-name={parameters}&datetime={datetime}"
Expand Down

0 comments on commit 2097ce1

Please sign in to comment.