Opened 8 years ago

Closed 9 months ago

#4370 closed enhancement (wontfix)

[PATCH] gdal_calc.py: support raster files with different dimensions

Reported by: nonpenso Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: raster calculator
Cc:

Description

I have done some enhancements to the command line raster calculator gdal_calc.py. This new script supports raster files with different dimensions, the output extent is set on the overlapping area.

New process restrictions are:

  • layers must have the same projection
  • layers must have the same pixel size and rotation
  • layers must be snapped: layers aligned with overlapping pixels
  • layers must overlap: layers with a common extent

All restrictions are checked before the computation. Concerning pixel size and snap, the checks are performed with a given tolerance of 0.00001: variable name is "Tolfactor".

Attachments (1)

gdal_calc.patch.py (14.3 KB) - added by nonpenso 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by nonpenso

Attachment: gdal_calc.patch.py added

comment:1 Changed 5 years ago by Jukka Rahkonen

It seems that nobody ever had a look at this patch. Could it still contain some good stuff?

comment:2 Changed 5 years ago by rbarnes

Handling different dimensions is a feature I would appreciate gdal_calc.py having.

comment:3 Changed 5 years ago by Even Rouault

Summary: Enhancements to gdal_calc.py - raster calculator[PATCH] gdal_calc.py: support raster files with different dimensions

comment:4 Changed 9 months ago by Even Rouault

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub?. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.