liuwenliang的个人博客分享 http://blog.sciencenet.cn/u/liuwenliang

博文

[转载]GEE 融合影像

已有 3898 次阅读 2020-6-11 01:12 |个人分类:js|系统分类:科研笔记|文章来源:转载

转自:https://gist.github.com/jscarto/599914ac223f21fc45a2#file-pansharpen-js


// Band combinations
var natural = ['B4', 'B3', 'B2'];
var swir = ['B6', 'B5', 'B3'];
var urban = ['B7', 'B6', 'B4'];
var veg = ['B5', 'B4', 'B3'];

// Get a Landsat scene
var scene = ee.Image('LANDSAT/LC8_L1T_TOA/LC80450332015263LGN00');

// Convert the RGB bands to the HSV
var hsv = scene.select(urban).rgbToHsv();

// Add band 8 and convert back to RGB
var sharpened = ee.Image.cat([
  hsv.select('hue'), hsv.select('saturation'), scene.select('B8')
]).hsvToRgb();

// Do a very basic color correction 
var imageRGB = sharpened.visualize({min: 0, max:0.18,
              gamma:[
                1.05, // red
                1.08, // green
                0.8]  // blue
});

// Display the image and zoom to it
Map.addLayer(imageRGB);
Map.centerObject(sharpened, 9);




https://blog.sciencenet.cn/blog-3409972-1237337.html

上一篇:PYTHON 安装MySQLdb
下一篇:[转载]解决ArcPy脚本工具中文乱码问题
收藏 IP: 59.109.159.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-7-18 08:23

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部