Skip to content

Commit 3526daf

Browse files
authored
Merge pull request #826 from dcs4cop/forman-xxx-use_stac_datacubes_ext
Use STAC datacube extension
2 parents c48d17c + 32af8d5 commit 3526daf

File tree

6 files changed

+1387
-39
lines changed

6 files changed

+1387
-39
lines changed

CHANGES.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@
4747
Zarr files from Azure bolb storage using the new `abfs` data store.
4848

4949
* Added a catalog API compliant to [STAC](https://stacspec.org/en/) to
50-
xcube server.
51-
It serves a single collection named "datasets" whose items are the
52-
datasets published by the service. (#455)
50+
xcube server. (#455)
51+
- It serves a single collection named "datacubes" whose items are the
52+
datasets published by the service.
53+
- The collection items make use the STAC
54+
[datacube](https://github.com/stac-extensions/datacube) extension.
5355

5456
* Simplified the cloud deployment of xcube server/viewer applications (#815).
5557
This has been achieved by the following new xcube server features:

test/util/test_jsonencoder.py

+6
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ def test_numpy_arrays(self):
161161
self.assertIsNot(array, to_json_value(array))
162162
self.assertEqual([], to_json_value(array))
163163

164+
array = numpy.array(["2020-01-02 10:00:05",
165+
"2020-01-03 14:10:36"], dtype=np.datetime64)
166+
self.assertIsNot(array, to_json_value(array))
167+
self.assertEqual(['2020-01-02T10:00:05Z',
168+
'2020-01-03T14:10:36Z'], to_json_value(array))
169+
164170
# noinspection PyMethodMayBeStatic
165171
def test_fails_correctly(self):
166172
with pytest.raises(TypeError,

0 commit comments

Comments
 (0)