Skip to content

help with rotating a data array #280

Answered by snowman2
adamancer asked this question in Q&A
Discussion options

You must be logged in to vote

I don't see the rotation component in your dataset using rasterio:

with rasterio.open("f190808t01p00r07_corr_v111_1293nm.tif") as rds:
    print(rds.transform.to_gdal())
(305827.93, 14.25739965507221, 0.0, 5223236.6, 0.0, -14.25739965507221)

Or with gdal:

ds = gdal.Open("f190808t01p00r07_corr_v111_1293nm.tif")
print(ds.GetGeoTransform())
(305827.93, 14.25739965507221, 0.0, 5223236.6, 0.0, -14.25739965507221)

Version information:

  • rasterio 1.2
  • GDAL 3.1.4

What are you using to get the GeoTransform with the rotation component?

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@adamancer
Comment options

@snowman2
Comment options

@snowman2
Comment options

@adamancer
Comment options

@snowman2
Comment options

Answer selected by adamancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants