```javascript
functionmaskL8sr(image){// The third bit is cloud and the fourth bit is cloudshadow。var cloudShadowBitMask =1<<4;var cloudsBitMask =1<<3;// Get QA_PIXEL band.var qa = image.select('QA_PIXEL');// Set the cloud mask to zerovar mask = qa.bitwiseAnd(cloudShadowBitMask).eq(0).and(qa.bitwiseAnd(cloudsBitMask).eq(0));// Update the cloudmaskreturn image.updateMask(mask).select("SR_B.*").copyProperties(image,["system:time_start"]);}functionL8_ndbi(image){return image.addBands(image.normalizedDifference(['SR_B6','SR_B5']).rename("NDBI"));}// Map the function over 3 months of data and take the median.// Load Landsat-8 surface reflectance data.var table = ee.FeatureCollection("projects/ee-wn1206/assets/dongbei").geometry();var landsat8 = ee.ImageCollection("LANDSAT/LC08/C02/T1_L2").filterBounds(table).filterDate('2015-8-01','2015-10-28')// Pre-filter to get less cloudy granules..filter(ee.Filter.lte('CLOUD_COVER',5)).map(maskL8sr).median().clip(table);//landsat8 = landsat8.uint16();//print(landsat8);// visualize the datasets//Map.addLayer(landsat8,rgbVis,'landsat8');var imgselect = landsat8.select('SR_B2','SR_B3','SR_B4','SR_B5','SR_B6',"SR_B7");//Export image to google drive and then download
Export.image.toDrive({image:imgselect,description:'2015',scale:500,region:table.bounds(),folder:"lansdsat",crs:"EPSG:4326",maxPixels:1e13});