Added code to write all rasters (5km and 1km resolutions)