-
Notifications
You must be signed in to change notification settings - Fork 66
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
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ 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
|
… reference of rasters
…a/fix/netcdf # Conflicts: # src/main/scala/com/databricks/labs/mosaic/core/types/model/MosaicRasterTile.scala
# Conflicts: # src/main/scala/com/databricks/labs/mosaic/core/geometry/MosaicGeometryESRI.scala # src/test/scala/com/databricks/labs/mosaic/core/index/H3IndexSystemTest.scala
# 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" |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
Working around the repeated calls to
gdalinfo
during reads to check for empty tiles when rasters have many bands.