Why are my coords creating an error after sampling is complete?

16 locations, 943 rows in the data. the 20 is the yearly n_components*2