Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • It's probably working but I can't verify it for the time being, because the image I'm generating with SNAP seems to lack the right ellipsoid (even when I'm terrain-correcting it with WGS84 as the map projection). I noticed this problem both with projection.GetProjection and with QGIS. Any idea what's causing this? Commented Apr 18, 2017 at 20:28
  • @hakim you can ask another question. Commented Apr 18, 2017 at 23:03
  • I've tested your code with and without del dataset, and the projection was the same both with gdalinfo and with dataset.GetProjection (I'm using gdal 2.1.2). I think SNAP is unable to read the coordinates because of the Corner Coordinates parameter, which is expressed in pixels instead of being given as a (lat, lon) angle in degrees. Do you know how to convert this parameter to degrees? Commented Apr 26, 2017 at 22:26
  • @hakim Using del to dereference the dataset is only required if you need to access the dataset before your script finishes (or you use an IDE that holds the variables open after the script finishes). I don't know why snap doesn't understand the gdal georeferencing. Commented Apr 27, 2017 at 7:14
  • 1
    @hakim yes that is correct. If you had asked about attaching georeferencing as well as projection info I would have included that in the example. Commented May 3, 2017 at 9:28