<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Minh Nguyen on Medium]]></title>
        <description><![CDATA[Stories by Minh Nguyen on Medium]]></description>
        <link>https://medium.com/@ndminhhus?source=rss-aad86c26a8b0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qyxMkJRK0lMSjvv9pLilrg.jpeg</url>
            <title>Stories by Minh Nguyen on Medium</title>
            <link>https://medium.com/@ndminhhus?source=rss-aad86c26a8b0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:24:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ndminhhus/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Animate urban expansion with Google Earth Engine]]></title>
            <link>https://medium.com/@ndminhhus/animate-urban-expansion-with-google-earth-engine-15e4d640775?source=rss-aad86c26a8b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/15e4d640775</guid>
            <category><![CDATA[urban-development]]></category>
            <category><![CDATA[urban-planning]]></category>
            <category><![CDATA[google-earth-engine]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <dc:creator><![CDATA[Minh Nguyen]]></dc:creator>
            <pubDate>Fri, 10 Dec 2021 08:32:22 GMT</pubDate>
            <atom:updated>2021-12-10T08:32:22.913Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ol5rZLoy0KDYjbLYSgRPqQ.gif" /><figcaption>Animation of annual built-up extension in Ho Chi Minh City, Vietnam</figcaption></figure><p>Monitoring urban expansion temporal dynamics is important to estimating future trends and implementing suitable planning strategies.</p><p>In this exercise, we animate annual built-up change using <a href="https://developers.google.com/earth-engine/datasets/catalog/Tsinghua_FROM-GLC_GAIA_v10">GAIA </a>dataset from (Gong et al, 2020). This dataset contains annual change information of global impervious surface area from 1985 to 2018 at a 30m resolution.</p><p>Objective:</p><ul><li>Annual built-up change animation</li><li>Add water layer</li><li>Add time-stamp</li><li>Export gif</li></ul><h3><strong>Earth Engine Script:</strong></h3><blockquote><em>var aoi =ee.Geometry.Polygon(<br> [[[106, 11],<br> [106, 10.5],<br> [107, 10.5],<br> [107, 11]]], null, false);</em></blockquote><blockquote><em>var gaia =ee.Image(“Tsinghua/FROM-GLC/GAIA/v10”);</em></blockquote><blockquote><em>var plt = [<br> //http://www.zonums.com/online/color_ramp/<br>‘0000FF’,<br>‘0019FF’,<br>‘0033FF’,<br>‘004CFF’,<br>‘0066FF’,<br>‘0080FF’,<br>‘00BFFF’,<br>‘00CBF2’,<br>‘00D8E5’,<br>‘00E5D8’,<br>‘00F2CB’,<br>‘00FFBF’,<br>‘00FF80’,<br>‘00FF66’,<br>‘00FF4C’,<br>‘00FF33’,<br>‘00FF19’,<br>‘00FF00’,<br>‘40FF00’,<br>‘59FF00’,<br>‘72FF00’,<br>‘8CFF00’,<br>‘A5FF00’,<br>‘BFFF00’,<br>‘FFFF00’,<br>‘FFEF00’,<br>‘FFDF00’,<br>‘FFCF00’,<br>‘FFBF00’,<br>‘FF8000’,<br>‘FF7000’,<br>‘FF6000’,<br>‘FF5000’,<br>‘FF4000’<br> ];<br>var visParams = {<br> min: 1.0,<br> max: 34.0,<br> //http://www.zonums.com/online/color_ramp/<br> palette: plt,<br> <br>};<br>// Map.addLayer(gaia.clip(aoi),visParams,’image’)<br>var ur_1988 = gaia.updateMask(gaia.gte(31)).set(‘system:index’,”1988&quot;);<br>var ur_1989 = gaia.updateMask(gaia.gte(30)).set(‘system:index’,”1989&quot;);<br>var ur_1990 = gaia.updateMask(gaia.gte(29)).set(‘system:index’,”1990&quot;);<br>var ur_1991 = gaia.updateMask(gaia.gte(28)).set(‘system:index’,”1991&quot;);<br>var ur_1992 = gaia.updateMask(gaia.gte(27)).set(‘system:index’,”1992&quot;);<br>var ur_1993 = gaia.updateMask(gaia.gte(26)).set(‘system:index’,”1993&quot;);<br>var ur_1994 = gaia.updateMask(gaia.gte(25)).set(‘system:index’,”1994&quot;);<br>var ur_1995 = gaia.updateMask(gaia.gte(24)).set(‘system:index’,”1995&quot;);<br>var ur_1996 = gaia.updateMask(gaia.gte(23)).set(‘system:index’,”1996&quot;);<br>var ur_1997 = gaia.updateMask(gaia.gte(22)).set(‘system:index’,”1997&quot;);<br>var ur_1998 = gaia.updateMask(gaia.gte(21)).set(‘system:index’,”1998&quot;);<br>var ur_1999 = gaia.updateMask(gaia.gte(20)).set(‘system:index’,”1999&quot;);<br>var ur_2000 = gaia.updateMask(gaia.gte(19)).set(‘system:index’,”2000&quot;);<br>var ur_2001 = gaia.updateMask(gaia.gte(18)).set(‘system:index’,”2001&quot;);<br>var ur_2002 = gaia.updateMask(gaia.gte(17)).set(‘system:index’,”2002&quot;);<br>var ur_2003 = gaia.updateMask(gaia.gte(16)).set(‘system:index’,”2003&quot;);<br>var ur_2004 = gaia.updateMask(gaia.gte(15)).set(‘system:index’,”2004&quot;);<br>var ur_2005 = gaia.updateMask(gaia.gte(14)).set(‘system:index’,”2005&quot;);<br>var ur_2006 = gaia.updateMask(gaia.gte(13)).set(‘system:index’,”2006&quot;);<br>var ur_2007 = gaia.updateMask(gaia.gte(12)).set(‘system:index’,”2007&quot;);<br>var ur_2008 = gaia.updateMask(gaia.gte(11)).set(‘system:index’,”2008&quot;);<br>var ur_2009 = gaia.updateMask(gaia.gte(10)).set(‘system:index’,”2009&quot;);<br>var ur_2010 = gaia.updateMask(gaia.gte(9)).set(‘system:index’,”2010&quot;);<br>var ur_2011 = gaia.updateMask(gaia.gte(8)).set(‘system:index’,”2011&quot;);<br>var ur_2012 = gaia.updateMask(gaia.gte(7)).set(‘system:index’,”2012&quot;);<br>var ur_2013 = gaia.updateMask(gaia.gte(6)).set(‘system:index’,”2013&quot;);<br>var ur_2014 = gaia.updateMask(gaia.gte(5)).set(‘system:index’,”2014&quot;);<br>var ur_2015 = gaia.updateMask(gaia.gte(4)).set(‘system:index’,”2015&quot;);<br>var ur_2016 = gaia.updateMask(gaia.gte(3)).set(‘system:index’,”2016&quot;);<br>var ur_2017 = gaia.updateMask(gaia.gte(2)).set(‘system:index’,”2017&quot;);<br>var ur_2018 = gaia.updateMask(gaia.gte(1)).set(‘system:index’,”2018&quot;);</em></blockquote><blockquote><em>//</em></blockquote><blockquote><em>//<br>var col = ee.ImageCollection([<br>ur_1988<br>,ur_1989<br>,ur_1990<br>,ur_1991<br>,ur_1992<br>,ur_1993<br>,ur_1994<br>,ur_1995<br>,ur_1996<br>,ur_1997<br>,ur_1998<br>,ur_1999<br>,ur_2000<br>,ur_2001<br>,ur_2002<br>,ur_2003<br>,ur_2004<br>,ur_2005<br>,ur_2006<br>,ur_2007<br>,ur_2008<br>,ur_2009<br>,ur_2010<br>,ur_2011<br>,ur_2012<br>,ur_2013<br>,ur_2014<br>,ur_2015<br>,ur_2016<br>,ur_2017<br>,ur_2018<br>])</em></blockquote><blockquote><em>var rgbVis = col.map(function(img) {<br> return img.visualize(visParams);<br>});<br>// Define an empty image to paint features to.<br>var empty = ee.Image().byte();</em></blockquote><blockquote><em>// Paint country feature edges to the empty image.<br>var outline = empty<br> .paint({featureCollection: aoi, color: 1, width: 1})<br> // Convert to an RGB visualization image; set line color to black.<br> .visualize({palette: ‘red’});</em></blockquote><blockquote><em>// Map a blend operation over the collection to overlay the boundary<br>// border outline image on all collection images.<br>var rgbVisOutline0 = rgbVis.map(function(img) {<br> return img.blend(outline);<br>});</em></blockquote><blockquote><em>var gsw = ee.Image(‘JRC/GSW1_0/GlobalSurfaceWater’);<br>var water = gsw.select(‘occurrence’).gt(50).selfMask();</em></blockquote><blockquote><em>var vizWater = {<br> // min: 0,<br> // max: 9000,<br> palette: [‘grey’],<br> opacity: 0.4<br>};</em></blockquote><blockquote><em>var rgbVisOutline = rgbVisOutline0.map(function(img) {<br> return img.blend(water.visualize(vizWater));<br>});</em></blockquote><blockquote><em>var text = require(‘users/gena/packages:text’);<br>var annotations = [<br> {<br> position: ‘top’, offset: ‘15%’, margin: ‘10%’, property: ‘system:index’, scale: Map.getScale() * 1.5<br> }<br>]<br>function addLabel(img){<br> return img.set({label:img.get(‘system:index’)});<br>}<br>function text_f (img) {<br> return text.annotateImage(img, {}, aoi, annotations)<br>}</em></blockquote><blockquote><em>var rgbVisOutlineText = rgbVisOutline<br> .map(addLabel)<br> .map(text_f)</em></blockquote><blockquote><em>// Each image in the collection represents a frame in the animation. Since we’re animating flow, let’s define a function that will reverse the frame sequence once the end is reached to produce a smooth, flowy transition back to the beginning. This is accomplished by making a copy of the image collection in reverse chronological order and appending it to the original collection.</em></blockquote><blockquote><em>function appendReverse(col) {<br>return col.merge(col.sort(‘system:index’, false));<br>}</em></blockquote><blockquote><em>var basicAnimation = appendReverse(rgbVisOutlineText);</em></blockquote><blockquote><em>var gifParams = {<br> ‘region’: aoi,//dx.geometry(),//gaia.geometry(),<br> ‘dimensions’: 600,<br> ‘crs’: ‘EPSG:4326’,<br> ‘framesPerSecond’: 6};</em></blockquote><blockquote><em>// Render the GIF animation in the console.<br>print(ui.Thumbnail(basicAnimation, gifParams));<br>// Print the GIF URL to the console.<br>print(basicAnimation.getVideoThumbURL(gifParams));</em></blockquote><p>Earth engine code link:</p><p><a href="https://code.earthengine.google.com/6204480c438c2dde62f408e250293636">https://code.earthengine.google.com/6204480c438c2dde62f408e250293636</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15e4d640775" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improve cloud detection and removal with machine learning in Google Earth Engine]]></title>
            <link>https://medium.com/@ndminhhus/improve-cloud-detection-and-removal-with-machine-learning-in-google-earth-engine-ac0a2f759022?source=rss-aad86c26a8b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac0a2f759022</guid>
            <category><![CDATA[sentinel-2]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[random-forest]]></category>
            <category><![CDATA[google-earth-engine]]></category>
            <dc:creator><![CDATA[Minh Nguyen]]></dc:creator>
            <pubDate>Thu, 18 Jun 2020 09:15:20 GMT</pubDate>
            <atom:updated>2020-06-22T03:36:40.665Z</atom:updated>
            <content:encoded><![CDATA[<h3>Improve Sentinel 2 satellite images cloud detection with machine learning in Google Earth Engine</h3><p>Look at why the performance of the cloud mask band (QA60) in Sentinel 2 is low and improve it using machine learning.</p><p>A cloud mask band is already created in the Sentinel 2 L1C product. However, it is reported that the performance of QA60 for cloud mask is low, especially under critical atmospheric conditions. Let us look at one example and write a cloud mask function in Google Earth Engine:</p><pre>function QA60_f (img){<br> var qa60 = img.select(‘QA60’).neq(0);<br> return img.updateMask(qa60).select(‘QA60’)<br>}</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcdn.knightlab.com%2Flibs%2Fjuxtapose%2Flatest%2Fembed%2Findex.html%3Fuid%3D30a61a84-afa3-11ea-a30b-0edaf8f81e27&amp;display_name=Knight+Lab&amp;url=https%3A%2F%2Fcdn.knightlab.com%2Flibs%2Fjuxtapose%2Flatest%2Fembed%2Findex.html%3Fuid%3D30a61a84-afa3-11ea-a30b-0edaf8f81e27&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=knightlab" width="700" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e06a62eebf2ad9970922265d64a53f2/href">https://medium.com/media/4e06a62eebf2ad9970922265d64a53f2/href</a></iframe><p>As you can see from the visualization above, the cloud areas (in white) is not completely masked.</p><h4>Understanding the problem</h4><p>Generally, the cloud is characterized as “bright and cold but not snow”. But unlike Landsat missions, S2 sensors lack thermal infrared bands; therefore, established thermal-based cloud masking algorithms that usually work well for Landsat (e.g., FMASK) do not guarantee similar results.</p><p>From ESA official website (<a href="https://sentinel.esa.int/web/sentinel/technical-guides/sentinel-2-msi/level-1c/cloud-masks">ESA. Level-1C Cloud Masks</a>) we know that the S2 L1C cloud mask band (QA60) was generated based on the blue band (B2) and short-wave infrared bands (B11, B12).</p><h3>Machine learning approach</h3><p>But QA60 is not useless. We can use the QA60 band as a covariate band for a supervised classification. We trained a random forest classifier (ee.Classifier.randomForest()) using stratified random sampling (ee.Image.stratifiedSample()) and the QA60 band played as the ‘classBand’ argument. The stratified sampling function extracted 10 random points from each class contained in the QA60 band which has three classes including ‘opaque clouds’ class (pixel value = 1024), ‘cirrus clouds’ class (pixel value = 2048), and non-cloud-cirrus class (pixel value = 0).</p><pre>function RF_f (img) {<br>  var cloud = img.select(&#39;QA60&#39;).neq(0).rename(&#39;cloud&#39;);<br>  img = img.addBands(cloud)  <br>  var train = img.stratifiedSample({<br>                      numPoints: 10, <br>                      classBand: &quot;QA60&quot;,<br>                      region:bound, <br>                      scale: 30,<br>                      geometries: true<br>                    });<br>  var classifier= ee.Classifier.randomForest(20).train(train,&quot;QA60&quot;)<br>  var super_mask  = img.classify(classifier).rename(&#39;cloud_rf&#39;);<br>  img = img.addBands(super_mask)<br>return  img.select(&#39;cloud_rf&#39;).updateMask(img.select(&#39;cloud_rf&#39;));<br>}</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcdn.knightlab.com%2Flibs%2Fjuxtapose%2Flatest%2Fembed%2Findex.html%3Fuid%3Da9416e18-afa7-11ea-a30b-0edaf8f81e27&amp;display_name=Knight+Lab&amp;url=https%3A%2F%2Fcdn.knightlab.com%2Flibs%2Fjuxtapose%2Flatest%2Fembed%2Findex.html%3Fuid%3Da9416e18-afa7-11ea-a30b-0edaf8f81e27&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=knightlab" width="700" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/165ad7d7b9ea985397214319393f669a/href">https://medium.com/media/165ad7d7b9ea985397214319393f669a/href</a></iframe><p>Entire script</p><pre><a href="https://code.earthengine.google.com/81d21a7a45753870870ba836b1ebe024">https://code.earthengine.google.com/81d21a7a45753870870ba836b1ebe024</a></pre><p>A more carefully step by step cloud mask was described in my recent <a href="https://www.mdpi.com/2072-4292/12/2/281">paper </a>is visualized in the graphic below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5BUs32R9rMGpnvxezRY5_A.jpeg" /><figcaption><a href="https://www.mdpi.com/2072-4292/12/2/281/htm"><strong>Figure A1</strong></a><strong>.</strong> Demonstration of cloud masking steps. (<strong>a</strong>) cloudy true color image, (<strong>b</strong>) cloud and cirrus masked (yellow) using only QA60 Band, © cloud mask using combination of Red and Aerosol Band (B4 &amp; B1), (<strong>d</strong>) cloud mask using random forest classification, band QA60 was used as training field, (<strong>e</strong>) final cloud mask combining all masks together. This scene was acquired by Sentienl 2B on 12 May 2019 over Ninh Thuan, Vietnam (id = COPERNICUS/S2/20190513T030549_20190513T032056_T49PBN).</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac0a2f759022" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to rank the most polluted water body in city using Sentinel 2 satellite imagery via Google…]]></title>
            <link>https://medium.com/@ndminhhus/how-to-rank-the-most-polluted-water-body-in-city-using-sentinel-2-satellite-imagery-via-google-792685105bfd?source=rss-aad86c26a8b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/792685105bfd</guid>
            <category><![CDATA[sentinel-2]]></category>
            <category><![CDATA[eutrophication]]></category>
            <category><![CDATA[water-quality]]></category>
            <category><![CDATA[urban-waterfronts]]></category>
            <category><![CDATA[google-earth-engine]]></category>
            <dc:creator><![CDATA[Minh Nguyen]]></dc:creator>
            <pubDate>Tue, 09 Jun 2020 06:10:15 GMT</pubDate>
            <atom:updated>2020-07-14T03:11:21.128Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to quickly assess urban water quality using Sentinel 2 satellite imagery in Google Earth Engine</h3><h4>In this article, we will together create a short, simple but smart workflow in Google Earth Engine on how to identify urban water bodies and find the most polluted one. Sentinel 2 satellite imagery of the European Space Agency will be used for estimation of chlorophyll-a level or the eutrophication state of water.</h4><p>If you want to go straight to GEE code, go to this <a href="https://code.earthengine.google.com/77e9e9e339de9f4be025a6069e2f32eb">link</a></p><figure><img alt="A map showing all water surface area in the city of Hanoi. The most polluted one is in the circle named “Sword Lake”" src="https://cdn-images-1.medium.com/max/1024/1*TEC7Z8OelGmCoS55WiF3Nw.png" /><figcaption>The most polluted lake named “Sword Lake” is in the circle</figcaption></figure><h4>Overview</h4><p>Hanoi, Vietnam, the city where I live, is a city surrounded by lakes and rivers. Inside the metropolitan area only, there are about 120 natural lakes and ponds, covering 20% of the total city area. But as the city’s population growing (it reached 30.000 people per kilometer square in 2019), these lakes are being polluted by untreated sewage and domestic waste. The author believes that urban water bodies across Asia, are being faced with a similar situation.</p><p>In this article, we will together create a short, simple but smart workflow in Google Earth Engine to demonstrate how to quickly and accurately identify water bodies then find the most polluted one. We don’t have to go to the field but see things at 10 m resolution imagery thanks to Sentinel 2 satellite of the European Space Agency. Following a paper published by (<a href="https://doi.org/10.1016/j.rse.2011.10.016">Mistra 2012</a>), chlorophyll-a level or the eutrophication state of water will be remotely sensed via the novel Normalized Difference Chlorophyll Index or NDCI.</p><h4>Workflow</h4><ul><li>Create a polygon of your region of interest (roi)</li></ul><pre>var roi = ee.Geometry.Polygon(<br> [[[105.72, 21.12],<br> [105.72, 20.93],<br> [105.93, 20.93],<br> [105.93, 21.12]]]);</pre><ul><li>Select the best satellite image acquired by Sentinel 2 over your roi.</li></ul><pre>var IMG = ee.ImageCollection(&quot;COPERNICUS/S2_SR&quot;)<br> .filterBounds(roi)<br> .sort(‘CLOUDY_PIXEL_PERCENTAGE’,true)<br> .first()<br> .clip(roi);</pre><ul><li>Write a function to detect water pixel and mask out everything else</li></ul><pre>function ndwi_f(img){<br> var ndwi = img.normalizedDifference([‘B3’, ‘B8’]).rename(‘NDWI’);<br> return img.addBands(ndwi).updateMask(ndwi.gt(0))<br>}</pre><ul><li>Write a function to calculate NDCI for every water pixel</li></ul><pre>function ndci_f(img){<br> var ndci = img.normalizedDifference([‘B5’, ‘B4’]).rename(‘NDCI’);<br> return img.addBands(ndci)<br>}</pre><ul><li>Entire Script</li></ul><pre><a href="https://code.earthengine.google.com/77e9e9e339de9f4be025a6069e2f32eb">https://code.earthengine.google.com/77e9e9e339de9f4be025a6069e2f32eb</a></pre><h4>Visualization</h4><pre>var viz = {min:0.1,max:0.4,palette:[‘cyan’,’orange’,’red’]}<br>Map.addLayer(IMG_NDCI.select(‘NDCI’),viz,”IMG_NDCI”)</pre><p>I hope you enjoy reading and please give me a clap you if find it helpful, comment if you have anything to share. Let me know if you can reproduce it for the for your city/ area!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=792685105bfd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Urban Heat Island Visualization Via Google Earth Engine]]></title>
            <link>https://medium.com/@ndminhhus/hanoi-urbanization-and-heat-island-effect-via-google-earth-engine-part-1-3-709dee170fc3?source=rss-aad86c26a8b0------2</link>
            <guid isPermaLink="false">https://medium.com/p/709dee170fc3</guid>
            <category><![CDATA[google-earth-engine]]></category>
            <category><![CDATA[urban-planning]]></category>
            <category><![CDATA[landsat8]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <dc:creator><![CDATA[Minh Nguyen]]></dc:creator>
            <pubDate>Tue, 05 Mar 2019 09:31:06 GMT</pubDate>
            <atom:updated>2019-04-19T04:44:08.946Z</atom:updated>
            <content:encoded><![CDATA[<h3>Heat in the City: Visualize Brightness Temperature Via Google Earth Engine (elementary level)</h3><p>This a simple and straight forward example to visualize the spatial variation of brightness temperature (a key parameter to characterize Urban Heat Island effect and surface energy fluxes) from a single Landsat 8 image in the Google Earth Engine platform.</p><ul><li>Load your region of interest (ROI): in our case, the fusion table of Hanoi districts. You also can upload your shapefile directly to Google Asset</li><li>Select the least cloudy image of the Landsat 8 collection</li><li>Calculate Brightness Temperature in Celsius degree</li><li>Visualize the map</li></ul><pre>//Fusion table of Hanoi districts<br>var hanoi = ee.FeatureCollection(&#39;ft:1JxgHw-P8R-SB7J84OWaapRfQFjYSlxGkTNL4e4HM&#39;,&#39;geometry&#39;);</pre><pre>//Select the least cloudy image in the Landsat 8 collection<br>var image = ee.ImageCollection(&#39;LANDSAT/LC08/C01/T1_SR&#39;)<br>.filterBounds(geometry)<br>.sort(&quot;CLOUD_COVER&quot;)<br>.first();</pre><pre>//Convert the brightness temperature (Kelvin 0.1) to Celsius <br>var tempC = image.select(&quot;B10&quot;)<br>.multiply(0.1)<br>.subtract(273.5)<br>.clip(hanoi);</pre><pre>//Visualize maps<br>Map.addLayer(tempC,{palette:[&#39;blue&#39;,&#39;green&#39;,&#39;orange&#39;,&#39;red&#39;],min:18,max:25}, &#39;temperature C&#39;);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*zAiBlrPasLo0z9FRmnPxOA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=709dee170fc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>