// Load a Landsat 8 image var image = ee.Image('LANDSAT/LC08/C01/T1_SR/LC08_044034_20140318'); // Define a region of interest (ROI) var roi = ee.Geometry.Rectangle([-122.5, 37.0, -121.5, 38.0]); // Clip the image to the region of interest var clippedImage = image.clip(roi); // Export the image to Google Drive Export.image.toDrive({ image: clippedImage, description: 'Landsat_Export', folder: 'EarthEngineExports', // Specify your Drive folder scale: 30, // Set the pixel resolution region: roi, // Set the export region maxPixels: 1e9 // Set the maximum allowed number of pixels });
How to export it ?
// Load a Landsat 8 image
var image = ee.Image('LANDSAT/LC08/C01/T1_SR/LC08_044034_20140318');
// Define a region of interest (ROI)
var roi = ee.Geometry.Rectangle([-122.5, 37.0, -121.5, 38.0]);
// Clip the image to the region of interest
var clippedImage = image.clip(roi);
// Export the image to Google Drive
Export.image.toDrive({
image: clippedImage,
description: 'Landsat_Export',
folder: 'EarthEngineExports', // Specify your Drive folder
scale: 30, // Set the pixel resolution
region: roi, // Set the export region
maxPixels: 1e9 // Set the maximum allowed number of pixels
});