Issues with the TerraSar-X ossim plugin
Mantis Issue 222, reported by ebarthelet, assigned to echristophe, created: 2011-01-08
-
There is an inversion in the method initGsd() of class ossimTerraSarProductDoc between the X spacing and the Y one. I fixed the bug in the attached files.
-
According to the TerraSar-X Level 1B product format specification, in SSC products, the fields "columnSpacing" and "rowSpacing" (those that are retrieve by ossimTerraSarProductDoc) of the XML metadata file are given in seconds and not in meters. In the specific case of SSC products, I suggest to retrieve the fields "projectedSpacingRange" and "projectedSpacingAzimuth". In the two attached files, I added three new methods to class ossimTerraSarProductDoc (getProductVariant, getProjectedSlantRange & getProjectedAzimuth) and modify the method iniGsd in order to solve the problem.
-
Another suggestion (the last one !). May it be possible to add the following virtual methods to class otb::SarImageMetadataInterface : GetPRF, GetRSF, GetRadarFrequency & GetCEnterIncidenceAngle ? I implemented all these methods in attached files !
Thanks ;-)
1294551219 - christopHi, I'm not sure about the x, y inversion: getColumnSpacing was referring to x and getRowSpacing to y it sounds correct, no?
Concerning 2), is it confirmed that this is only for the SSC case?
Concerning 3), I see the implementation of the GetRSF in the TerraSarImageMetadataInterface, but not the other, am I missing something?
1294551746 - christopok for 1), the format spec detail: columnSpacing as "spacing within a column. E.g. azimuth sampling"
confirm that columnSpacing is y
1294552724 - christopThe patch looks good and the tests are significantly better. It is in: http://hg.orfeo-toolbox.org/OTB/rev/960a710d81d2
Let me know what's the status of 3).
Thanks!
1294615504 - christopReply for 2) and 3) by ebarthelet via mail:
Concerning 2), I give you the link for TerraSar-X level 1B product format specification in which you can find (on page 53) that the rawSpacing and columnSpacing unit is second only for SSC products : http://www.infoterra.