Skip to content

Add parameters to GDAL writer for consistent DTM creation #32

@tvanderweide

Description

@tvanderweide

For the 2026 season I'd like to use a consistent/static GRID pattern when creating a DTM instead of relying on the automatic bounds. This means adding some OPTIONAL parameters to the gdal.writer potion of the pipeline.

{
                "type": "writers.gdal",
                "filename": str(out_tif),
                "gdaldriver": "GTiff",
                "gdalopts": GEOTIFF_GDALOPTS,
                "output_type": "idw",
                "resolution": resolution,
                "radius": radius,
                "power": power,
                "origin_x": origin_x,
                "origin_y": origin_y,
                "width": width,
                "height": height,
                "nodata": NODATA
            }

where, GEOTIFF_GDALOPTS = "compress=lzw,tiled=yes"
and the resolution, radius, power, origin_x, origin_y, width, and height are explicitly defined and loaded from a JSON (attached).

master_grid.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions