Currently, data and mateiraldata is indexed in int. If different lengths (not same years), it crashes.
Ideally:
- Set indexes to PerdioIndex - year
- Clip years in materialdata that are not in data, and padd years that are missing from materialdata that are in data.