I have been trying to download 4 bands of the Hansen forest change data from GEE, and need the rasters to span the entire world. I have been using the following code to do so:
var myStringArrayGFW = ['treecover2000','loss','gain','lossyear'];
var dataset_name = "UMD/hansen/global_forest_change_2020_v1_8";
var dataset = ee.Image(dataset_name);
var myStringArray = myStringArrayGFW;
myStringArray.forEach(function(s) {
var name = dataset_name.replace(new RegExp('/', 'gi'),'-');
var data = dataset.select(s);
Export.image.toDrive({
image: data,
description: name+"-"+s,
scale:5000, //5x5km
maxPixels: 1e13,
});
});
Running this seems to work, as I can then save the files to my google drive, but the tifs I get are only a fraction of the size I need them to be (see picture below).
How would I go about fixing my code such that it downloads the entire rasters?