Pre-processing of satellite images: atmospheric correction and cloud-masking