Hello Frank, I have just noticed that multiple calls to FlushCache on an ENVI dataset object will generate a header with repeated header items. I also notice that the first call inside this method is to GDALDataset::FlushCache() but perhaps it should be to RawDataset::FlushCache(). Best, Carlos