#6279 closed defect (fixed)

PDS format not recognized when label begins with ODL_VERSION_ID = ODL3

Reported by: jbp Owned by: warmerdam
Priority: normal Milestone: 2.1.0
Component: default Version: unspecified
Severity: normal Keywords: PDS
Cc:

Description

The PDS labels in the headers of many IMG files for Curiosity rover start with a different line than usual:

ODL_VERSION_ID = ODL3 (vs the usual PDS_VERSION_ID = PDS3).

This causes the file not to be recognized by the PDS format parser.

The error I get:

dataset = gdal.Open( imgPath, gdal.GA_ReadOnly )

RuntimeError?: `NLB_503948890RAD_D0520000NCAM00565M1.IMG' not recognised as a supported file format.

If I edit the header label to use the usual PDS3 statement, it is able to load the file okay.

Here's an example IMG file that has the ODL3 header:

https://an.rsl.wustl.edu/msl/mslbrowser/downloadFile.aspx?it=PR&ii=NRB_486272784RAS_F0481570NCAM00415M1

Change History (1)

comment:1 Changed 15 months ago by Even Rouault

Milestone: 2.1.0
Resolution: fixed
Status: newclosed

trunk r32436 "PDS: accept 'ODL_VERSION_ID = ODL3' in header (#6279)"

Note: See TracTickets for help on using tickets.