How to remove several plane from a stack wave

Hi all,

I wondered how can I remove several plane from a stack wave. For example, I have a stack wave (named "StackWave") which has the size M*N*100. If I want to insert a new plane(M*N) into plane number 0 of StackWave , I can use the command: ImageTransform /P=0/D=plane0 setPlane StackWave.

But what should I do if I want to remove the last 10 planes of StackWave? I tried Imagetransform /NP = 10 removeZplane StackWave, but it didn't work and thrown an imagetransformerror which said "syntax error"

Thanks!
To delete the last 10 planes try:
redimension/n=(-1, -1, dimsize(stackwave, 2) - 10) stackwave

or

deletepoints/M=2 dimsize(stackwave, 2) - 10, 10, stackwave
andyfaff wrote:
To delete the last 10 planes try:
redimension/n=(-1, -1, dimsize(stackwave, 2) - 10) stackwave

or

deletepoints/M=2 dimsize(stackwave, 2) - 10, 10, stackwave



Thanks! Both two commands work well!