Hello everybody A new switch has been added to nearblack, -setmask, nearblack will write a mask band to mask out the nodata areas. Brian