Re: Calculate transformation using output dimensions


Alan Snow
 

Looks like you are most of the way there.

If you have a dataset open with `rasterio.open`, then you should be able to get the information you need for the input:

with rasterio.open('/path/do/dataset.tif') as rds:
    left, bottom, right, top = rds.bounds
    src_crs = rds.crs
    width = rds.width
    height = rds.height

Join main@rasterio.groups.io to automatically receive all group messages.