The following repository is all the scripts I wrote in order to process Landsat 7 images from 4 different years and to build models for detection of soil pollution with PTEs As, Ni, Cu, Zn, as well as the soil quality indicators phosphorus (P), nitrogen (N) and total organic carbon (TOC). The study area is country Bulgaria and the time frame are 2005, 2010, 2015, 2020.