Skip to content

Commit

Permalink
Merge pull request #290 from Open-EO/missing_products_20240513
Browse files Browse the repository at this point in the history
Missing products
  • Loading branch information
EmileSonneveld authored May 20, 2024
2 parents 89d124d + fd8f768 commit 7d56749
Show file tree
Hide file tree
Showing 5 changed files with 799 additions and 7 deletions.
1 change: 1 addition & 0 deletions geopyspark-geotrellis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
<type>scalapb</type>
<outputOptions>grpc</outputOptions> <!-- more scalapb options can be added here -->
<pluginArtifact>com.thesamet.scalapb:protoc-gen-scala:0.9.6:sh:unix</pluginArtifact>
<!--<pluginArtifact>com.thesamet.scalapb:protoc-gen-scala:0.9.6:bat:windows</pluginArtifact>-->
</outputTarget>
</outputTargets>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,8 @@ class FileLayerProvider private(openSearch: OpenSearchClient, openSearchCollecti

requiredSpacetimeKeys = applySpaceTimeMask(datacubeParams, requiredSpacetimeKeys,metadata)
if (isUTM) {
//only for utm is just a safeguard to limit to sentine-1/2 for now
//try to resolve overlap before actually reqding the data
//only for utm is just a safeguard to limit to Sentinel-1/2 for now
//try to resolve overlap before actually reading the data
requiredSpacetimeKeys = requiredSpacetimeKeys.groupByKey().flatMap(t => {

def return_original = t._2.map(source => (t._1,source))
Expand Down Expand Up @@ -1049,7 +1049,7 @@ class FileLayerProvider private(openSearch: OpenSearchClient, openSearchCollecti
if (filteredByCRS.nonEmpty) {
filteredByCRS.map(distance_source => (key, distance_source._2))
} else {
filteredByDistance.filter(_._1._1 == smallestCenterDistance).map(distance_source => (key, distance_source._2))
Seq(filteredByDistance.minBy(_._1._1)).map(distance_source => (key, distance_source._2))
}

}
Expand Down
Loading

0 comments on commit 7d56749

Please sign in to comment.