GEE 下载MODIS/006/MCD12Q1多年LC
var roi = ee. FeatureCollection ( "projects/your geofile" ) . geometry ( ) ;
Map. centerObject ( roi, 5 )
Map. addLayer ( roi) for ( var i = 2005 ; i<= 2010 ; i++ ) {
var dataset = ee. ImageCollection ( "MODIS/006/MCD12Q1" ) . filterDate ( i+ '-01-01' , i+ '-12-31' ) . select ( 'LC_Type1' )
var classification = dataset. mosaic ( ) . clip ( roi)
var igbpLandCoverVis = { min : 1.0 , max : 17.0 , palette : [ '05450a' , '086a10' , '54a708' , '78d203' , '009900' , 'c6b044' , 'dcd159' , 'dade48' , 'fbff13' , 'b6ff05' , '27ff87' , 'c24f44' , 'a5a5a5' , 'ff6d4c' , '69fff8' , 'f9ffa4' , '1c0dff' ] ,
} ;
print ( classification)
Map. addLayer ( classification, igbpLandCoverVis, i+ "MCD12Q1 LC_Type1" ) ; Export. image. toDrive ( { image : classification, description : i+ 'land' , region : roi, scale : 500 , maxPixels : 1e13 , crs : "EPSG:32648" , folder : 'LUCC' } )
}
var modisLandcover = ee. ImageCollection ( 'MODIS/006/MCD12Q1' ) ;
for ( var i= 2001 ; i<= 2020 ; i++ ) { var data_collection = modisLandcover. filterDate ( i+ '-01-01' , i+ '-12-31' ) . select ( 'LC_Type1' ) . first ( ) . clip ( roi) ; Export. image. toDrive ( { image : data_collection, description : i+ "LC" , fileNamePrefix : i+ "LC" , scale : 500 , crs : "EPSG:4326" , region : geo. geometry ( ) . bounds ( ) , maxPixels : 1e13 , folder : 'Modis_LC' } ) ;
}