Skip to content

ENH: Allow passing in arguments into rasterio.warp.transform in rio.reproject #369

@snowman2

Description

@snowman2

https://rasterio.readthedocs.io/en/latest/api/rasterio.warp.html#rasterio.warp.reproject

There are additional arguments that could be passed in such as:

gcps (sequence of GroundControlPoint, optional) – Ground control points for the source. An error will be raised if this parameter is defined together with src_transform or rpcs.

rpcs (RPC or dict, optional) – Rational polynomial coefficients for the source. An error will be raised if this parameter is defined together with src_transform or gcps.

src_alpha (int, optional) – Index of a band to use as the alpha band when warping.

dst_alpha (int, optional) – Index of a band to use as the alpha band when warping.

num_threads (int, optional) – The number of warp worker threads. Default: 1.

init_dest_nodata (bool) – Flag to specify initialization of nodata in destination; prevents overwrite of previous warps. Defaults to True.

warp_mem_limit (int, optional) – The warp operation memory limit in MB. Larger values allow the warp operation to be carried out in fewer chunks. The amount of memory required to warp a 3-band uint8 2000 row x 2000 col raster to a destination of the same size is approximately 56 MB. The default (0) means 64 MB with GDAL 2.2.

kwargs (dict, optional) – Additional arguments passed to transformation function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalIdea for a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions