func to sample S2 + retrieve data from image