From fb0c7d3566b71618d405616b14f4bd3bc1163659 Mon Sep 17 00:00:00 2001 From: Jeroen Dries Date: Thu, 24 Aug 2023 07:06:53 +0200 Subject: [PATCH] date fixes https://github.com/Open-EO/openeo-geopyspark-driver/issues/34 --- .../openeo/geotrellis/geotiff/AgEra5PyramidFactoryTest.scala | 2 +- .../geotrellis/layers/GlobalNetCdfFileLayerProviderTest.scala | 2 +- .../geotrellis/layers/Sentinel2FileLayerProviderTest.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/geotiff/AgEra5PyramidFactoryTest.scala b/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/geotiff/AgEra5PyramidFactoryTest.scala index db8a0fe14..4b046bd9c 100644 --- a/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/geotiff/AgEra5PyramidFactoryTest.scala +++ b/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/geotiff/AgEra5PyramidFactoryTest.scala @@ -114,7 +114,7 @@ class AgEra5PyramidFactoryTest { ) val from = LocalDate.of(2020, 4, 1).atStartOfDay(ZoneId.of("UTC")) - val to = from plusWeeks 1 + val to = from plusWeeks 1 plusDays(1) val bbox1 = Extent(-9.0, 51.0, -1.0, 59.0) val bbox2 = Extent(1.0, 41.0, 9.0, 49.0) diff --git a/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/layers/GlobalNetCdfFileLayerProviderTest.scala b/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/layers/GlobalNetCdfFileLayerProviderTest.scala index 77f1c58aa..da785068b 100644 --- a/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/layers/GlobalNetCdfFileLayerProviderTest.scala +++ b/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/layers/GlobalNetCdfFileLayerProviderTest.scala @@ -189,7 +189,7 @@ class GlobalNetCdfFileLayerProviderTest { @Test def zonalMeanWithOpensearchClient(): Unit = { val from = LocalDate.of(2017, 1, 10).atStartOfDay(ZoneId.of("UTC")) - val to = LocalDate.of(2017, 1, 31).atStartOfDay(ZoneId.of("UTC")) + val to = LocalDate.of(2017, 2, 1).atStartOfDay(ZoneId.of("UTC")) val boundingBox = ProjectedExtent(Extent(-86.30859375, 29.84064389983441, -80.33203125, 35.53222622770337), LatLng) val layer = layerProvider2.readTileLayer(from, to, boundingBox, sc = sc).cache() diff --git a/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/layers/Sentinel2FileLayerProviderTest.scala b/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/layers/Sentinel2FileLayerProviderTest.scala index c4287655b..84b1bb848 100644 --- a/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/layers/Sentinel2FileLayerProviderTest.scala +++ b/openeo-geotrellis/src/test/scala/org/openeo/geotrellis/layers/Sentinel2FileLayerProviderTest.scala @@ -324,7 +324,7 @@ class Sentinel2FileLayerProviderTest extends RasterMatchers { println(SizeEstimator.estimate(localData)) println((System.currentTimeMillis()-time)/1000) println(localData.map(_._1.time).mkString(";")) - assertEquals(18,localData.length) + assertEquals(17,localData.length) assertEquals(4,localData(0)._2.bandCount) assertFalse(localData(0)._2.band(0).isNoDataTile) assertEquals(ShortUserDefinedNoDataCellType(32767),localData(0)._2.band(1).cellType)