Affine transformation from geocoding


#1

Dear users,

After calibrating, filtering and terrain correction of a Sentinel-1 scene, I would like to obtain the affine transformation corresponding to the geocoding.

Something like https://github.com/commenthol/affinefit could be used to fit an affine transformation to exported GCPs for example. But I wish there would be a way of deriving this transformation directly from the product in snappy?

Best,
josé


#2

Trying to keep this alive… I am now using a workaround:

  1. write product as GeoTiff
  2. read with rasterio
  3. obtain affine parameters (with dataset.transform)
  4. save them to json

I would like to do something similar to number 3. with snappy, is this possible?