Using h5 files to create jacobian determinant images

Hi everyone,

using the fmriprep composite transform files (h5) I want to create jacobian determinant images in the following way:

(1) using the h5 file from the fmriprep output together with the MNI152NLin2009cAsym template atlas to apply the transform:
antsApplyTransforms -i sub-1_ses-F13_acq-0003_run-0000_T1w.nii.gz -t sub-1_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5 -r tpl-MNI152NLin2009cAsym_res-01_T1w.nii.gz -o sub-1_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm-transfT1.nii.gz

(2) using this output to create the jacobian determinant image:
createJacobianDeterminantImage 3 sub-1_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm-transfT1.nii.gz jacobian.nii.gz

Is this the correct way to go about this?