0

I have NumPy array with one band and no CRS. I do have the shape of the image and the coordinates of the bbox, in WGS84. I would like to reproject it based on bounding box and the shape.

I have managed to create an affine matrix as tuple using rasterio but not sure how can I proceed with that.

This is what I did:

rasterio.transform.from_bounds(
    -101.7359960059834,
      20.21904081937658,
    -100.5717967351885,
      20.8312118894487,
    1103,
    2039
)


>>>Affine(0.0010554843796871222, 0.0, -101.7359960059834,
       0.0, -0.0003002310299519955, 20.8312118894487)

So now I have the affine but I don't know how to reproject my array.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.