{"id":6239,"date":"2018-12-19T10:22:06","date_gmt":"2018-12-19T01:22:06","guid":{"rendered":"https:\/\/gunmagisgeek.com\/wordpress\/?p=6239"},"modified":"2022-07-01T02:41:23","modified_gmt":"2022-06-30T17:41:23","slug":"gee%e5%85%a5%e9%96%80%e8%a1%9b%e6%98%9f%e7%94%bb%e5%83%8f%e3%81%ab%e3%83%91%e3%83%b3%e3%82%b7%e3%83%a3%e3%83%bc%e3%83%97%e3%83%b3%e5%87%a6%e7%90%86%e3%82%92%e6%96%bd%e3%81%99","status":"publish","type":"post","link":"https:\/\/gunmagisgeek.com\/blog\/googleearthengine\/6239","title":{"rendered":"[Google Earth Engine\u5165\u9580]\u885b\u661f\u753b\u50cf\u306b\u30d1\u30f3\u30b7\u30e3\u30fc\u30d7\u30f3\u51e6\u7406\u3092\u65bd\u3059"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p><a href=\"https:\/\/gunmagisgeek.com\/blog\/googleearthengine\/6236\">\u524d\u56de<\/a>\u3001\u5730\u56f3\u4e0a\u306b\u8868\u793a\u3057\u305fLandsat 8\u53f7\u306e\u753b\u50cf\u306fGoogle Maps\u306e\u885b\u661f\u5199\u771f\u306a\u3069\u306b\u898b\u6163\u308c\u3066\u3044\u308b\u3068\u3060\u3044\u3076\u307c\u3084\u3051\u305f\u5199\u771f\u306e\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002<br \/>\n\u305d\u3053\u3067\u3001\u30d1\u30f3\u30b7\u30e3\u30fc\u30d7\u30f3\u51e6\u7406\u3068\u3044\u3046\u753b\u50cf\u51e6\u7406\u3092\u65bd\u3059\u3053\u3068\u3067\u5730\u7269\u306e\u8f2a\u90ed\u3092\u5f37\u8abf\uff08\u30b7\u30e3\u30fc\u30d7\u30cd\u30b9\uff09\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><strong>\u53c2\u8003\uff1a<\/strong><\/p>\n<blockquote><p>\u30d1\u30f3\u30b7\u30e3\u30fc\u30d7\u30f3\u51e6\u7406\u306f\u3001\u5206\u89e3\u80fd\u304c\u4f4e\u3044\u30ab\u30e9\u30fc\u753b\u50cf\uff08RGB\u753b\u50cf\uff09\u3068\u3001\u5206\u89e3\u80fd\u304c\u9ad8\u3044\u30e2\u30ce\u30af\u30ed\u30fc\u30e0\u753b\u50cf\u3092\u4f7f\u3063\u3066\u3001\u5206\u89e3\u80fd\u304c\u9ad8\u3044\u30ab\u30e9\u30fc\u753b\u50cf\uff08RGB\u753b\u50cf\uff09\u3092\u4f5c\u6210\u3059\u308b\u51e6\u7406\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<div style=\"text-align:right;font-size:0.8em\"><a href=\"http:\/\/rs.aoyaman.com\/img_pro\/b3.html\">\u30ea\u30e2\u30fc\u30c8\u30bb\u30f3\u30b7\u30f3\u30b0\u753b\u50cf\u51e6\u7406\uff1e\u30d1\u30f3\u30b7\u30e3\u30fc\u30d7\u30f3<\/a><\/div>\n<\/blockquote>\n<p><strong>\u30fb\u5143\u753b\u50cf<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningRaw-1024x475.png\" alt=\"\u5143\u753b\u50cf\" width=\"680\" height=\"315\" class=\"alignnone size-large wp-image-6284\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningRaw-1024x475.png 1024w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningRaw-300x139.png 300w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningRaw-768x356.png 768w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningRaw.png 1348w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p><strong>\u30fb\u51e6\u7406\u5f8c<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningShaped-1024x477.png\" alt=\"\u51e6\u7406\u5f8c\" width=\"680\" height=\"317\" class=\"alignnone size-large wp-image-6285\" srcset=\"https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningShaped-1024x477.png 1024w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningShaped-300x140.png 300w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningShaped-768x358.png 768w, https:\/\/gunmagisgeek.com\/blog\/wp-content\/uploads\/2018\/12\/sharpeningShaped.png 1346w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<h2>\u30d1\u30f3\u30b7\u30e3\u30fc\u30d7\u30f3\u51e6\u7406<\/h2>\n<pre class=\"lang:js decode:true \">var geometry = ee.Geometry.Point([139.01267421020486, 36.32229536983009]);\nMap.centerObject(geometry, 15)\n\n\n\/\/ Landsat 8\u53f7\u306e\u753b\u50cf\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\nvar image = ee.ImageCollection('LANDSAT\/LC08\/C01\/T1_TOA')\n  .filterDate('2017-01-01', '2017-12-31')\n  .filterBounds(geometry)\n  .first(); \/\/\u5148\u982d\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u53d6\u308a\u51fa\u3059\n\n\/\/\u30c8\u30a5\u30eb\u30fc\u30ab\u30e9\u30fc\u5316\u306b\u5fc5\u8981\u306a\u30d0\u30f3\u30c9\u5024\u3092\u53d6\u5f97\nvar origin = image.select('B4', 'B3', 'B2');\n\/\/\u30d1\u30f3\u30b7\u30e3\u30fc\u30d7\u30f3\u51e6\u7406\u306b\u5fc5\u8981\u306a\u30d1\u30f3\u30af\u30ed\u30de\u30c6\u30a3\u30c3\u30af\u30d0\u30f3\u30c9\u3092\u53d6\u5f97\nvar panchromatic = image.select('B8');\n\n\/\/ \u30ab\u30e9\u30fc\u3092HSV\u306b\u5909\u63db\u3057\u3001\u753b\u50cf\u306e\u660e\u5ea6\u3092\u30d1\u30f3\u30af\u30ed\u30de\u30c6\u30a3\u30c3\u30af\u753b\u50cf\u306e\u660e\u5ea6\u3068\u7f6e\u304d\u63db\u3048\u5f8c\u3001RGB\u306b\u623b\u3057\u307e\u3059\u3002\nvar huesat = origin.rgbToHsv().select('hue', 'saturation');\nvar shaped = ee.Image.cat(huesat, panchromatic).hsvToRgb();\n\n\/\/\u30aa\u30ea\u30b8\u30ca\u30eb\u30a4\u30e1\u30fc\u30b8\u3092\u5730\u56f3\u306b\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\nMap.addLayer(origin, {max: 0.3}, 'origin');\n\/\/\u30d1\u30f3\u30b7\u30e3\u30fc\u30d7\u6e08\u307f\u30a4\u30e1\u30fc\u30b8\u3092\u5730\u56f3\u306b\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\nMap.addLayer(shaped, {max: 0.3}, 'shaped');\n<\/pre>\n<h2>\u30a4\u30e1\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u30a4\u30e1\u30fc\u30b8\u5168\u3066\u306b\u53cd\u5fa9\u51e6\u7406\u3092\u884c\u3046<\/h2>\n<p>\u5358\u4e00\u306e\u30a4\u30e1\u30fc\u30b8\u3067\u306f\u306a\u304f\u3001\u30a4\u30e1\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u5168\u3066\u306e\u30a4\u30e1\u30fc\u30b8\u306b\u30d1\u30f3\u30b7\u30e3\u30fc\u30d7\u30f3\u51e6\u7406\u3092\u9069\u7528\u3057\u305f\u3044\u5834\u5408\u306f\u3001map\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3068\u53cd\u5fa9\u51e6\u7406\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">var geometry = ee.Geometry.Point([139.01267421020486, 36.32229536983009]);\nMap.centerObject(geometry, 15)\n\n\n\/\/\u30a4\u30e1\u30fc\u30b8\u306b\u9069\u7528\u3059\u308b\u51e6\u7406\u3092\u95a2\u6570\u5316\u5316\u3059\u308b\nvar shaping = function(image){\n  \/\/\u30c8\u30a5\u30eb\u30fc\u30ab\u30e9\u30fc\u5316\u306b\u5316\u306b\u5fc5\u8981\u306a\u30d0\u30f3\u30c9\u5024\u3092\u53d6\u5f97\n  var origin = image.select('B4', 'B3', 'B2');\n  \/\/\u3042\u30d1\u30f3\u30b7\u30e3\u30fc\u30d7\u51e6\u7406\u306b\u5fc5\u8981\u306a\u30d1\u30f3\u30af\u30ed\u30de\u30c6\u30a3\u30c3\u30af\u30d0\u30f3\u30c9\u3092\u53d6\u5f97\n  var panchromatic = image.select('B8');\n  \n  \/\/ \u30ab\u30e9\u30fc\u3092HSV\u306b\u5909\u63db\u3057\u3001\u753b\u50cf\u306e\u660e\u5ea6\u3092\u30d1\u30f3\u30af\u30ed\u30de\u30c6\u30a3\u30c3\u30af\u753b\u50cf\u306e\u660e\u5ea6\u3068\u7f6e\u304d\u63db\u3048\u5f8c\u3001RGB\u306b\u623b\u3057\u307e\u3059\u3002\n  var huesat = origin.rgbToHsv().select('hue', 'saturation');\n  var shaped = ee.Image.cat(huesat, panchromatic).hsvToRgb();\n  \n  return shaped;\n  \n}\n\n\/\/ Landsat 8\u53f7\u306e\u753b\u50cf\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\nvar image = ee.ImageCollection('LANDSAT\/LC08\/C01\/T1_TOA')\n  .filterDate('2017-01-01', '2017-12-31')\n  .filterBounds(geometry)\n  .map(shaping) \/\/\u30a4\u30e1\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u53cd\u5fa9\u51e6\u7406\u3092\u9069\u7528\u3059\u308b\n  .first() \/\/\u5148\u982d\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u53d6\u308a\u51fa\u3059\n\nMap.addLayer(image, {max: 0.4}, 'shaped');<\/pre>\n<p>\u30a4\u30e1\u30fc\u30b8\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u542b\u307e\u308c\u308b\u30a4\u30e1\u30fc\u30b8\u306e\u6570\u304c\u591a\u3059\u304e\u308b\u3068\u3001\u51e6\u7406\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u308a\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u3001<a href=\"https:\/\/qiita.com\/advent-calendar\/2018\/googleearth?fbclid=IwAR3kO5kBRJhrwyYPkmMUBPk1IAAu-pJupq9ip_N1KZ8joHdfPDlTEPTM3tE\">Google Earth \/ Google Earth Engine Advent Calendar 2018<\/a>\u3078\u306e\u53c2\u52a0\u6295\u7a3f\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u524d\u56de\u3001\u5730\u56f3\u4e0a\u306b\u8868\u793a\u3057\u305fLandsat 8\u53f7\u306e&hellip;<\/p>\n","protected":false},"author":1,"featured_media":6250,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[],"class_list":["post-6239","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-googleearthengine","has-post-thumbnail-archive"],"_links":{"self":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/6239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/comments?post=6239"}],"version-history":[{"count":1,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/6239\/revisions"}],"predecessor-version":[{"id":7958,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/posts\/6239\/revisions\/7958"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media\/6250"}],"wp:attachment":[{"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/media?parent=6239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/categories?post=6239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gunmagisgeek.com\/blog\/wp-json\/wp\/v2\/tags?post=6239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}