def goldberg_frame(t,vs):
	# t is an input array
	# vs is the speed of the spaceship (in units of the speed of
	#   light)
	# the output is an array of the format: [xb,xf,xl,xp,xs]
	nt=len(t)
	
	vp=0.05
	L=1.	

	xb=[]
	xf=[]
	xl=[]
	xp=[]
	xs=[]
	
	for t1 in t:
		xb.append(0.0)
		xf.append(L)
		xl_tmp=t1 % 2*L
		if (xl_tmp > L) :
			xl_tmp=2*L-xl_tmp
		xl.append(xl_tmp)
		xp_tmp=vp*t1 % 2*L
		if (xp_tmp > L) :
			xp_tmp=2*L-xp_tmp
		xp.append(xp_tmp)
		xs.append(vs*t1)


	data=[xb,xf,xl,xp,xs]
	return data

