IES light?

Hello, is there a way to view IES file with Grasshopper or Rhino?
I tried this by copying data manually but i can’t find a way to extract the table with Grasshopper

ies.zip (1.3 KB)

http://photometricviewer.com/

I try with this code founded in Blender forum , with a little modification but because while loops Grasshopper don’t respond

class IESData:
    
	def __init__(self,filename=""):
		self.data=[]
		self.vertAngles=[]
		self.horizAngles=[]
		self.numVertAngles=0
		self.numHorizAngles=0
		self.multiplier=0
		self.ratedLumens=-1
		if (filename):
			self.read(filename)

	def read(self,filename):
		f=open(filename,'r')
		# Ugly, but it's the quickest way I know...
		s=f.readline().replace("","").replace("\r","")
		while (s[0]!="1" and s!=""):
			s=f.readline().replace("","").replace("\r","")

		s=f.readline().replace("","").replace("\r","")
		self.ratedLumens = s

		s=f.readline().replace("","").replace("\r","")
		self.multiplier = s

		s=f.readline().replace("","").replace("\r","")
		self.numVertAngles = s
		s=f.readline().replace("","").replace("\r","")
		self.numHorizAngles = s
	

		# always 1
		s=f.readline()
		#luminous opening
		s=f.readline()
		#luminous opening dimensions
		s=f.readline()
		#1 1 0
		s=f.readline()

		#Keep reading angles until have enough
		while len(self.vertAngles) < self.numVertAngles:
			s=f.readline().replace("","").replace("\r","")
			angles=s.split(" ")
			for angle in angles:
				self.vertAngles.append(angle)	

		while len(self.horizAngles) < self.numHorizAngles:
			s=f.readline().replace("","").replace("\r","")
			angles=s.split(" ")
			for angle in angles:
				self.horizAngles.append(angle)
				self.data.append([])
				for i in range(self.numVertAngles):
					self.data[-1].append(0.)
		print self.numHorizAngles
		count=0
		while (s!=""):
			s=f.readline().replace("","").replace("\r","")
			values=s.split(" ")
			for intensity in values[:-1]:
				self.data[count%self.numHorizAngles][count/self.numHorizAngles]=intensity
				count+=1
		

			

infile = x

iesExample=IESData(infile)