Commits
409 409 | } |
410 410 | casacore::String emptyMask = ""; |
411 411 | casacore::Record empty; |
412 412 | outImage = SubImageFactory<T>::createImage( |
413 413 | *tmpImage, myOutname, empty, emptyMask, |
414 414 | dropDegen, false, true, false |
415 415 | ); |
416 416 | } |
417 417 | casacore::ImageUtilities::copyMiscellaneous(*outImage, image); |
418 418 | _doHistory(outImage); |
419 + | // CAS-9267 force metadata to be written to disk, in case of PagedImage |
419 420 | outImage->flush(); |
420 421 | return outImage; |
421 422 | } |
422 423 | |
423 424 | template <class T> SPIIT ImageTask<T>::_prepareOutputImage( |
424 425 | const casacore::ImageInterface<T>& image, casacore::Bool dropDeg |
425 426 | ) const { |
426 427 | if (! _outname.empty()) { |
427 428 | _removeExistingFileIfNecessary(_outname, _overwrite); |
428 429 | } |