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

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

Closed
snowman2 opened this issue Jul 1, 2021 · 1 comment · Fixed by #370
Closed

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

snowman2 opened this issue Jul 1, 2021 · 1 comment · Fixed by #370
Labels
proposal Idea for a new feature.

Comments

@snowman2
Copy link
Member

snowman2 commented Jul 1, 2021

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.
@snowman2 snowman2 added the proposal Idea for a new feature. label Jul 1, 2021
@snowman2
Copy link
Member Author

snowman2 commented Jul 1, 2021

Related to #339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Idea for a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant