Opened 12 years ago

Closed 5 years 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 12 years ago.

Download all attachments as: .zip

Change History (5)

by nonpenso, 12 years ago

Attachment: gdal_calc.patch.py added

comment:1 by Jukka Rahkonen, 9 years ago

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

comment:2 by rbarnes, 9 years ago

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

comment:3 by Even Rouault, 9 years ago

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

comment:4 by Even Rouault, 5 years ago

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.