added Methods to rearrange Stacks --> to do: write files to netcdf file