How to calculate power spectrum in source space?

You can also refer to the resting state tutorial:
https://neuroimage.usc.edu/brainstorm/Tutorials/RestingOmega