I use a data set called: arr0 with dimensions: (x, y, t) = (151, 151, 600). To create a 2D image I took a specific y-coordinate with slicing i.e. arr0[:,0], now the dimensions are: (x, t) = (151, 600). Within the dataset arr0[:,0] there are x-values for a time greater than t = 0.00173 (below the blue line in the image and last line of code, both shown below). What I would like to do is zero out all x-values for t > 0.00173.
The problem is that I don't know how I should do this, could someone please help me?
Best,
FR
plt.figure(figsize = (10,10))
plt.subplots_adjust(wspace=0.3)
plt.subplot(121)
plt.imshow((np.rot90(arr0[:,0],3)),cmap='Greys',extent=[xr1,xr2,taxis[nt-1],taxis[0]],aspect='auto')
plt.xlabel("Xr location [m]")
plt.ylabel("Time [s]")
plt.title("Direct wave after extrap (arr0)")
plt.hlines(0.00173,-0.3,0.3)
2D graph with values I want to turn zero below the blue line
