Hello,
Thanks for your message.
Can you please provide some more information about your run? I see in the pfidb file that the dimensions of your domain are NXxNYxNZ = 24x4x610. Are you trying to plot wtd across one of these dimensions? I think the problem might lie in the line
ax.plot(list(wtd[0, ...])[2],'b', lw=0.5, label='water table')
Can you share the shape of your wtd array and what you are trying to plot in this line? My guess is that the list is unnecessary and that it might cause some bug in the plot. Instead, I would use NumPy indexing for clarity.
In addition, the same can be said about this line:
ax.plot(list(z0-wtd[0, ...])[2],'b', lw=0.5)
I'm not sure what the correct formulation is here (whether you should subtract from your elevation or not), but the list might again introduce a bug. if you can share the intended behavior in the plot, we can do more debugging.
Best,
George