Slicer rejects modified Header

I would recommend to copy the entire header from the source image. If you still have problems then please upload the script and an example nrrd file somewhere and post the link here so that we can have a look.