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

Issue with using gdal_calc.py to read 2 files of 128 MBs each #468

Open
Apoorv2308 opened this issue Nov 29, 2023 · 0 comments
Open

Issue with using gdal_calc.py to read 2 files of 128 MBs each #468

Apoorv2308 opened this issue Nov 29, 2023 · 0 comments

Comments

@Apoorv2308
Copy link

I am trying to sum the 2 raster files using gdal_calc.py and it fails giving an error - file too large
While summing 2 raster files the operation fails. I am using the gdal that gets installed as part of databricks-mosaic.

To Reproduce
Steps to reproduce the behavior:

  1. Run
    %sh
    gdal_calc.py -A 'raster_file1.tif' -B 'raster_file2.tif' --outfile='file.tif' --calc='A+B'
  2. See error

Expected behavior
The command should run and create the output tif file.

Screenshots
Attached the screenshot for reference

Additional context
Milos mentioned that there is a UDF that could distribute gdal operations on workers and that could resolve it.
GDAL_calc error

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

No branches or pull requests

1 participant