Previously, I had a rasterbrick called "xxx" (whose details are not necessary) which I selected a Rasterlayer from. The rasterlayer ("Y") was selected th