Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to netcdf read process #460

Merged
merged 28 commits into from
Feb 13, 2024
Merged

Fix to netcdf read process #460

merged 28 commits into from
Feb 13, 2024

Conversation

sllynn
Copy link
Contributor

@sllynn sllynn commented Nov 20, 2023

Working around the repeated calls to gdalinfo during reads to check for empty tiles when rasters have many bands.

Copy link

codecov bot commented Nov 20, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (eef2dd2) 93.81% compared to head (32d6f76) 93.99%.
Report is 32 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #460      +/-   ##
==========================================
+ Coverage   93.81%   93.99%   +0.18%     
==========================================
  Files         241      245       +4     
  Lines        6244     6548     +304     
  Branches      108      113       +5     
==========================================
+ Hits         5858     6155     +297     
- Misses        386      393       +7     
Files Coverage Δ
...scala/com/databricks/labs/mosaic/core/Mosaic.scala 100.00% <100.00%> (ø)
...cks/labs/mosaic/core/geometry/MosaicGeometry.scala 76.38% <ø> (+6.38%) ⬆️
.../labs/mosaic/core/geometry/MosaicGeometryJTS.scala 95.39% <100.00%> (+0.83%) ⬆️
...ks/labs/mosaic/core/geometry/api/GeometryAPI.scala 94.87% <100.00%> (+15.92%) ⬆️
...bricks/labs/mosaic/core/index/BNGIndexSystem.scala 99.01% <100.00%> (-0.02%) ⬇️
...cks/labs/mosaic/core/index/CustomIndexSystem.scala 90.38% <100.00%> (+2.64%) ⬆️
...mosaic/core/raster/gdal/MosaicRasterBandGDAL.scala 84.31% <100.00%> (+0.64%) ⬆️
...core/raster/operator/clip/RasterClipByVector.scala 100.00% <100.00%> (ø)
...bs/mosaic/core/raster/operator/gdal/GDALCalc.scala 75.00% <100.00%> (ø)
...core/raster/operator/retile/RasterTessellate.scala 94.44% <100.00%> (ø)
... and 14 more

... and 3 files with indirect coverage changes

@CLAassistant
Copy link

CLAassistant commented Nov 27, 2023

CLA assistant check
All committers have signed the CLA.

@sllynn sllynn marked this pull request as ready for review January 30, 2024 11:31
# Conflicts:
#	python/mosaic/api/aggregators.py
#	python/mosaic/api/fuse.py
#	python/mosaic/api/gdal.py
#	python/mosaic/api/raster.py
#	python/mosaic/core/library_handler.py
#	python/test/utils/setup_gdal.py
#	python/test/utils/spark_test_case.py
val result = GDALTranslate.executeTranslate(
rasterPath,
raster,
command = s"gdal_translate -of $shortDriver -b ${i + 1} -co COMPRESS=DEFLATE"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sllynn this should not explicitly state DEFLATE, this can be inferred from the raster. and we should propagate.
I will fix it in my PR so should not block the PR

@@ -39,7 +40,22 @@ trait RST_TessellateBehaviors extends QueryTest {

val result = gridTiles.collect()

result.length should be(380)
result.length should be(980)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sllynn this doesnt feel right. why did this go from 380 to 980?

@milos-colic milos-colic merged commit a7ab70b into main Feb 13, 2024
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants