The PAW transformation allows all-electron observables to be calculated using the pseudo-wavefunction from a pseudopotential calculation, conveniently avoiding having to ever represent the all-electron wavefunction explicitly in memory. This is particularly important for the calculation of properties such as NMR, which strongly depend on the form of the wavefunction near the nucleus. Starting with the definition of the expectation value of an operator: