//VERSION=3//Author: Monja B. Šebelafunctionsetup(){return{input:[{datasource:"L8L1C",bands:["B04","B03","B02"]},{datasource:"DEM",bands:["DEM"]}],output:[{id:"default",bands:3}]};}functionevaluatePixel(samples,inputData,inputMetadata,customData,outputMetadata){varL8=samples.L8L1C[0]varDEMM=samples.DEM[0]varDEM=DEMM.DEMvard=DEM;if(d%50<4){return{default:[1,1,1]}}else{return{default:[(5*L8.B04)-0.2,(5*L8.B03)-0.2,(5*L8.B02)-0.2]}}}
This script uses DEM to calculate contour lines and displays them over Landsat-8 true color image. The contour lines can be modified in color, interval and width. The contour lines script can be found here.