preprocess_grid function

Preprocess the data for the DEGURBA grid cell classification