CountedPtr<SIImageStore> imagestore,
LogIO os(LogOrigin("SynthesisImager", "createChanChunkImageStoreList"));
Int chunksize=imagestore->getShape()[3]/chanchunks;
Int rem=imagestore->getShape()[3] % chanchunks;
///Avoid an extra chunk with 1 channel as it cause bumps in linear interpolation
// os << LogIO::WARN << "chanchunks ["+String::toString(chanchunks)+"] is not a divisor of nchan ["+String::toString(imagestore->getShape()[3])+"].";
// os << "Therefore, "+String::toString(imagestore->getShape()[3] % chanchunks)+" channel(s) at the end of the cube will be treated as an extra chunk." << LogIO::POST ;
if( rem < chunksize ) extrachunks=1;