Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Transformations: PDS3 QUBE to JPEG (and other image formats) #6

Open
jordanpadams opened this issue Aug 2, 2019 · 0 comments
Open
Labels

Comments

@jordanpadams
Copy link
Member

The Transcoder does not seem to support transformation of QUBE objects.

Example:

$ java -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Dcom.sun.media.jai.disableMediaLib=true -Djava.ext.dirs=/Users/mcayanan/transform-1.7.0-dev/lib jpl.mipl.io.jConvertIIO inp=/Users/mcayanan/transformtooldata/ody/themis/vis/V66099017RDR.QUB out=output.jpg format=jpg RI OFORM=BYTE
Exception Error reading header:String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1911)
	at jpl.mipl.io.vicar.PDSInputFile.getItemStringArray(PDSInputFile.java:1566)
	at jpl.mipl.io.vicar.PDSInputFile.createSystemLabel(PDSInputFile.java:1375)
	at jpl.mipl.io.vicar.PDSInputFile.setupLabels(PDSInputFile.java:307)
	at jpl.mipl.io.vicar.PDSInputFile.openInternal(PDSInputFile.java:701)
	at jpl.mipl.io.vicar.VicarInputFile.open(VicarInputFile.java:308)
	at jpl.mipl.io.plugins.PDSImageReader.readHeader(PDSImageReader.java:416)
	at jpl.mipl.io.plugins.PDSImageReader.readAsRenderedImage(PDSImageReader.java:273)
	at jpl.mipl.io.ImageUtils.fullRead(ImageUtils.java:1207)
	at jpl.mipl.io.ImageUtils.fullRead(ImageUtils.java:829)
	at jpl.mipl.io.jConvertIIO.conv(jConvertIIO.java:2233)
	at jpl.mipl.io.jConvertIIO.<init>(jConvertIIO.java:369)
	at jpl.mipl.io.jConvertIIO.main(jConvertIIO.java:444)
jConvertIIO calling imUtil.fullRead() Exception java.lang.NullPointerException
java.lang.NullPointerException
	at jpl.mipl.io.plugins.PDSImageReader.read(PDSImageReader.java:936)
	at jpl.mipl.io.ImageUtils.fullRead(ImageUtils.java:1215)
	at jpl.mipl.io.ImageUtils.fullRead(ImageUtils.java:829)
	at jpl.mipl.io.jConvertIIO.conv(jConvertIIO.java:2233)
	at jpl.mipl.io.jConvertIIO.<init>(jConvertIIO.java:369)
	at jpl.mipl.io.jConvertIIO.main(jConvertIIO.java:444)
jConvertIIO exiting
JConvertIIO
0) inp = /Users/mcayanan/transformtooldata/ody/themis/vis/V66099017RDR.QUB
1) out = output.jpg
2) format = jpg
3) RI = true
4) OFORM = BYTE

Test data: https://starbase.jpl.nasa.gov/pds4/test/software/transform/PDS-552/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ToDo
Development

No branches or pull requests

1 participant