Is it possible for me to use the geolocation through the snappy module? My aim is to eventually perform image alignment of sentinel products.
In this post I explained how to get latitude and longitude values from a product:
actually the official intended way to get the lat/lon values is via the Geocoding.
from snappy import (GeoPos, PixelPos)
gc = sourceProduct.getSceneGeoCoding()
#or in multi-resolution case use the geo-coding of the raster
gc = sourceProduct.getRasterDataNode(“name”).getGeoCoding()
geoPos = gc.getGeoPos(PixelPos(x, y), None)
lat = geoPos.getLat()
lon = geoPos.getLon()
You would iterate over your pixel indices (x,y) and fill an array. But this can be tedious and actually you a…
@marpet, do you by any chance know what is the difference between collocation and coregistration in SNAP? Which one of these functions is actually performing image registration between two products?