Update default PDS offset shift
|Reported by:||thare||Owned by:||warmerdam|
|Severity:||normal||Keywords:||PDS pixel offset default|
We recently found, thanks to colleagues at TU-Berlin, FU-Berlin and others, that the defaults used in ISiS (and thus GDAL) for PDS Sample/Line offset shifts are incorrect. The PDS image used to test the offset were faulty which help to propagate this issue (specifically the MOLA MEGDR labels http://pds-geosciences.wustl.edu/missions/mgs/megdr.html ).
Backgroud: Due to confusing and almost conflicting information in the PDS (version 3) spec, this issue continues to be a problem in the community. We are hoping to release a summary paper on the topic and as ticket 3940 alludes to, perhaps include in GDAL the ability to correct the "known" PDS archives which have these bad offsets. Currently in GDAL these corrections must be applied by the user (manually). ISIS3, using the table listed in ticket #3940, does try to correct for bad offsets in PDS archives (ingest only). This patch to GDAL will also be pushed into ISIS3 also.
The simple update to be made would be to set
double dfSampleOffset_Shift = 0.5; double dfLineOffset_Shift = 0.5;
from the original bad values of
double dfSampleOffset_Shift = -0.5; double dfLineOffset_Shift = -0.5;
To test whether this corrects the problem. The label from the LOLA DEMs can be used (e.g. ldem_4.lbl). When correct the center of image in the X,Y will be perfectly 0,0 as readout by gdalinfo
should report a center in meters of 0.0, 0.0
I have attached the label portion of the image (but not the image itself) which can be downloaded from: binary: http://pds-geosciences.wustl.edu/lro/lro-l-lola-3-rdr-v1/lrolol_1xxx/data/lola_gdr/cylindrical/img/ldem_4.img detached label: http://pds-geosciences.wustl.edu/lro/lro-l-lola-3-rdr-v1/lrolol_1xxx/data/lola_gdr/cylindrical/img/ldem_4.lbl parent link: http://pds-geosciences.wustl.edu/missions/lro/lola.htm