Thanks, it’s better, I get no more errors. Now, I have a different issue, as what I get doesn’t look like what I need at all but it seems to come from the resize option. I’ll have to investigate a bit more.
EDIT: ok, adding values for depth, spectrum and interpolation works as intended.