Decomposing 4d nrrd

Hello!
I wanted to decompose a 4d nrrd file into a sequence of 3d nrrd files with timestamp. Please find the attached image for reference. Looking forward to your inputs