Uses [CODEM](https://github.com/NCALM-UH/CODEM, credits to Craig Glennie and the group at CRREL). The details of the method are available at https://github.com/NCALM-UH/CODEM/blob/main/docs/details.md.