cube file Cube file is a file format for electron density. I found a python code in dftb+ website which can manipulate cube files. link. It manipulate multiple cube files and can do all kinds of expressions using these cube files as input.