I've attached the basic code, though it does call modules that I've written to read in the data from the file (and locate the appropriate image data array)...I receive this error:
Traceback (most recent call last):
File "C:/Users/Tory/Desktop/3DTesting", line 17, in <module>
image=pg.makeRGBA(frame.data[shape[0]])[0]
IndexError: index out of bounds
Am I on the right track?
Thank you again for all of your help!
Edit: it seems to not want to let me attach a file...
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from fileheader import FileHeader, Frame
import pyqtgraph as pg
import pyqtgraph.opengl as gl
from scipy import ndimage
import sys,os
filename="C:/Users/Tory/Desktop/PYTHON NOAA/test.ddf"
slaveFilename="C:/Users/Tory/Desktop/PYTHON NOAA/test.ddf"
fileheader=FileHeader(filename)
frame=fileheader.frameAtIndex(1)
slaveFileHeader=FileHeader(slaveFilename)
slaveFrame=slaveFileHeader.frameAtIndex(1)
shape=(96,512)
image=pg.makeRGBA(frame.data[shape[0]])[0]
slaveImage=pg.makeRGBA(slaveFrame.data[shape[1]])[0]
app=QApplication([])
w = gl.GLViewWidget()
w.show()
v1=gl.GLImageItem(image)
v1.translate(-shape[1],-shape[2])
w.addItem(v1)
v2=gl.GLImageItem(slaveImage)
v2.translate(-shape[0],-shape[2])
w.addItem(v2)
if sys.flags.interactive !=1:
app.exec_()