Commits
108 108 | casacore::Path p(name); |
109 109 | ThrowIf( |
110 110 | p.absoluteName() == t.absoluteName(), |
111 111 | "Cannot have one of the input images also be " |
112 112 | "the output image is mode is not PAGED" |
113 113 | ); |
114 114 | } |
115 115 | } |
116 116 | auto myImage = ImageFactory::fromFile(_imageNames[0], T(0), false); |
117 117 | auto ndim = myImage->ndim(); |
118 - | const auto& csys = myImage->coordinates(); |
118 + | const auto& csys = myImage->coordinates(); |
119 119 | casacore::Int whichCoordinate, axisInCoordinate; |
120 - | csys.findPixelAxis(whichCoordinate, axisInCoordinate, _axis); |
121 - | const auto ctype = csys.coordinate(whichCoordinate).type(); |
122 - | const auto pix = csys.referencePixel(); |
120 + | csys.findPixelAxis(whichCoordinate, axisInCoordinate, _axis); |
121 + | const auto ctype = csys.coordinate(whichCoordinate).type(); |
122 + | const auto pix = csys.referencePixel(); |
123 123 | auto isIncreasing = false; |
124 124 | casacore::Vector<casacore::Double> minVals; |
125 - | casacore::uInt n = 0; |
126 - | if (! _relax || _reorder) { |
125 + | casacore::uInt n = 0; |
126 + | if (! _relax || _reorder) { |
127 127 | n = _imageNames.size(); |
128 128 | minVals.resize(n); |
129 129 | isIncreasing = _minAxisValues( |
130 130 | minVals[0], csys, myImage->shape() |
131 131 | ); |
132 132 | } |
133 133 | auto dataType = myImage->dataType(); |
134 - | for (auto i = 1; i < n; ++i) { |
134 + | for (uInt i = 1; i < n; ++i) { |
135 135 | auto myIm = ImageFactory::fromFile(_imageNames[i], T(0), false); |
136 136 | ThrowIf( |
137 137 | myIm->ndim() != ndim, |
138 138 | "Images do not have the same number of dimensions" |
139 139 | ); |
140 140 | auto oDType = myIm->dataType(); |
141 141 | ThrowIf( |
142 142 | oDType != dataType, |
143 143 | "Concatenation of images of different data types is not supported" |
144 144 | ); |