<?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 Monja Šebela on Medium]]></title>
        <description><![CDATA[Stories by Monja Šebela on Medium]]></description>
        <link>https://medium.com/@monja.sebela?source=rss-a4a3445c5bb2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*uiVZIsbUKm4as89Z.jpg</url>
            <title>Stories by Monja Šebela on Medium</title>
            <link>https://medium.com/@monja.sebela?source=rss-a4a3445c5bb2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 18:17:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@monja.sebela/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[SICE — Snow and Ice Products   on Demand]]></title>
            <link>https://medium.com/euro-data-cube/sice-snow-and-ice-products-on-demand-375876868ccb?source=rss-a4a3445c5bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/375876868ccb</guid>
            <category><![CDATA[snow]]></category>
            <category><![CDATA[ice]]></category>
            <category><![CDATA[sentinel-hub]]></category>
            <category><![CDATA[sice]]></category>
            <category><![CDATA[byoa]]></category>
            <dc:creator><![CDATA[Monja Šebela]]></dc:creator>
            <pubDate>Mon, 14 Nov 2022 10:40:06 GMT</pubDate>
            <atom:updated>2022-11-15T08:18:44.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ygyvAKB1ummY4qEVYJZw0g.png" /></figure><h3>SICE — Snow and Ice Products on Demand</h3><h4>Operational Sentinel-3 Snow and Ice Products Within EDC</h4><p>Areas with permanent snow and ice cover, namely those in the Arctic, play a crucial role in maintaining a global energy balance by reflecting as much as 90 % of the radiation from the sun back into space. Doing so, the Earth absorbs less heat, keeping it cooler. As snow and ice physical properties (such as grain size) change, so does the percentage or solar radiation they reflect (albedo). Additionally, large scale melting of ice sheets lowers global albedo by increasing the amount of dark surfaces (oceans), as well as increases global sea levels and disrupts ocean currents and arctic ecosystems. Monitoring the properties of snow and ice is thus important in monitoring of glacial ecosystems, as well as predicting the progression of climate change.</p><p>In this blog post, we explore the algorithm developed for the purpose of monitoring the properties of snow and ice, called SICE (Operational Sentinel-3 snow and ice products). We look into the importance of polar ice cap monitoring, dive into SICE data and use it to look at Southern Greenland snow and ice changes through recent years. Finally, we look into how you can access already processed SICE products, as well as how you can order them on demand with just a few clicks within the Euro Data Cube.</p><h3>About SICE</h3><p>SICE algorithm processes Sentinel-3 satellite data to retrieve snow and ice properties on all glaciated and fully snow covered areas. Its processing chain is automated and <a href="https://github.com/AdrienWehrle/SICE#outputs">open source</a>. The resulting snow and ice products include retrieval of snow albedo, optical grain size, snow quality, Sentinel-3 band data and cloud identification. SICE algorithm has been used to process several locations already, and some of the results, such as planar albedo, can be obtained directly from the <a href="https://dataverse01.geus.dk/dataverse/sice">SICE Dataverse</a>.</p><p>Before SICE, snow and ice properties were retrieved using MODIS satellite. Researchers have shown that SICE algorithm is better at retrieving these data than MODIS and just as good as <a href="https://promice.org/">PROMICE </a>data retrievals. Read about SICE data retrieval algorithms in detail in the official<a href="https://www.researchgate.net/publication/345375161_Pre-operational_Sentinel-3_Snow_and_Ice_SICE_Products_Algorithm_Theoretical_Basis_Document"> specifications document</a>.</p><p>Within Euro Data Cube, Sentinel Hub was used to reproduce the SICE processing chain and offer data on demand to EDC users. The results are identical to those obtained with the original processing chain (save for the lack of a cloud detection layer in Sentinel Hub data). Explore some of the Sentinel Hub’s already processed SICE data using the <a href="https://viewer.polarview.org/?zoom=7&amp;lat=61.38721&amp;lng=-44.85278&amp;themeId=DEFAULT-THEME&amp;crs=EPSG%3A3857&amp;visualizationUrl=https%3A%2F%2Fcreodias.sentinel-hub.com%2Fogc%2Fwms%2Fa94fc9a7-0cd4-430b-b051-ed642f52c812&amp;datasetId=SICE_300M&amp;fromTime=2022-04-20T00%3A00%3A00.000Z&amp;toTime=2022-04-20T23%3A59%3A59.999Z&amp;layerId=TOP-OF-THE-ATMOSPHERE-REFLECTANCE-200M">PolarTEP</a> viewer.</p><h3>EDC SICE Data</h3><p>EDC SICE algorithm produces 9 GeoTIFF files, all in spatial resolution from 1200 to 300 meters. The products are described below.</p><ul><li>Diagnostic Retrieval</li><li>Snow Grain diameter</li><li>Snow specific surface area</li><li>Shortwave Broadband Planar Albedo</li><li>Shortwave Broadband Spherical Albedo</li><li>Top of the Atmosphere Reflectance (OLCI band 1)</li><li>Top of the atmosphere Reflectance (OLCI band 6)</li><li>Top of the Atmosphere Reflectance (OLCI band 17)</li><li>Top of the Atmosphere Reflectance (OLCI band 21)</li></ul><h4>DIAGNOSTIC RETRIEVAL</h4><p>This product holds information on snow quality — specifically whether snow is clean or polluted, and whether property retrieval was possible. Pollution refers to snow impurities, such as dust, soot, algae or liquid water, and is only recognized when relatively heavy (above 1ppmv). Diagnostic retrieval is a classified dataset with 8 classes, with the first 4 classes retrieved (meaning they hold information on whether snow is clean or polluted) and the last 4 classes indicating a specific error. The colors in this case were chosen by us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*2s2rTs1giFRjAtszQDXp9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVfwBlBYEaLCJOJANeYL_w.png" /><figcaption>Visualized diagnostic retrieval over Southern Greenland. SICE, 2022–04–20 <a href="https://polar.page.link/Rbt7">🌐</a></figcaption></figure><p>To simplify the visualization of diagnostic retrieval, we grouped values together to display clean snow (values 0 and 7) as blue, polluted snow (values 1 and 6) as grey and values of not retrieved classes as white.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8m40-Or-ZoRfS5W9XbLndw.png" /><figcaption>Visualized diagnostic retrieval over Southern Greenland. Clean snow is displayed in blue and polluted snow in grey. SICE, 2022–04–20 <a href="https://polar.page.link/xhST">🌐</a></figcaption></figure><h4><strong>ALBEDO</strong></h4><p>Albedo is a parameter every surface has. It is the ratio of reflected light compared to total sunlight that falls on the surface. Another way we can think of it is as reflectivity of the surface, which is not self illuminated. Low albedo means that less light is being reflected, or, the other way around, the more sunlight the surface reflects, the higher albedo it has.</p><p>Albedo <a href="https://medium.com/r?url=https%3A%2F%2Fwww.careelite.de%2Fen%2Falbedo-effect%2F">depends on the following</a> factors:</p><ul><li>wavelength of light — materials absorb and reflect specific wavelengths.</li><li>the angle under which sunlight reaches the surface, also called the incidence angle — at certain angles, light is more likely to be absorbed than at others.</li><li>texture of the surface — smoother surfaces are more reflective.</li><li>thickness of the material</li><li>Structure of the material — determines how easily the light can penetrate the surface</li></ul><p>See the global albedo map from January 2017 on the image below. We can see that water with its very low reflectivity is completely dark, indicating low albedo, while snow covered arctic areas are completely white, thus indicating a high albedo. We can also see high albedo in deserts. This is due to sand color being quite light and the general surface of sand dunes relatively smooth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7dGR-1eSFV3rzt0SpN-CbQ.png" /><figcaption>Global albedo in January 2017. Lighter surfaces indicate higher albedo (see the white arctic regions), while darker surfaces indicate low albedo (see dark water areas). Image by <a href="https://neo.gsfc.nasa.gov/view.php?datasetId=MCD43C3_M_BSA">NASA</a>.</figcaption></figure><p>When large ice caps melt, the area previously covered in snow is converted into water, lowering global albedo. The oceans can then absorb more solar radiation, heating the planet up. This in turn increases ice thinning and melting, producing a positive feedback loop. Albedo of snow covered areas is not constant, but changes with time, for example, due to seasonal snow cover differences, due to presence of melting water, changes in snow grain size, presence of algae, ice cap melting, etc.</p><h4>Shortwave Broadband Albedo Products in SICE</h4><p>In SICE, <em>Shortwave broadband</em> relates to the shortwave infrared (IR) wavelength used in the calculations. The values of the albedo products in SICE generally range between 700–2400 nm. 700 nm indicate that low values belong to the red part of the light spectrum and 2400 nm indicate that high values belong to the IR part of the light spectrum. Note that albedo is only calculated for areas 100 % covered by snow. A lot of glacial areas on Greenland’s coast thus lack albedo calculations.</p><p>SICE offers two shortwave (sw) broadband (bb) albedo products:</p><ul><li><strong>Planar albedo (</strong><em>albedo_bb_planar_sw</em><strong>)</strong></li><li><strong>Spherical albedo (</strong><em>albedo_bb_spherical_sw)</em></li></ul><p><a href="https://glossary.ametsoc.org/wiki/Plane_albedo">Planar albedo</a> is an <a href="https://glossary.ametsoc.org/wiki/Albedo">albedo</a> of a flat surface, illuminated by sunlight coming from a single direction, while <a href="https://glossary.ametsoc.org/wiki/Spherical_albedo">spherical albedo</a> is the albedo of a surface when illuminated by sunlight that comes from all directions and angles (diffuse illumination). Spherical albedo is considered to be <a href="https://medium.com/r?url=https%3A%2F%2Fwww.frontiersin.org%2Farticles%2F10.3389%2Ffrsen.2022.790723%2Ffull">an indicator of Earth’s radiation budget</a> and thus a key driver in global climate systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*96sJ8AAooNKPfcut9ADUVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*boL1LFfU4qHhjYJtk8lGnQ.png" /><figcaption>Planar albedo (left <a href="https://polar.page.link/qNn3">🌐</a>) and spherical albedo (right <a href="https://polar.page.link/7fyB">🌐</a>) of Southern Greenland on April 20, 2022.</figcaption></figure><h4>SNOW GRAIN PRODUCTS</h4><p>Snow is composed of tiny ice crystals, that accumulate into snow grains on the ground. The <a href="https://www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-3/Snow_grain_size_it_matters">snow grain size</a> impacts how much radiation is reflected or absorbed, as larger grains <a href="https://www.mdpi.com/2072-4292/14/4/932">increase the path length</a> of incoming light within ice crystals, which increases the probability for the light to be absorbed. When snow absorbs solar radiation it heats up, turning into liquid on the surface, which flows between snow grains and increases the optical grain size. Wet snow grains are thus similar to large snow grains, both increasing the surface albedo. We know that infrared reflectance responds to snow grain size, so we can use infrared satellite bands to discern it.</p><p>Because snow grain shape is highly variable, snow grain size is a subjective measurement that is hard to quantify in a standardised way, and its quantification varies from one study to another. For this reason, scientists came up with the metric called <em>specific surface area</em>, which is <a href="https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2001JD001016">an objective measurement to define the physical structure of the snow pack</a>. The specific surface area of snow is calculated as the surface area per unit mass, essentially representing the ice–air interface per unit mass.</p><p>SICE algorithm returns two snow grain products:</p><ul><li><strong>Snow grain diameter <em>(</em></strong><em>grain_diameter)</em></li><li><strong>Snow specific surface area <em>(</em></strong><em>snow_specific_surface_area</em><strong><em>)</em></strong></li></ul><p>Snow specific surface area is a measurement of snow grain size in m2kg-1, while Snow grain diameter is measured in millimeters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nUz05zGKTocOPy3wX_rnug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7xCBtIdiXI27lUWYvIHc9w.png" /><figcaption>Snow specific surface area (left <a href="https://polar.page.link/9av6">🌐</a>) and snow grain diameter (right <a href="https://polar.page.link/FsFS">🌐</a>) of Southern Greenland on April 20, 2022.</figcaption></figure><h4>SENTINEL-3 OLCI BANDS B01, B06, B17, B21</h4><p>Sentinel-3 OLCI has 21 optical bands, which are all accessible via Sentinel Hub. SICE algorithm returns four of these bands, which were deemed the most useful for snow and ice property retrieval. The files containing these products are named <em>r_TOA_01, r_TOA_06</em>, <em>r_TOA_17</em> and <em>r_TOA_21, </em>with TOA indicating top of the atmosphere reflectance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qjDspMDAOo9fXr0WcF3N2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*47vidrJ1wJHkiXzPML5_dA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4bi04H4aI9YQwtm0hL7ssw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2d9saAmlgb98PXpv-eiOA.png" /><figcaption>Sentinel 3 OLCI band <em>r_TOA_01</em> (bottom left <a href="https://polar.page.link/koPo">🌐</a>), <em>r_TOA_06 </em>(bottom left <a href="https://polar.page.link/tuA2">🌐</a>), <em>r_TOA_17 </em>(top right <a href="https://polar.page.link/GUok">🌐</a>) and <em>r_TOA_21 </em>(top left<a href="https://polar.page.link/jqmh">🌐</a>).</figcaption></figure><p>Below is an RGB composite of bands B01, B17 and B21, returning Southern Greenland in pleasing colors. Properties of the three bands are combined together to visualize the surface in various color shades. See how it works within <a href="https://sentinelshare.page.link/nWdp">Polar Tep Viewer</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9WEe48cOVCfp9U7RJkTP1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9GaeqT3viPvDu6kNm1Wxcg.png" /><figcaption>Custom RGB composite with bands B01, B17 and B21. Greenland, April 20, 2022. <a href="https://polar.page.link/3sEz">🌐</a></figcaption></figure><h3>Use-Case Example: Greenland Ice Sheet</h3><p>Let’s look at how Greenland snow and ice parameters changed between April 2017 and April 2022.</p><p>The following three images display changes in clean vs. polluted snow cover. The first two images show diagnostic retrieval on April 2017 and 2022, respectively, and the third image displays changes in clean snow cover between these dates. Magenta colors indicate clean snow reduction and green colors indicate its increase. White color indicates that no change in clean snow cover occured.</p><p><em>The following change visualizations were created using a multi-temporal RGB evalscript with 2017 data in the red and blue channels, and 2022 data in the green channel.</em></p><p>As we can see, clean snow cover was reduced drastically on the west side of Greenland since 2017, replaced instead by polluted snow. This could be a consequence of melting, if the amount of liquid water in the snow increased (remember, presence of liquid water is one of the possible causes of snow pollution for this product).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EKN5nckwSX5E1iNTnvU_9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhh1IMO1N4UyoC3XiYO9PQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DFV6PR_vU8k1W6eZeOsmIw.png" /><figcaption>Diagnostic retrieval in April 2017 (left <a href="https://polar.page.link/8dCe">🌐</a>), April 2022 (middle <a href="https://polar.page.link/wuaU">🌐</a>) and the clean snow cover difference between the two dates (right <a href="https://polar.page.link/Uaan">🌐</a>).</figcaption></figure><p>As seen on the images below, we observe a significant albedo reduction on the west side of Greenland, as well as a general mild reduction across central Greenland. The albedo reduction is similar to the reduction of the clean snow cover above, which can be explained by the fact that clean snow generally has a brighter color and smoother surface (thus a higher albedo) than polluted snow. Albedo likely decreased due to ice melting and presence of melting water as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i4H594U2Y16XEblRIhrUvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WA2DJRkUhvE-DqhAd8xjwQ.png" /><figcaption>Difference between April 2017 and April 2022 in planar albedo (left <a href="https://polar.page.link/sh1K">🌐</a>) and spherical albedo (middle <a href="https://polar.page.link/Y9Us">🌐</a>).</figcaption></figure><p>On the image below we see a striking grain diameter increase since 2017. The bright green section on the East can be attributed to glacier melting in April 2022, moving chunks of ice into the ocean that weren’t present in April 2017. General grain diameter increase is in large part consistent with albedo decrease from the first two images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CX-r6HZLH3n76AFAQjdceA.png" /><figcaption>Difference between April 2017 and April 2022 in grain size diameter (right <a href="https://polar.page.link/nqrT">🌐</a>)</figcaption></figure><p>Let’s look at two specific Greenlandic glaciers up close. Snow cover reduction between 2017 and 2022 is clearly visible from Sentinel-2 natural color images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsCjahAAlu4ytBttL6DEbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-82R2mqhKqeIW52CWOSl0Q.png" /><figcaption>Sentinel-2 L2A images, acquired on 28.4.2017 (left <a href="https://sentinelshare.page.link/Rio7">🌐</a>) and 09.4.2022 (right <a href="https://sentinelshare.page.link/zWGq">🌐</a>).</figcaption></figure><p>By comparing diagnostic retrieval values between 2017 and 2022, we see a dramatic decrease in clean snow, as seen in magenta colors on the image showing differences between the two dates on the right.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_kIrw12Lrb9Bzqb6Z-BL0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ID_YzWtgyvYMHWx_yA5gzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KFDmR2ddizwid7QHEiqWiw.png" /><figcaption>SICE diagnostic retrieval, acquired on 22.4.2017 (left <a href="https://polar.page.link/yFQB">🌐</a>), 20.4.2022 (middle <a href="https://polar.page.link/n5Nk">🌐</a>), and the difference between the two dates (right <a href="https://polar.page.link/oeNr">🌐</a>)</figcaption></figure><p>Snow grain size increased significantly in 2022, as seen by vivid green color on our comparative image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3oCroAomdrIl-Do98JrYxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PrL0BiYvz0DYDXw1Tn2blA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AZvX2jMC9esaQ35MKoF4Mg.png" /><figcaption>SICE grain diameter, acquired on 22.4.2017 (left <a href="https://polar.page.link/273i">🌐</a>), 20.4.2022 (middle <a href="https://polar.page.link/dmb4">🌐</a>), and the difference between the two dates (right <a href="https://polar.page.link/XV1Q">🌐</a>)</figcaption></figure><p>Due to glaciers not having 100 % snow cover, albedo visualizations have gaps in between. By comparing images from 2017 and 2022, we see a drastic drop in albedo in the area, which we can attribute to increased grain size and decrease of clean snow area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zddIL9BJJeFANe8666wJuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YdA0clvsD2Tgw4gLDkWnrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*snGXgBJtO4GSYhfzYgu9lw.png" /><figcaption>SICE planar albedo, acquired on 22.4.2017 (left <a href="https://polar.page.link/TSEi">🌐</a>), 20.4.2022 (middle <a href="https://polar.page.link/7GM9">🌐</a>), and the difference between the two dates (right <a href="https://polar.page.link/bfAe">🌐</a>)</figcaption></figure><p>To figure out how much exactly these parameters decreased over Southern Greenland, we used Sentinel Hub’s Statistical API to observe the mean albedo and grain size values for 6 April dates from 2017 and 2022. The chart below shows a downtrend for mean spherical albedo, and an uptrend for snow grain diameter. In fact, the two look almost perfectly inverted. We can see that the year 2020 was an outlier, showing an increase in albedo and decrease in optical grain size, which can be attributed to thicker snow cover that year. Despite the increase in 2020, chart indicates an alarming trend in disappearing snow cover through the recent years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2x-p5q4B5Hj1HIVFhMOZQA.png" /></figure><h3>Order on Demand SICE Data With EDC</h3><p>Browsing freely available data is great, but sometimes we need data for a specific location and date, which isn’t yet available for download. When this is the case, you can order SICE processing for any location and date using the EDC’s <a href="https://eurodatacube.com/marketplace/data-products/on-demand">Insights on demand</a> functionality. You can purchase SICE data either in the <a href="https://browser.eurodatacube.com/?zoom=9&amp;lat=45.42352&amp;lng=11.71417&amp;fromTime=1970-01-01T00%3A00%3A00.000Z&amp;toTime=2022-01-18T10%3A05%3A57.342Z&amp;algorithm=eoxcloudless-s2-global-mosaic-10">EDC Browser</a> or within the <a href="https://viewer.polarview.org/?zoom=7&amp;lat=61.38721&amp;lng=-44.85278&amp;themeId=DEFAULT-THEME&amp;crs=EPSG%3A3857&amp;visualizationUrl=https%3A%2F%2Fcreodias.sentinel-hub.com%2Fogc%2Fwms%2Fa94fc9a7-0cd4-430b-b051-ed642f52c812&amp;datasetId=SICE_300M&amp;fromTime=2022-04-20T00%3A00%3A00.000Z&amp;toTime=2022-04-20T23%3A59%3A59.999Z&amp;layerId=TOP-OF-THE-ATMOSPHERE-REFLECTANCE-200M">PolarTEP</a> viewer, as soon as you have an <a href="https://eurodatacube.com/">EDC account</a> and allocated at least 10 credits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*oG0M8SYR2oJmZuDtYMOt6w.png" /></figure><p>You will need the following specified:</p><ul><li>polygon of interest</li><li>date (any date since April 2016 — the date of Sentinel-3 launch )</li><li>resolution (can be any number between 300 and 1200)</li></ul><p><strong>Important note</strong>: <em>SICE won’t be retrieved when solar zenith angle is lower than 75 degrees, as that means the area is in darkness and we can’t retrieve optical imagery. This is common over polar regions in winter (remember that in some regions, the area is in darkness for several months). If you order data on such a date, your GeoTIFFs will lack SICE calculations. We suggest to generally only order data between May and September. Note also that SICE algorithm is best suited for large scale polar and arctic regions.</em></p><p>When clicking purchase, you will see a summary of your order, as well as an estimation of how many credits will be used. Credits depend on your area of interest and resolution. The algorithm isn’t too costly — the whole Greenland in 300 m resolution for a day costs approximately 20 credits, which corresponds to roughly 20 EUR.</p><p>To learn more about Insights on demand and how to use the functionality, check out the following blog posts:</p><ul><li><a href="https://medium.com/euro-data-cube/getting-data-on-demand-with-edc-browser-85da1b05ace1">Getting Data on Demand with EDC Browser</a></li><li><a href="https://medium.com/euro-data-cube/sharing-your-algorithms-with-data-on-demand-on-edc-c159084ded00">Sharing your algorithms with Data on Demand on EDC</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=375876868ccb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/euro-data-cube/sice-snow-and-ice-products-on-demand-375876868ccb">SICE — Snow and Ice Products   on Demand</a> was originally published in <a href="https://medium.com/euro-data-cube">Euro Data Cube</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terrain Viewer in EO Browser: A Play of Light and Shadow]]></title>
            <link>https://medium.com/sentinel-hub/terrain-viewer-in-eo-browser-a-play-of-light-and-shadow-64ccf22959f?source=rss-a4a3445c5bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/64ccf22959f</guid>
            <category><![CDATA[3d]]></category>
            <category><![CDATA[sentinel-hub]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[terrain-viewer]]></category>
            <category><![CDATA[eo-browser]]></category>
            <dc:creator><![CDATA[Monja Šebela]]></dc:creator>
            <pubDate>Mon, 21 Jun 2021 10:57:29 GMT</pubDate>
            <atom:updated>2021-06-21T11:00:56.707Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KlhLq10tnEiDCQKAOkEwOg.png" /><figcaption>Himalayas as seen with the 3D Terrain Viewer. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/6nkp">🌐</a></figcaption></figure><h4>Explore the world in 3D with any satellite visualization!</h4><p>The new EO Browser terrain viewer is amazing! It got a significant upgrade with an all new engine and additional features. You can use it to view satellite imagery from all angles. Custom visualizations as well, to highlight the relevant features of the image on terrain surface. Now isn’t that awesome?</p><p>The coolest part is that you have quite a bit of freedom in how 3D visualizations appear. It is possible to manipulate vertical scaling, shading properties and even the angle of the Sun! Let’s take a look at all the features the tool has to offer.</p><h3>Navigation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*TfYP4X04Ho3_h0FhYjH9VQ.png" /></figure><p>Before we begin— you can find the Terrain Viewer tool in <a href="https://apps.sentinel-hub.com/eo-browser/">EO Browser</a> by first visualizing an image and then clicking on the cube icon on the right. A quick introduction to the tool can be found in our <a href="https://www.youtube.com/watch?v=eK0OMn5H-kY&amp;t=2287s">EO Browser webinar</a>, —but let’s introduce it here in more detail.</p><p>First, check the <strong>Help</strong> panel (question mark in the top right navigation bar) to see how to navigate the 3D view. This can be done in three ways:</p><ul><li>With the mouse.</li><li>With the buttons of the navigation panel on the left of the 3D view.</li><li>With the keyboard.</li></ul><p>One can pan, rotate, tilt and zoom the camera. Not only can you use these tools to view the 3D terrain from different angles, but you can also “travel” over the landscape and create beautiful animations. It takes a bit to get a handle on the controls, but it’s really fun!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Ax_L8oEDOWHqGwYHisnGg.gif" /><figcaption>Animation of the Himalayas, made using the 3D Terrain Viewer. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/pdw9">🌐</a></figcaption></figure><p>If you zoom out enough, you will see the whole globe, which you can rotate and navigate. If you’re wondering about the black spots at the poles — that’s because our 3D feature uses the WebMercator projection, which only has information up to ± 85 degrees latitude, leaving the poles blank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*OCH6uNLz-XVmnLMwA8JMfw.png" /></figure><p>By clicking on the first button (which looks like a target) in the top navigation bar your camera will be positioned over the visualized area top down at a set height of about 40 km above sea level (which is roughly equivalent to a <a href="https://wiki.openstreetmap.org/wiki/Zoom_levels">zoom level 13 in EO Browser</a>). This is particularly useful if you want to quickly return the camera into a default position or if you have zoomed out too much and lost your visualized image. The light bulb icon activates shading, the Sun icon activates Sun shadows and tools, and the gear icon opens the Settings panel with various shadow, shading and terrain options. We will look at all of these options in detail.</p><h3>Vertical Terrain Scaling</h3><p>It is possible to change the intensity of terrain elevation differences by moving the <strong>Vertical Terrain Scaling</strong> slider in the <strong>Settings</strong> dialogue. The default value, the natural elevation, is set to 100 %. Changing this value is useful in flatter areas, where differences in elevation are not as easily perceived, and can be better emphasized by increasing the slider above 100 %. Use this feature wisely to avoid mis-representation of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDFgX53jeBi5HyXg1phtlQ.gif" /><figcaption>Vertical terrain scaling over Danakil Depression, Ethiopia. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/S2k4">🌐</a></figcaption></figure><p>Note that the 3D model (NASA ASTER GDEM V2 in this case) is distorted over water surfaces, and this can sometimes make them appear to have unequal elevation. The ruggedness of the Ptuj lake below says nothing of the lake floor terrain, but is an anomaly due to radar backscatter (source for ASTER GDEM), which creates noise over water.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B4t7N12QRzTuPRSVKu32mA.png" /><figcaption>Terrain anomalies of the lake Ptuj, Slovenia. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/VpjA">🌐</a></figcaption></figure><h3>Light and Shadow</h3><p>This feature allows you to manipulate the shading and shadows of your scene with several parameters. The default values, which you can restore at any time by clicking the <strong>Reset Values</strong> buttons, are set to represent realistic proportions and representative shading of the terrain. By changing these parameters, you can emphasize certain features, or achieve a certain look to suit your needs, but terrain might appear less realistic, similar to the vertical terrain scaling.</p><h4>Sun and Atmosphere</h4><p>You can change the lighting of the scene based on the position of the Sun at any day of the year at any time of the day. This adds shadows to the scene. To do this, enable the <strong>Sun</strong> option. This can be useful for a number of reasons — for example, you can check when the Sun rises at a particular point on the globe in winter, and how the position of the Sun affects the shadows. The time is set to UTC, because UTC is globally accepted and is not ambiguous. The time defaults to your current time, which you can restore by clicking the <strong>Current time </strong>button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-RXrJaaPdNthDW-BeAOIZg.gif" /><figcaption>Changes in shadows throughout the day on October 30, based on the position of the Sun. Mountains of New Zealand with Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/gwZS">🌐</a></figcaption></figure><p>Note that satellite images sometimes contain terrain shadows that are “baked” into the image itself. You can see one such example below, where the deep shadows of Grand Canyon are already part of the image. By changing the time and position of the Sun, one cannot affect these shadows nor remove them. By adding the light from the Sun, additional shadows appear. Therefore, terrain with fewer shadows results in better light and shadow manipulations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KUB1jKrXp7iM3kcG3crBmQ.png" /><figcaption>Grand Canyon with shadows “baked” in. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/Gqcj">🌐</a></figcaption></figure><p>If we turn off the <strong>Sun</strong> option, it’s as if the camera is carrying the light — we won’t see any shadows, as all the objects along the line of sight will be illuminated. If we turn it on, the Sun will be the light source, and we will see terrain shadows, because the Sun is at a different angle than the camera.</p><p>The <strong>Sky/Atmosphere</strong> option is on by default in the <strong>Settings </strong>and shows the sky with the Sun. If you turn it off, the sky is black. It’s really cool to watch the Sun move across the sky and enjoy the sunset colors over your imagery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auXyG7YoT4kimGb1f_NwHw.png" /><figcaption>Sunset over Mauna Kea, Hawaii. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/h8Pn">🌐</a></figcaption></figure><h4><strong>Shadow Parameters</strong></h4><p>There are additional options that allow you to manipulate the Sun projected shadows in the settings. To enable these, the Sun option must also be enabled. Click on the <strong>Parameters</strong> in the <strong>Settings</strong>, to bring them up.</p><p>The first option is <strong>shadow visibility</strong> —this is essentially the transparency of shadows, ranging from completely transparent (not visible) to fully opaque (black shadows).</p><p>The <strong>shadow rendering distance</strong> option changes the size of the area in which shadows are calculated. These are calculated within a square centered on the current camera position. The higher the value, the larger the square — you can see this in the animation below, where the shadows extend further into the distance as we increase the value, and disappear towards us as we decrease it. The reason the Terrain Viewer doesn’t show all the shadows right away is because shadow calculation is computationally expensive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h97maktE0DDrjzXqXsluzg.gif" /><figcaption>Shadow rendering distance changes over New Zealand mountains. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/dJFy">🌐</a></figcaption></figure><p><strong>Shadow map size</strong> affects the quality of your shadows. There are three different options available. Note that increasing the shadow precision uses more computer memory. You can see the difference between the two below — it’s quite striking!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zb5myTi_AVThVi4vpCm76Q.png" /><figcaption>Shadow map size comparison, Himalayas (low resolution of 1024 x 1024 px on the left, high resolution of 4096 x 4096 px on the right). Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/tThB">🌐</a></figcaption></figure><h4>Shading Parameters</h4><p>Note that shadow and shading are not the same thing. Shading is about direct unobstructed light reaching the object, while shadows appear when the light is obstructed by objects. To see shadows, we need shading first, because we need the information about the ambient, diffuse and specular factors. But we can observe shading without shadows — we can turn off the Sun or the Sun projected shadows in the settings, and still play around with it.</p><p>There are three shading parameters you can manipulate — ambient, diffuse and specular. To enable them, open <strong>Options</strong> and click <strong>Edit</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*85FnoaeQq_m8PBURrner2g.png" /><figcaption>Comparison of ambient, diffuse and specular lighting types. <a href="https://learnopengl.com/Lighting/Basic-Lighting">🌐</a></figcaption></figure><p>The first slider controls the <strong>ambient factor</strong>, which affects how much light reaches the scene regardless of the position or angle of the light (in this case, Sun).</p><p>The <strong>diffuse factor</strong> impacts the amount of illumination, based on the angle and distance of the light reaching the surface. When the light reaches the surface perpendicularly, the lighting is strongest, and when the light comes from below, the scene looks completely black.</p><p>The specularity options influence how the light is dispersed from the surface. The <strong>specular factor</strong> simply controls the amount of the parameter, while <strong>specular power</strong> controls the properties of the parameter. The lower the specular power, the wider the light will scatter, based on the angle of the light. To understand what this means, imagine a mirror. If the mirror is completely smooth, it will reflect light sharply in one direction. If we set specular power high, the surface will act as a smooth mirror. If we set the specular power low, the surface will scatter light in different directions, much like if the mirror was dirty or rough. If specular power is set to 1, the surface will behave as a diffuse surface.</p><p>You can change these parameters to make the scene brighter/darker and more appealing, or to make certain details more visible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DtojN5nmK4fGIJWbiXY7Yg.gif" /><figcaption>The animation over the New Zealand Mountains, showing the behaviour of the ambient, diffuse and specular shading factors. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/VFFn">🌐</a></figcaption></figure><p>To turn off shading, toggle the <strong>shading</strong> icon in the toolbar off. Note that this also disables the <strong>Sun</strong> option. Turning on the <strong>Sun</strong> option will also turn on shading (since shadows depend on shading). Another way to simulate disabled shading is to set the <strong>ambient factor</strong> to maximum and the <strong>diffuse</strong> and <strong>specular factor</strong> to minimum. This way you will see the image exactly the same as it was taken. However, without terrain shading it will be harder to understand the topography of the area, as it’s an important aspect of 3D visualizations.</p><p>If this is all too much to handle - don’t worry! You can experiment with the settings, or leave them as default. If you want to learn more about the topic, you can check out <a href="https://learnopengl.com/Lighting/Basic-Lighting">this resource</a> on different lighting types.</p><h3>Save, Share and Download</h3><p>When you’re satisfied with your 3D visualization, you can save it by clicking the <strong>pin</strong> button at the bottom, which will save the location, visualization, and camera angle of your 3D scene to your pin list. You can also share it by clicking the <strong>share</strong> button next to the pin button. This will create a link that opens the 3D viewer in EO Browser with the location, visualization and camera angle you set. Note that your other 3D settings do not preserve when you share the scene with others. That’s because heavier settings could disturb performance for someone with a less powerful machine. The image you see in 3D can be downloaded in PNG format (don’t forget to enable show captions if you want to add information to the image!).</p><h3>Practical Use Cases</h3><p>To give you an idea of what the Terrain Viewer can be used for and how the above settings can be applied for specific purposes, here are four examples.</p><h4>Learn About the Area</h4><p>See <a href="https://medium.com/sentinel-hub/how-i-ended-up-searching-for-3d-satellite-images-covering-maratona-dles-dolomites-f8360b216b7f">how Sabina used our 3D feature to explore the marathon bike trail</a> in the Dolomites! She used it to find out if there was snow on a particular section of the track in May and June, and when the Sun would rise and set. To learn more about the area, she even used high-resolution commercial <a href="https://medium.com/sentinel-hub/there-is-never-enough-data-introducing-commercial-datasets-76b160e2d645">SPOT data</a> in Terrain Viewer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLYo5wQ73ZKr7fkw6Ni0mQ.png" /><figcaption>Maratona dles Dolomites, from <a href="https://medium.com/p/f8360b216b7f/edit">Sabina’s blog post</a>.</figcaption></figure><h4>Uncover Terrain Features</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*cqDNxDdaNRADFtDjVlgagw.jpeg" /><figcaption>Nyiragongo volcano, as seen with Copernicus Sentinel-2 imagery. Processed by Sentinel Hub. <a href="https://www.flickr.com/photos/sentinelhub/50305236491/in/album-72157715841836977/">🌐</a></figcaption></figure><p>An obvious use case for Terrain Viewer is to reveal elevation features that cannot be derived from a 2D image. One such example is the Nyiragongo volcano, which looks completely flat on a 2D Sentinel-2 image. Looking at the 3D terrain, we can see that the volcanic caldera is not just a burning hole on the ground, but is at the top of the steep, conical stratovolcano.</p><p>The clouds and smoke are a part of the Sentinel-2 image, and we have no elevation information for them — that’s why they are lying flat over terrain. For this visualization, we increased the vertical terrain scaling slightly to further emphasize the height of the volcano. The position of the Sun was chosen so that the shadows are visible, but not overwhelming the scene. Shading factors were increased slightly to brighten the scene and show details in smaller bumps on the volcano.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5lJ3-5VOtQliapW5qhVN7g.png" /><figcaption>Nyiragongo volcano, as seen with the 3D Terrain Viewer. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/qxGn">🌐</a></figcaption></figure><h4>Create Awesome 3D Art</h4><p>Trying out different visualizations in 3D is so much fun! For the following false color visualization we increased the ambiance and diffuse factors to preserve the vivid colors of the terrain, despite the setting Sun. Without changing these parameters, the naturally lit mountains would be much darker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vm_MI5ppODEAoAegAH0pxQ.png" /><figcaption>3D view of the Himalayas with a sunset, visualized with a custom script. Copernicus Sentinel-2 imagery, processed by Sentinel Hub. <a href="https://sentinelshare.page.link/kBpk">🌐</a></figcaption></figure><h4>Unexpected One — Searching for a Missing Person</h4><p>Sometimes even the creators of a feature can’t foresee all the possible uses people will find for it. To our astonishment, the Terrain Viewer was used to solve the missing person case, when a hiker got lost in Los Angeles National Park. The hiker took a photo of the surrounding area, without knowing exactly where he was, and the EO Browser user Benjamin helped find him by comparing the photo to the 3D terrain in EO Browser. How cool is that!</p><p><a href="https://losangeles.cbslocal.com/2021/04/14/angeles-national-forest-missing-hiker-found-safe/">Missing Angeles National Forest Hiker Found Safe With Help Of Map Enthusiast</a></p><p>The process used to find the hiker is described in <a href="https://twitter.com/ai6yrham/status/1382371967618097157">this Twitter thread</a>.</p><h3>AI6YR on Twitter: &quot;Since people are asking, how to geolocate a #hiker given only a general location and a grainy photo of their legs hanging off a cliff (thread) 1/x pic.twitter.com/81V0LGQdUk / Twitter&quot;</h3><p>Since people are asking, how to geolocate a #hiker given only a general location and a grainy photo of their legs hanging off a cliff (thread) 1/x pic.twitter.com/81V0LGQdUk</p><p>So, it’s time to visit <a href="https://apps.sentinel-hub.com/eo-browser/">EO Browser</a> and try out the Terrain Viewer!</p><p>Isn’t it amazing that we can use such powerful tools for free? I hope you are as excited as I am, and I wish you an exciting exploration of our world!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64ccf22959f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sentinel-hub/terrain-viewer-in-eo-browser-a-play-of-light-and-shadow-64ccf22959f">Terrain Viewer in EO Browser: A Play of Light and Shadow</a> was originally published in <a href="https://medium.com/sentinel-hub">Planet Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[There is Never Enough Data — WorldView, Landsat 8 Collection 2 and More]]></title>
            <link>https://medium.com/sentinel-hub/there-is-never-enough-data-worldview-landsat-8-collection-2-and-more-f1d52159e7e0?source=rss-a4a3445c5bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1d52159e7e0</guid>
            <category><![CDATA[land-use-land-cover]]></category>
            <category><![CDATA[copernicus-services]]></category>
            <category><![CDATA[corine]]></category>
            <category><![CDATA[landsat]]></category>
            <category><![CDATA[maxar]]></category>
            <dc:creator><![CDATA[Monja Šebela]]></dc:creator>
            <pubDate>Wed, 07 Apr 2021 10:55:20 GMT</pubDate>
            <atom:updated>2021-04-12T10:05:24.057Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CvrQvi6BZHAeURYF7B6gVA.png" /></figure><h3>There is Never Enough Data — WorldView, Landsat 8 Collection 2 and More</h3><h4>Data collections keep expanding, and you can help as well!</h4><p><strong>Authors</strong>: <a href="https://medium.com/@monja.sebela"><em>Monja Šebela</em></a><em>, </em><a href="https://medium.com/@vrecko.anja"><em>Anja Vrečko</em></a><em>, </em><a href="https://medium.com/@william.ray_37541"><em>William Ray</em></a><em>, </em><a href="https://medium.com/@grega.milcinski"><em>Grega Milčinski</em></a></p><p>With Sentinel Hub gaining popularity, there is an increasing demand to integrate additional data collections in order to support various use-cases. This is not an easy task — we must ensure that data is available in the appropriate format in one of the cloud platforms, where Sentinel Hub is deployed. In some cases we have to agree on the licensing, and almost always there is significant effort required to ensure that data flows through our service without negative impact to quality, so that we can honestly state that one can get original pixel values. Recently, through our partnership with European Space Imaging, we have integrated Maxar’s WorldView data, Landsat 8 collection 2 and several Copernicus data collections. As we believe that many of our users have data which they could contribute to the community, we have designed a process for our users to share their “Bring Your Own Data” collections with others as well.</p><h3>Maxar WorldView Supplied by European Space Imaging</h3><p>Sentinel and Landsat are great missions for ongoing monitoring of an area. However, people often want to “dig” deeper into details and so they need very high resolution (VHR) data. In the field of multi-spectral imagery, there are two leading providers of VHR data — <a href="https://www.maxar.com/">Maxar</a> (formerly known as DigitalGlobe) and Airbus. We’ve <a href="https://medium.com/sentinel-hub/there-is-never-enough-data-introducing-commercial-datasets-76b160e2d645">introduced</a> support for Airbus Pleiades and SPOT a year ago, along with the Planet data. Maxar’s data was missing, though. Due to the sporadic nature of VHR tasking (contrary to systematic observation scenarios of Sentinels, which we have all become accustomed to), it is even more important to have access to the widest possible archives. With extensive support of <a href="https://www.euspaceimaging.com/">European Space Imaging</a>, the European partner of Maxar who are able to task the WorldView satellites from their ground station in Germany, we can now finally include <a href="https://docs.sentinel-hub.com/api/latest/data/maxar/world-view/">VHR data from this constallation into the Sentinel Hub</a>.</p><p>WorldView is a constellation of four operational satellites: WorldView-1, Geoeye-1, WorldView-2 and 3. Unfortunately, WorldView-4 satellite is <a href="https://en.wikipedia.org/wiki/WorldView-4">not operational anymore</a> since January 2019, but the data it acquired in its lifetime is still available. Soon, Maxar is launching new satellites, <a href="https://www.maxar.com/splash/it-takes-a-legion">Maxar Legion</a>, which will increase the volume even further.</p><p>Five bands are available in Sentinel Hub, a panchromatic band with spatial resolution of 0.5 m and 4 multispectral bands with spatial resolution of 2 m: red, green, blue and near infrared band. It is possible to purchase data for a selected area of interest, which must be at least 5 km²<strong>.</strong> Data is not acquired systematically — instead, acquisitions need to be tasked. However, full archive of data is available.</p><p><a href="https://www.youtube.com/watch?v=wkFQxzxpLAA">Purchasing, ordering and accessing data</a> in Sentinel Hub works the same as for other third party data we offer: use our <a href="https://docs.sentinel-hub.com/api/latest/api/data-import/examples/#worldview-data-import">TPDI API examples</a> to search and order data or work with the <a href="https://apps.sentinel-hub.com/requests-builder/">Requests Builder</a>, if you prefer a graphical user interface. Once the data is imported, you can use all the standard “data access goodies” which are essential ingredients of Sentinel Hub: mosaicking of tiles, access in all the supported coordinate systems, custom processing and visualizing of data using evalscript or batch processing, visualization in EO Browser or simple-to-integrate in your GIS application access using WMS or WMTS services. The data can be used to monitor land cover and vegetation in particular.</p><p><strong>Let’s show some data</strong></p><p>Enough technical and background information! Let’s check how the data actually looks like.</p><p>The eyes of the world were watching the Suez Canal earlier this year. It was obstructed for six long days due to unfortunate grounding of one of the large container ships,<a href="https://en.wikipedia.org/wiki/2021_Suez_Canal_obstruction"> Ever Given</a>. Sentinel-2 captured the event on 29 March 2021, just after the ship had been released from the hold of the canal banks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lzhwFufOIusYuyGXuxgEow.png" /><figcaption>Sentinel-2 L2A true color image of Ever Given ship, 29 March 2021. Image resolution: 10 meters. The whole ship (left) and a close up (right). Satellite Imagery © 2021 Copernicus.</figcaption></figure><p>Two days earlier, on 27 March 2021, WorldView-3 also acquired a cloudless image of the ship.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*52ZgMy0MsdIfPYb0PHv0gQ.png" /><figcaption>WorldView-3 true color image of Ever Given ship, 27 March 2021. Image resolution: 2 meters. The whole ship (left) and a close up (right). Satellite Imagery © 2021 European Space Imaging.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a_KFSahJSlhe0eulp2IoPA.png" /><figcaption>WorldView-3 pansharpened image of Ever Given ship, 27 March 2021. Image resolution: 0.5 meters. The whole ship (left) and a close up (right). Satellite Imagery © 2021 European Space Imaging.</figcaption></figure><p>The difference between spatial resolutions of Sentinel-2 and WorldView images is significant when observing objects of this size. Compare the Sentinel-2 true color images (first row) to WorldView true color images (second row) and WorldView pansharpened images (third row) above. In the last image it is even possible to count how many containers are in a row.</p><p>If you want to get familiar with this collection, make sure to participate in the Africa Multi-Resolution Cube Contest, where samples of WorldView data will be available for all participants. We will announce the Contest on <a href="https://www.sentinel-hub.com/develop/community/contest/">our webpage</a> and <a href="https://www.sentinel-hub.com/about/communication-channels/">social media channels</a> in the coming few weeks, so stay tuned!</p><p>If interested, contact us or to go to our <a href="https://apps.sentinel-hub.com/dashboard/#/account/billing">Dashboard</a> for a purchase.</p><h3>Landsat 8 Collection 2</h3><p><a href="https://www.usgs.gov/core-science-systems/nli/landsat/landsat-collection-2?qt-science_support_page_related_con=1#qt-science_support_page_related_con">Landsat 8 Collection 2 imagery</a> has been added to Sentinel Hub, granting users access to a full global Landsat 8 dataset in level 1 and level 2. Landsat is well known to everyone — the sensor has been collecting data from its OLI (Operational Land Imager) and TIRS (Thermal Infrared Sensor) since February 2013, meaning there is a huge 8 years of archive at 30-meter resolution ready to be accessed.</p><p>We have been offering Landsat 8 L1C (Level-1 from Collection 1) data for a while, but this will now be superseded by Collection 2 data and it is important to know that Level-1 data from Collection 1 (currently L8L1C) will soon be <a href="https://forum.sentinel-hub.com/t/deprecation-of-landsat-8-usgs-collection/3495">deprecated</a>. To adapt your scripts using our Process API you just need to set the “type” field of the “data” object to “LOTL1” for Level-1 (from Collection 2) and “LOTL2” for Level-2 (from Collection 2). Check our <a href="https://forum.sentinel-hub.com/t/landsat-8-collection-2-level-1-and-2-available-on-sentinel-hub/3496">forum post</a> to learn how to use it in OGC requests as well.</p><p>There have been several enhancements made to the newly available Collection 2 data, with several radiometric and geometric improvements using improved processing methods. The advantage of using surface reflectance products means your measurements aren’t interfered with the atmospheric effect of gases and aerosols, producing a better result for your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jmgKAjo4On2u-c9iJGZ1EQ.png" /><figcaption>A comparison of Collection 1 (top) and Collection 2 Level-2 (bottom) imagery over Varese, Italy. Note how much better the contrast on the bottom image is. Landsat 8 image courtesy of the U.S. Geological Survey processed by Sentinel Hub.</figcaption></figure><p>More about the Landsat 8 Collection 2 Level-2 can be found in <a href="https://docs.sentinel-hub.com/api/latest/data/landsat-8-l2/">our Sentinel Hub documentation</a>, and on the U.S. Geological Survey product page — <a href="https://www.usgs.gov/core-science-systems/nli/landsat/landsat-collection-2-level-2-science-products">Science Products</a>, and <a href="https://www.usgs.gov/core-science-systems/nli/landsat/landsat-collection-2-level-1-data?qt-science_support_page_related_con=1#qt-science_support_page_related_con">Data</a>.</p><p>Note that we are working on adding Landsat 5 next, which will hopefully be available over the next couple of weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8qUxpJxSKtnNgKjCXaltA.png" /><figcaption>Landsat 8 NDVI analysis over the Mato Grosso region, Brazil (left), and a custom RGB composite over the Lena river delta in Russia (right). Landsat 8 image courtesy of the U.S. Geological Survey processed by Sentinel Hub.</figcaption></figure><h3>Copernicus Digital Elevation Model</h3><p>Next to the previously supported Mapzen Digital Elevation Model (DEM), Sentinel Hub now also supports global <a href="https://docs.sentinel-hub.com/api/latest/data/dem/">Copernicus DEM</a> in 30- and 90- meter resolution, representing the Earth’s surface, buildings, infrastructure and vegetation. That’s great news, as Copernicus 30 meter DEM has a better resolution in most of the world, where Mapzen only has <a href="https://github.com/tilezen/joerd/blob/master/docs/data-sources.md">90 meters</a>! Copernicus DEM also has generally better quality than Mapzen and is thus more suitable for orthorectification and radiometric terrain correction of Sentinel-1 data. Public COPDEM30 is not 100% global yet — in a few areas where the collection is not available, COPDEM90 is used automatically.</p><p>To select Copernicus DEM in your requests, set the data collection to DEM and set the <a href="https://docs.sentinel-hub.com/api/latest/data/dem/#deminstance"><em>demInstance</em></a> to <a href="https://docs.sentinel-hub.com/api/latest/data/dem/examples/#copernicus-dem-png"><em>COPERNICUS_90</em></a><em> </em>or <em>COPERNICUS_30</em>.</p><p>Copernicus DEM collection has one band, called DEM, which holds the values of elevation in meters. Based on this, the users can create visualizations with custom terrain colours and even calculate the <a href="https://custom-scripts.sentinel-hub.com/dem/contour-lines/">contour lines</a>. In <a href="https://sentinelshare.page.link/sGPe">EO Browser</a>, there are 3 different pre-prepared visualizations available — grayscale, color and sepia, as displayed on the Copernicus DEM 30 meter images over the Alps below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ncs9JfV-UtpJ7PqJoEdXBg.png" /><figcaption>Check several available evalscripts on our <a href="https://custom-scripts.sentinel-hub.com/#dem">Custom Script Repository</a>. Satellite Imagery © Copernicus.</figcaption></figure><p>As all the Sentinel Hub supported DEM’s are also supported by the <a href="https://docs.sentinel-hub.com/api/latest/api/process/">processing API</a>, you can even use DEM in <a href="https://docs.sentinel-hub.com/api/latest/data/data-fusion/">data fusion</a>. On the left image below, we can see the contour lines extracted from the Copernicus 30 metre DEM over the Sava river in Slovenia, and on the right, we can see a data fusion visualization of Nyiragongo, where white contour lines over Sentinel-2 imagery display the steep slopes of the volcano.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1oFHOKdeNViamOv-mv66dw.png" /><figcaption>Explore the <a href="https://sentinelshare.page.link/j9c5">left </a>and <a href="https://sentinelshare.page.link/5EAS">right </a>image directly in EO Browser. Satellite Imagery © Copernicus.</figcaption></figure><p>On the Sentinel-1 image of the Western Australian landscape below, the 30-meter Copernicus DEM was used for orthorectification and radiometric terrain correction. It’s so smooth it almost doesn’t look like Sentinel-1!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBIkvQHMh5lSTnuOb1z_lg.jpeg" /><figcaption>A <a href="https://www.flickr.com/photos/sentinelhub/51004538951/in/photostream/">full-resolution image</a> is available on our Flickr account. Satellite Imagery © 2021 Copernicus.</figcaption></figure><h3>Public Collections Catalogue</h3><p>We have launched a new <a href="https://collections.sentinel-hub.com/">Public Collections Catalogue</a>, where anyone can contribute their <a href="https://docs.sentinel-hub.com/api/latest/data/byoc/">Bring Your Own Data</a> (BYOC) collections! We are in the process of registering all our public collections, and have already published several of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GGzwMGhLCxzZQ7vSCCe1HQ.png" /><figcaption>Australia with the Sentinel-2 L2A 120 m collection, using a custom RGB composite. Satellite Imagery © 2019 Copernicus.</figcaption></figure><p>Do you remember the<a href="https://medium.com/sentinel-hub/digital-twin-sandbox-sentinel-2-collection-available-to-everyone-20f3b5de846e"> Sentinel-2 L2A 120m</a>, which you can use to explore cloudless Sentinel-2 mosaic for the whole world? You can find it in the <a href="https://collections.sentinel-hub.com/">catalogue</a>, along with other public collections!</p><p>For each collection, there’s a dedicated page with useful information, examples and links. To use any collection on the registry, just click on the “details” link and copy the collectionId on the right (don’t forget to check the endpoint as well!), then enter it into your BYOC layer in the <a href="https://apps.sentinel-hub.com/dashboard/#/configurations">Configuration Utility</a> or into your <a href="https://docs.sentinel-hub.com/api/latest/api/process/">process API request</a>.</p><p>You can <a href="https://github.com/sentinel-hub/public-collections">contribute to the catalogue using git</a>, following the instructions we prepared for you. We invite you to check it out and publish your public collections <a href="https://github.com/sentinel-hub/public-collections">here</a>, so the catalogue grows and becomes ever more useful to developers, students, researchers and enthusiasts.</p><h3>Copernicus Services</h3><p>The <a href="https://www.copernicus.eu/en">Copernicus Programme</a> provides several <a href="https://www.copernicus.eu/en/copernicus-services">Copernicus services</a> for a variety of application areas. In partnership with the European Space Agency (part of our <a href="http://eurodatacube.com/">Euro Data Cube activity</a>) and <a href="https://creodias.eu/">CreoDIAS</a>, we have now started to pro-actively on-board these data. For the moment, Sentinel Hub supports 3 different Copernicus services, all freely available as public collections on our <a href="https://collections.sentinel-hub.com/">Public Collections Catalogue</a>, described above. These are <a href="https://collections.sentinel-hub.com/corine-land-cover/">Corine Land Cover (CLC</a>), <a href="https://collections.sentinel-hub.com/global-land-cover/">Global Land Cover (GLC)</a> and <a href="https://collections.sentinel-hub.com/water-bodies/">Water Bodies</a>, all of them with a 100 meter resolution.</p><p>They are integrated into <a href="https://apps.sentinel-hub.com/eo-browser/">EO Browser</a>, and can be accessed as <a href="https://docs.sentinel-hub.com/api/latest/api/byoc/">BYOC</a> layers using a public collection ID, that you can find on our <a href="https://collections.sentinel-hub.com/">Public Collections Repository</a>. Copernicus services data can then be used to create custom layers in the <a href="https://apps.sentinel-hub.com/dashboard/#/configurations">Configuration Utility</a> and in API requests, so that you can integrate them into your own applications.</p><p>For quality and validation information on the CLC see the document on <a href="https://www.eea.europa.eu/publications/COR0-part1/">data acquisition methodology</a> and the <em>Validation report</em> part of the CLC website <a href="https://land.copernicus.eu/user-corner/technical-library">here</a>. For Global Land Cover quality information check <a href="https://land.copernicus.eu/global/products/lc">this website</a> and for water bodies visit <a href="https://land.copernicus.eu/global/products/wb">this website</a>.</p><h4>Corine Land Cover</h4><p><a href="https://collections.sentinel-hub.com/corine-land-cover/">Corine Land Cover</a> is a vector based data collection with 44 unique classes of land use and land cover, each one with its own unique value. It’s available in most of Europe and updated every 6 years — the first available being 1990 and the most recent one in 2018. The classification is derived from a series of satellite missions. In the majority of European countries, the classification is produced by the interpretation of high-resolution satellite imagery, while in a few countries, semi-automatic solutions, including in-situ data, GIS integration and generalisation are included as well. CLC is commonly used for land use and land cover monitoring, analysis and change prediction for various applications, including agriculture, environment, transport and spatial planning.</p><p>The images of Zaragoza (Spain) below display A<em>rtificial Surfaces</em> (upper left), <em>Agricultural Areas</em> (upper right), <em>Forest and Seminatural Areas</em> (lower left) and <em>CLC </em>with all the classes combined (lower right).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aCIBuHaKwQtrQ0OGjGYu0A.png" /><figcaption>Inspect it in <a href="https://sentinelshare.page.link/6dPE">EO Browser</a>. EO Data © 2018 Copernicus</figcaption></figure><p>In the evalscript, it’s easy to classify the classes as needed. On the example of Berlin below, we grouped all the <em>Artificial Surface</em> classes (values 1–11) and colored them red, and all the <em>Forest and Seminatural Areas</em> (values 23–29) and colored them green. We returned other pixels white. This visualization gives us an understanding of the distribution of built-up areas in comparison to naturally vegetated ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZrfirUhUJ5r7Xzn_3jyufQ.png" /><figcaption>Inspect it in <a href="https://sentinelshare.page.link/Evsz">EO Browser</a>. EO Data © 2018 Copernicus</figcaption></figure><p>CLC can also be used in comparison with other collections, such as Sentinel-2. On the example below, we compare the <a href="https://custom-scripts.sentinel-hub.com/sentinel-2/ulyssys_water_quality_viewer/">Ulyssys Water Quality visualization</a> (which displays chlorophyll and sedimentation in water bodies) with the CLC water bodies layer to examine the health of Veneto lagoons (in green, value 42).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*IZUhc4JBUEv9TFSrYoFvZQ.png" /><figcaption>Copernicus Sentinel-2 and CLC, processed in Sentinel Hub. Explore both in EO Browser: <a href="https://sentinelshare.page.link/veMM">Ulyssys Water Quality visualization</a>, <a href="https://sentinelshare.page.link/Bfi3">lagoons</a>. EO Data © Copernicus</figcaption></figure><p>See more information and the information on all the classes <a href="https://collections.sentinel-hub.com/corine-land-cover/readme.html">here</a>. The classification and visualization of the <em>CLC</em> layer in EO Browser is made using this <a href="https://land.copernicus.eu/user-corner/technical-library/corine-land-cover-nomenclature-guidelines/docs/pdf/CLC2018_Nomenclature_illustrated_guide_20190510.pdf">nomenclature document</a>. The classification script can be found on our <a href="https://custom-scripts.sentinel-hub.com/copernicus_services/corine_land_cover/">Custom Script Repository</a>. The other 5 layers in EO Browser were obtained by integrating classes into a higher level classification based on the classification <a href="https://land.copernicus.eu/user-corner/technical-library/corine-land-cover-nomenclature-guidelines/html">here</a>.</p><h4>Global Land Cover</h4><p><a href="https://collections.sentinel-hub.com/global-land-cover/">Global Land Cover</a> is a classified product with land use and land cover classification developed based on the UN-FAO Land Cover Classification system <a href="https://land.copernicus.eu/global/products/lc">LCCS</a>. There are 23 land cover classes available for the Discrete Classification Map band. There are several other bands available, including the continuous fractional layers. The available bands, values, classes and colors used can be checked <a href="https://collections.sentinel-hub.com/global-land-cover/readme.html">here</a>. The collection is global, making it possible to aid policy decisions on various issues, including agriculture and food security, biodiversity, climate change, forest and water resources, land degradation &amp; desertification and rural development on a global level. Data is updated each year, available since 2015, with the most recent year 2019.</p><p>In <a href="https://sentinelshare.page.link/YYNC">EO Browser</a>, 2 classification layers are pre-prepared — the <em>Discrete Classification Map</em> layer, displaying all 23 land cover classes and the <em>Forest Type</em> layer with 6 classes, displaying different forest cover types. Both visualizations follow color coding specifications described in the <a href="https://land.copernicus.eu/global/sites/cgls.vito.be/files/products/CGLOPS1_PUM_LC100m-V3_I3.3.pdf">product manual</a>. The <em>Discrete Classification Map </em>script can be accessed on our <a href="https://custom-scripts.sentinel-hub.com/copernicus_services/global_land_cover/">Custom Script Repository</a>.</p><p>On the image below, you can see the <em>Discrete Classification Map</em> of Tanzania. Forest cover can be observed in green colors, with different forest types clearly visible. Agricultural areas can be observed in yellows and oranges, water areas in blues and built up areas in reds and pinks. Such classification is highly valuable for any country, as it takes huge effort to classify land cover, especially in underdeveloped areas of the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J6qDUwD1qJZrtt3aJx1NZA.png" /><figcaption>Inspect it in <a href="https://sentinelshare.page.link/YYNC">EO Browser</a>. EO Data © 2019 Copernicus</figcaption></figure><p>Fractional layers are available for several class types and are very interesting, as they provide the continuous probability that a certain area has a certain land cover. They give us the entire range of values from 0 to 100, and make it possible to visualize classes in RGB composites.</p><p>We have achieved the following visualization of urban areas in the US by simply dragging the <em>Change_confidence_laye</em>r (the layer indicating the changes from the previous year) into the red channel and the fractional built-up layer (<em>BuiltUp_CoverFraction_layer)</em> into both green and blue channels, to visualize urban areas in cyan. The background is black, because there was no change detected since the previous year in this area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0qoCNTWfmBPd1Y3jjX2sCQ.png" /><figcaption>Inspect it in <a href="https://sentinelshare.page.link/uPPf">EO Browser</a>. EO Data © 2019 Copernicus</figcaption></figure><p>In the example below, we examined the changes in forest cover between 2015 and 2019. To do so, we returned the tree cover fractional layer (<em>Tree_CoverFraction_layer</em>) in green and blue channels, coloring forests cyan. In the red channel, we returned the fractional layers of grasslands (<em>Grass_CoverFraction_layer</em>), agricultural areas (<em>Crops_CoverFraction_layer</em>) and built-up areas (<em>BuiltUp_CoverFraction_layer</em>). We combined them into a single category by addition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GArc70kAJj6jvhMb6kOgiw.png" /><figcaption>Changes in forest cover between <a href="https://sentinelshare.page.link/fRax">2015</a> and <a href="https://sentinelshare.page.link/5fXp">2019</a>. Follow the links to explore each in EO Browser. EO Data © 2015/2019 Copernicus</figcaption></figure><p>As we can see, the forest cover probability decreased in some areas, but also increased significantly in other areas since 2015. The increase is likely caused by the Chilean extensive <a href="https://www.pichimahuida.info/reforestation.html">reforestation project</a>, launched following devastating forest losses due to wildfires. Such information can give us invaluable insight into what is happening with our forests around the globe. This is just one example — imagine all the potential use-cases with this amazing collection!</p><h4>Water Bodies</h4><p>The <a href="https://collections.sentinel-hub.com/water-bodies/">Water Bodies</a> product contains 2 bands: the main <em>Water Body</em> Detection layer, which visualizes water bodies using a Modified Normalized Difference Index (MNDWI) from Sentinel-2 L1C, and the Quality layer, which provides information on the seasonal dynamics of detected water bodies. Quality layer is generated from the statistical computations from previous monthly products. The Quality layer’s water body occurrence ranks from very low occurrence to permanent. The collection is global and available since October 2020 with monthly updates. The product is used for monitoring changes in water bodies due to drought, floods, excess irrigation or climate change.</p><p>Check the values of each band <a href="https://collections.sentinel-hub.com/water-bodies/readme.html">here</a> and the visualizations for the 2 layers in EO Browser <a href="https://sentinelshare.page.link/AxaE">here</a>. The visualizations used in EO Browser can be found on our <a href="https://custom-scripts.sentinel-hub.com/#copernicus_services">Custom Script Repository</a>.</p><p>Using the <em>Water Bodies</em> layer in EO Browser, where detected water bodies are displayed in blue, we can observe density and distribution of water bodies on a global level. On the example below, we can observe water body distribution in Australia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*bLGsmxDcD2dWOK9Izt88AQ.png" /><figcaption>Explore it in<a href="https://sentinelshare.page.link/M8Zn"> EO Browser</a>. EO Data © 2021 Copernicus</figcaption></figure><p>Using the <em>Water Bodies Occurrence </em>layer, we can get an idea of where the water is always present and where it only appears occasionally. On the example below, we can see the occurrence differences of the Irravaddy river in Myanmar. The meandering river is prone to flooding and seasonal variations. The dark blue color indicates permanent occurrence, while violet indicates rare occurrence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*alvL5uXznpkeEpAH5AU19Q.png" /><figcaption>Explore it in <a href="https://sentinelshare.page.link/7waM">EO Browser</a>. EO Data © 2021 Copernicus</figcaption></figure><p>It’s wonderful that so many remote sensing collections are free to use for everyone! And with Sentinel Hub, integrating EO data into applications is as easy as ever. We’re hoping many real-world solutions will arise from these collections, helping us mitigate real global issues.</p><p>We’re looking forward to seeing your awesome contributions!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1d52159e7e0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sentinel-hub/there-is-never-enough-data-worldview-landsat-8-collection-2-and-more-f1d52159e7e0">There is Never Enough Data — WorldView, Landsat 8 Collection 2 and More</a> was originally published in <a href="https://medium.com/sentinel-hub">Planet Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Themes, Multi-temporal scripting and Other Improvements in EO Browser]]></title>
            <link>https://medium.com/sentinel-hub/new-themes-multi-temporal-scripting-and-other-improvements-in-eo-browser-725267d09f2f?source=rss-a4a3445c5bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/725267d09f2f</guid>
            <category><![CDATA[satellite-imagery]]></category>
            <category><![CDATA[eo-browser]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[sentinel-hub]]></category>
            <category><![CDATA[custom-script]]></category>
            <dc:creator><![CDATA[Monja Šebela]]></dc:creator>
            <pubDate>Thu, 12 Mar 2020 17:56:18 GMT</pubDate>
            <atom:updated>2020-04-24T10:39:18.996Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vkQw1MBQpLfZwHdgrwlHGQ.jpeg" /><figcaption>Glacier Grey, Chile, from the Snow and Glaciers theme. Image acquired on 08.05.2019. Modified <a href="https://custom-scripts.sentinel-hub.com/sentinel-2/tonemapped_natural_color/">Tonemapped Natural Color Script by Gregory Ivanov</a>, processed by Sentinel Hub. <a href="https://www.flickr.com/photos/sentinelhub/49621823051/in/dateposted/">🌐</a></figcaption></figure><h3>New Themes, Multi-Temporal Scripting and Other Improvements in EO Browser</h3><h4>New Education Mode, Multi-temporal scripting, Better control of time intervals and six other cool features at the end of your fingertips!</h4><h3>1. Education Mode</h3><p>A new <a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=41.9000&amp;lng=12.5000&amp;zoom=10">Education mode</a> was added to EO Browser. You can toggle between the <a href="https://apps.sentinel-hub.com/eo-browser/">Normal</a> and <a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=41.9000&amp;lng=12.5000&amp;zoom=10">Education mode</a> by clicking on the little graduation cap icon on the top right:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*0_VDZG5bwMLzreQ7jYb_Gg.png" /></figure><p>Education mode is a powerful tool for showcasing the usefulness of satellite data for various industries and phenomena, especially to students.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*0CttZfa-2F0hIXLiDIq6qg.png" /></figure><p>Currently, there are 12 themes, which you can see on the left.</p><p>When you select a theme, it’s best to first look at the prepared pins and see some areas of interest. After selecting one, you can test the available visualization layers. You can also search by the available datasets, as is the default in EO Browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hS3g0AaTEi7WqahD2jTh8Q.png" /><figcaption>Grasberg’s Open Pit, Indonesia; one of the Geology theme pins. <a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=-4.05377&amp;lng=137.09101&amp;zoom=14&amp;time=2018-05-14&amp;preset=3_GEOLOGY-12-8-2&amp;datasource=Sentinel-2%20L1C%20-%20geology">🌐</a></figcaption></figure><p>The best-fitting visualization layers were chosen for each theme and all have descriptions with references. Moreover, 157 unique pins were added. The pins were chosen to either showcase the diversity of the phenomena or the usefulness of the composites and custom scripts for detecting, for example, urban areas, burnt areas, chlorophyll content, vegetation health, etc.</p><p>Additionally, all the visualization layers, that return one value (such as indices) have statistical information service set up.</p><p>Atmospheric correction is done by default in Education mode; the L2A dataset is always on top and preselected for the Sentinel-2 satellite and all the pins, where it was available, use the L2A data.</p><p>Below we have selected a couple of example pins from different Education themes. To find out more about them, click on the links in the descriptions and visit <a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=41.9000&amp;lng=12.5000&amp;zoom=10">EO Browser Education</a>, where you can explore so much more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4YYEZLY6534a9SKB66Rzdw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VzaNukaQeTYBq1XtNhATKQ.jpeg" /><figcaption>Sermeq Kujalleq glacier in Greenland (<a href="https://custom-scripts.sentinel-hub.com/sentinel-2/tonemapped_natural_color/">Tonemapped Natural Color Script by Gregory Ivanov</a>), from the Snow and Glaciers theme (left <a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=69.164&amp;lng=-50.632&amp;zoom=9&amp;time=2019-10-29&amp;preset=3_TONEMAPPED-NATURAL-COLOR&amp;gainOverride=0.8&amp;datasource=Sentinel-2%20L2A%20-%20snow">🌐</a>). Agriculture in Saudi Arabia (<a href="https://custom-scripts.sentinel-hub.com/sentinel-2/ndmi/">moisture index</a>) from the Agriculture theme (right <a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=26.21913&amp;lng=43.49539&amp;zoom=13&amp;time=2019-01-29&amp;preset=99_MOISTURE-INDEX&amp;datasource=Sentinel-2%20L2A%20-%20agriculture">🌐</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3StY7A2t4XxMPAMfoLwBEg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWCAHZkMbrxezHViVfn5rw.jpeg" /><figcaption>Sundarbans vegetation in India (<a href="https://custom-scripts.sentinel-hub.com/sentinel-3/otci/">Sentinel-3 OTCI</a>) from the Vegetation and Forestry theme (left<a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=21.953&amp;lng=89.052&amp;zoom=9&amp;time=2020-01-27&amp;preset=3_OTCI&amp;datasource=Sentinel-3%20OLCI%20(forestry)">🌐</a>). Algae blooms of Donn river, Russia (<a href="https://custom-scripts.sentinel-hub.com/sentinel-2/ulyssys_water_quality_viewer/">Ulyssys script</a>) from the Ocean and Water Bodies theme (right<a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=47.9113&amp;lng=42.7739&amp;zoom=10&amp;time=2019-09-05&amp;preset=4_ULYSSYS-WATER-QUALITY-VIEWER&amp;datasource=Sentinel-2%20L2A%20-%20water">🌐</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EmvavDTRho9JqoeZLKmNVA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LuVOXDrO0S6E9Du_kUPyw.jpeg" /><figcaption>Richat structure, Mauritania from the Geology theme (left<a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=21.1476&amp;lng=-11.4478&amp;zoom=11&amp;time=2020-01-27&amp;preset=1_TRUE_COLOR&amp;datasource=Sentinel-2%20L2A%20-%20geology">🌐</a>). Baltimore city, USA (<a href="https://custom-scripts.sentinel-hub.com/sentinel-2/green_city/">Green City Script</a>) from the Urban theme (right<a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=39.2866&amp;lng=-76.6292&amp;zoom=12&amp;time=2019-09-08&amp;preset=4_GREEN-CITY&amp;datasource=Sentinel-2%20L2A%20-%20urban">🌐</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1S_3alABJQqP4HWzG7PYg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D3LVP5oIpZjr4odVDb1Ifg.jpeg" /><figcaption>The 2017 Croatia wildfires (<a href="https://custom-scripts.sentinel-hub.com/sentinel-2/markuse_fire/">Wildfires Script</a>) from the Wildfires theme (left<a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=43.4918&amp;lng=16.6190&amp;zoom=11&amp;time=2017-07-17&amp;preset=WILDFIRES-PIERRE-MARKUSE&amp;datasource=Sentinel-2%20L2A%20-%20wildfires%20-%20pins">🌐</a>). Etna volcano (IR Highlights script) from the Volcanoes theme (right<a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=37.74371&amp;lng=15.00406&amp;zoom=13&amp;time=2018-12-26&amp;preset=TRUE-COLOR-LAVA-FLOW&amp;datasource=Sentinel-2%20L2A%20-%20volcanoes">🌐</a>).</figcaption></figure><h3>2. Advanced Control of Time Intervals</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*lcxl-mr4ifCehMqRNRoA3w.png" /></figure><p>In EO Browser, you can now select Timespan on the right to bring up the advanced acquisition time editor, where you can manipulate the time range of data shown, beyond the default “daily” interval.</p><p>The new feature makes it possible to narrow down the results if we know the image we need was captured at a specific time range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*UrkJ-04ncjlLFg55oKG-Dg.png" /></figure><p>This is useful for the selection of specific data orbits when they overlap or when one would need to select either ascending or descending Sentinel-1 orbits, and for multitemporal processing (see next chapter).</p><p>In the image below (left) you can see two overlapping Sentinel-3 OLCI orbits on the same day. Let’s suppose we only want to keep the earlier acquisition orbit on the right. With the new tool, we can do so by setting the acquisition time from 00:00 to 10:30 AM (as is shown in the image above), which selects only the earlier orbit. Should we want the later acquisition orbit, we should set the acquisition time to be 10:30 to 23:59 instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*nJkbMZ2eIJSuGaOwb_8Zhg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*SiqO9DIWgLONzXrQwPIPQw.jpeg" /><figcaption>Two overlapping orbits covering Northern Africa (left <a href="https://tinyurl.com/ydery8r3">🌐</a>). Only one orbit covering Northern Africa selected using the new Advanced control of time intervals feature (right <a href="https://tinyurl.com/yayeypy9">🌐</a>). <a href="https://custom-scripts.sentinel-hub.com/sentinel-3/natural_colors_sigmoid/">Custom script by Jérôme Louis</a>.</figcaption></figure><h3>3. Multitemporal Scripting</h3><p>Multitemporal scripts now work in EO Browser!</p><p>To make it work, you should:</p><ul><li>Convert your script to <a href="https://docs.sentinel-hub.com/api/latest/#/Evalscript/V3/README">Version 3</a></li><li>Add <em>mosaicking: Mosaicking.ORBIT </em>to your function setup</li><li>Set up your time range in the new timespan feature (see <em>2. Advanced Control of Time Intervals</em>). Setting up time ranges is much easier and you don’t even need the <a href="https://docs.sentinel-hub.com/api/latest/#/Evalscript/V3/README?id=filterscenes-function-optional"><strong>filterScenes</strong></a> function in most cases.</li></ul><p>To convert your multitemporal script, which already works in Playground, to Version 3, you need to add <em>//VERSION=3</em> at the top and edit the <strong>f</strong><a href="https://docs.sentinel-hub.com/api/latest/#/Evalscript/V3/README?id=filterscenes-function-optional"><strong>unction setup()</strong></a>, which is structured a bit differently than you might be used to:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e40d53122b90d3b2b5e77639f14aeb25/href">https://medium.com/media/e40d53122b90d3b2b5e77639f14aeb25/href</a></iframe><p>The following is a complete example of the <a href="https://custom-scripts.sentinel-hub.com/sentinel-2/agriculture_growth_stage/">Harel Dan’s multitemporal NDVI script</a> applied to the agricultural fields of Saudi Arabia, which are also one of the Agriculture theme pins.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d04d3297d4fe014e0667ff2b3f1a0137/href">https://medium.com/media/d04d3297d4fe014e0667ff2b3f1a0137/href</a></iframe><p>A timespan was set up from the beginning of April to the end of June 2019:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*ihcR7L5ozzm0Nk8q7BmxJQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ok_Zygvyf_nu-jaTEcQAcA.jpeg" /><figcaption>Agriculture in Saudi Arabia with Harel Dan’s multitemporal NDVI script, processed by Sentinel Hub. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=26.30403&amp;lng=43.49968&amp;zoom=13&amp;time=2019-01-01T23:59:00Z/2019-06-30T23:59:00Z&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L2A%20-%20agriculture&amp;layers=B01,B02,B03&amp;evalscript=Ly9WRVJTSU9OPTMKZnVuY3Rpb24gc2V0dXAgKCkgewoJcmV0dXJuewoJCWlucHV0OlsiQjA0IiwgIkIwOCJdLAoJCW1vc2FpY2tpbmc6IE1vc2FpY2tpbmcuT1JCSVQsCgkJb3V0cHV0OntiYW5kczogM30KCX0JCQp9CgpmdW5jdGlvbiBjYWxjTkRWSShzYW1wbGUpIHsKICB2YXIgZGVub20gPSBzYW1wbGUuQjA0K3NhbXBsZS5CMDg7CiAgcmV0dXJuICgoZGVub20hPTApID8gKHNhbXBsZS5CMDgtc2FtcGxlLkIwNCkgLyBkZW5vbSA6IDAuMCk7Cn0KZnVuY3Rpb24gIHN0cmV0Y2godmFsLCBtaW4sIG1heCkgIHsKIHJldHVybiAodmFsLW1pbikvKG1heC1taW4pOwp9CgpmdW5jdGlvbiBldmFsdWF0ZVBpeGVsKHNhbXBsZXMsc2NlbmVzKSB7ICAKICB2YXIgYXZnMSA9IDA7CiAgdmFyIGNvdW50MSA9IDA7CiAgdmFyIGF2ZzIgPSAwOwogIHZhciBjb3VudDIgPSAwOwogIHZhciBhdmczID0gMDsKICB2YXIgY291bnQzID0gMDsKICB2YXIgZW5kTW9udGggPSBzY2VuZXNbMF0uZGF0ZS5nZXRNb250aCgpOwogIAogIGZvciAodmFyIGk9MDtpPHNhbXBsZXMubGVuZ3RoO2krKykgewogICAgICB2YXIgbmR2aSA9IGNhbGNORFZJKHNhbXBsZXNbaV0pOwogICAgICBpZiAoc2NlbmVzW2ldLmRhdGUuZ2V0TW9udGgoKT09ZW5kTW9udGgpCiAgICAgIHsKCQlhdmczID0gYXZnMyArIG5kdmk7CiAgICAgICAgY291bnQzKys7CiAgICAgIH0KICAgICAgZWxzZSBpZiAoc2NlbmVzW2ldLmRhdGUuZ2V0TW9udGgoKT09KGVuZE1vbnRoLTEpKQogICAgICB7CgkJYXZnMiA9IGF2ZzIgKyBuZHZpOwogICAgICAgIGNvdW50MisrOwogICAgICB9CiAgICAgIGVsc2UKICAgICAgeyAgICAgIAoJCWF2ZzE9IGF2ZzEgKyBuZHZpOwogICAgICAgIGNvdW50MSsrOwogICAgICB9CiAgICAgIAogIH0KICBhdmcxID0gYXZnMS9jb3VudDE7CiAgYXZnMiA9IGF2ZzIvY291bnQyOwogIGF2ZzMgPSBhdmczL2NvdW50MzsKICBhdmcxID0gc3RyZXRjaChhdmcxLCAwLjEsIDAuNyk7CiAgYXZnMiA9IHN0cmV0Y2goYXZnMiwgMC4xLCAwLjcpOwogIGF2ZzMgPSBzdHJldGNoKGF2ZzMsIDAuMSwgMC43KTsKICAKICByZXR1cm4gW2F2ZzEsYXZnMixhdmczXTsKCgp9CmZ1bmN0aW9uIGZpbHRlclNjZW5lcyAoc2NlbmVzLCBpbnB1dE1ldGFkYXRhKSB7CiAgICByZXR1cm4gc2NlbmVzLmZpbHRlcihmdW5jdGlvbiAoc2NlbmUpIHsKCSAgcmV0dXJuIHNjZW5lLmRhdGUuZ2V0VGltZSgpPj0oaW5wdXRNZXRhZGF0YS50by5nZXRUaW1lKCktMyozMSoyNCozNjAwKjEwMDApIDsKICAgIH0pOwp9">🌐</a></figcaption></figure><p>The script calculates the average NDVI values for each of the three months and then applies them to the RGB channels. Red fields in the image above had high NDVI values in the first month (April) and low NDVI values in the other two. Pink fields had high NDVI values in the first (the red channel) as well as the third (blue channel) month. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=26.30403&amp;lng=43.49968&amp;zoom=13&amp;time=2019-01-01T23:59:00Z/2019-06-30T23:59:00Z&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L2A%20-%20agriculture&amp;layers=B01,B02,B03&amp;evalscript=Ly9WRVJTSU9OPTMKZnVuY3Rpb24gc2V0dXAgKCkgewoJcmV0dXJuewoJCWlucHV0OlsiQjA0IiwgIkIwOCJdLAoJCW1vc2FpY2tpbmc6IE1vc2FpY2tpbmcuT1JCSVQsCgkJb3V0cHV0OntiYW5kczogM30KCX0JCQp9CgpmdW5jdGlvbiBjYWxjTkRWSShzYW1wbGUpIHsKICB2YXIgZGVub20gPSBzYW1wbGUuQjA0K3NhbXBsZS5CMDg7CiAgcmV0dXJuICgoZGVub20hPTApID8gKHNhbXBsZS5CMDgtc2FtcGxlLkIwNCkgLyBkZW5vbSA6IDAuMCk7Cn0KZnVuY3Rpb24gIHN0cmV0Y2godmFsLCBtaW4sIG1heCkgIHsKIHJldHVybiAodmFsLW1pbikvKG1heC1taW4pOwp9CgpmdW5jdGlvbiBldmFsdWF0ZVBpeGVsKHNhbXBsZXMsc2NlbmVzKSB7ICAKICB2YXIgYXZnMSA9IDA7CiAgdmFyIGNvdW50MSA9IDA7CiAgdmFyIGF2ZzIgPSAwOwogIHZhciBjb3VudDIgPSAwOwogIHZhciBhdmczID0gMDsKICB2YXIgY291bnQzID0gMDsKICB2YXIgZW5kTW9udGggPSBzY2VuZXNbMF0uZGF0ZS5nZXRNb250aCgpOwogIAogIGZvciAodmFyIGk9MDtpPHNhbXBsZXMubGVuZ3RoO2krKykgewogICAgICB2YXIgbmR2aSA9IGNhbGNORFZJKHNhbXBsZXNbaV0pOwogICAgICBpZiAoc2NlbmVzW2ldLmRhdGUuZ2V0TW9udGgoKT09ZW5kTW9udGgpCiAgICAgIHsKCQlhdmczID0gYXZnMyArIG5kdmk7CiAgICAgICAgY291bnQzKys7CiAgICAgIH0KICAgICAgZWxzZSBpZiAoc2NlbmVzW2ldLmRhdGUuZ2V0TW9udGgoKT09KGVuZE1vbnRoLTEpKQogICAgICB7CgkJYXZnMiA9IGF2ZzIgKyBuZHZpOwogICAgICAgIGNvdW50MisrOwogICAgICB9CiAgICAgIGVsc2UKICAgICAgeyAgICAgIAoJCWF2ZzE9IGF2ZzEgKyBuZHZpOwogICAgICAgIGNvdW50MSsrOwogICAgICB9CiAgICAgIAogIH0KICBhdmcxID0gYXZnMS9jb3VudDE7CiAgYXZnMiA9IGF2ZzIvY291bnQyOwogIGF2ZzMgPSBhdmczL2NvdW50MzsKICBhdmcxID0gc3RyZXRjaChhdmcxLCAwLjEsIDAuNyk7CiAgYXZnMiA9IHN0cmV0Y2goYXZnMiwgMC4xLCAwLjcpOwogIGF2ZzMgPSBzdHJldGNoKGF2ZzMsIDAuMSwgMC43KTsKICAKICByZXR1cm4gW2F2ZzEsYXZnMixhdmczXTsKCgp9CmZ1bmN0aW9uIGZpbHRlclNjZW5lcyAoc2NlbmVzLCBpbnB1dE1ldGFkYXRhKSB7CiAgICByZXR1cm4gc2NlbmVzLmZpbHRlcihmdW5jdGlvbiAoc2NlbmUpIHsKCSAgcmV0dXJuIHNjZW5lLmRhdGUuZ2V0VGltZSgpPj0oaW5wdXRNZXRhZGF0YS50by5nZXRUaW1lKCktMyozMSoyNCozNjAwKjEwMDApIDsKICAgIH0pOwp9">Check it out in EO Browser</a>.</p><p>Note that processing large amounts of data takes longer so you will need to wait a bit for the results.</p><h3>4. Better Timelapse Filters</h3><p>When creating a timelapse, you now have a much finer data search control. Aside from previously available cloud coverage and monthly selection filtering, you can also select whether you want orbit, daily, weekly, monthly or yearly data. This way, you can for example only return one image per month for the last couple of years, or one result per week for the last 2 months. As EO Browser timelapse search only allows for 300 results, this control makes it possible to create time-lapses over longer time intervals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*bKa5dFWnwpOp_TSNMhuV-g.png" /></figure><p>In the timelapse below we can observe weekly changes of CO concentrations above Ghana, Togo, and Benin from April 2018 to March 2020. We can see that the concentrations rise in the winter months of 2018 and 2019. This is due to wood and coal burning for heat. As we have selected one result per week, we were able to get weekly results further back in time and confirm that CO concentrations rose consistently in winter of both 2018 and 2019.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*TpqwlxeG-7ycuWV28M_ElA.gif" /><figcaption>Weekly carbon monoxide emissions over Togo, Benin, and Ghana from April 2019 to March 2020 with Sentinel-5P. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=8.527&amp;lng=-0.857&amp;zoom=7&amp;time=2020-03-05&amp;preset=CO_VISUALIZED&amp;datasource=Sentinel-5P%20CO">🌐</a></figcaption></figure><p>To make use of the new feature even more, we could only select the November-February months and observe the increasing and decreasing of CO concentrations on a daily basis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*FszoCTkgoUTt0CnfOBItoA.gif" /><figcaption>Daily carbon monoxide emissions over Togo, Benin and Ghana in November to February months of both 2018 and 2019/2020 with Sentinel-5P. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=8.527&amp;lng=-0.857&amp;zoom=7&amp;time=2020-03-05&amp;preset=CO_VISUALIZED&amp;datasource=Sentinel-5P%20CO">🌐</a></figcaption></figure><h3>5. Borders in Timelapse</h3><p>When creating time-lapses, you can now enable the borders checkbox and country borders will be displayed. This is useful as with some datasets, such as Sentinel-5P, it can be difficult to know which area you are looking at.</p><p>On the timelapse below, you can observe the vegetation changes during the 2018 drought in Luxembourg (with the <a href="https://custom-scripts.sentinel-hub.com/sentinel-2/barren_soil/">Barren soil script</a>). The red patches of land indicate barren soil and green indicates vegetation. In August, you can observe the sudden disappearance of vegetation from lush green to barren red. This is due to drought, as vegetation should be at its peak in August. In September, as the drought ends, you see the greening of the vegetation again.</p><p>Thanks to the new borders feature, you can see the outline of Luxembourg and its regions, making it clearer which area we are looking at.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*SlRfaW_xlie8dXg-yjilUA.gif" /><figcaption>Luxembourg vegetation changes with the Barren soil script from April to September 2018, displaying the drought in August. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=49.8158&amp;lng=6.2608&amp;zoom=10&amp;time=2018-08-16&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=Ly9CYXJyZW4gU29pbCAKLy9odHRwczovL2N1c3RvbS1zY3JpcHRzLnNlbnRpbmVsLWh1Yi5jb20vc2VudGluZWwtMi9iYXJyZW5fc29pbC8KCgpmdW5jdGlvbiBldmFsdWF0ZVBpeGVsKHMpIHsKICAgIGxldCB2YWwgPSAyLjUgKiAoKHNbMF0uQjExICsgc1swXS5CMDQpLShzWzBdLkIwOCArIHNbMF0uQjAyKSkvKChzWzBdLkIxMSArIHNbMF0uQjA0KSsoc1swXS5CMDggKyBzWzBdLkIwMikpOwogICAgaWYgKHNbMF0uQjA4PjAuNil7CiAgICAgIHJldHVyblsxLDEsMV07CiAgICB9CiAgICBlbHNlIHsKICAJcmV0dXJuIFsyLjUqIHZhbCwgc1swXS5CMDgsIHNbMF0uQjExXTsKICB9Cn0KZnVuY3Rpb24gc2V0dXAoZHMpIHsKICAgc2V0SW5wdXRDb21wb25lbnRzKFtkcy5CMDIsIGRzLkIwNCwgZHMuQjA4LCBkcy5CMTEsIGRzLkIxMl0pOwogICBzZXRPdXRwdXRDb21wb25lbnRDb3VudCgzKTsgfQ%3D%3D">🌐</a></figcaption></figure><h3>6. Statistical Analysis for More Datasets</h3><p>Sentinel Hub now supports <a href="https://www.sentinel-hub.com/develop/documentation/api/fis-request">statistical info service</a> for Sentinel-3, Sentinel-5P, and Landsat. In EO Browser, statistical info service is already set up for you to use on Sentinel-3 OLCI OTCI, Sentinel-5P data products, and Landsat NDVI and Thermal layers.</p><p>You can also set up statistical info service for your own layers in the Sentinel Hub Configurator by creating a new layer called <strong>__FIS_ID</strong>, where ID is the same as your layer ID. Your statistical info service layer should also only return one value. For example, if your NDVI layer ID is <strong>NDVI-1</strong>, your statistical info service layer should have both ID and name called <strong>__FIS_NDVI-1</strong>, returning the <a href="https://www.sentinel-hub.com/faq/how-do-i-get-actual-ndvi-values">NDVI values</a> instead of the usual colored visualization in the evalscript (i.e. <strong>return[ndvi]</strong>). If you set it up correctly, you will be able to use the statistical information on your layer, displayed in EO Browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u-TNavpBfeCyNlcAOyGZEQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YrGwJB1vcy7nXiCXru7Zyg.jpeg" /><figcaption>Landsat 8 NDVI values in march (left<a href="https://apps.sentinel-hub.com/eo-browser/?lat=45.65989&amp;lng=12.99545&amp;zoom=13&amp;time=2020-03-08&amp;preset=4-NDVI&amp;datasource=Landsat%208%20USGS">🌐</a>) and august (right<a href="https://apps.sentinel-hub.com/eo-browser/?lat=45.65989&amp;lng=12.99545&amp;zoom=13&amp;time=2019-08-20&amp;preset=4-NDVI&amp;datasource=Landsat%208%20USGS">🌐</a>), Italy. Processed by Sentinel Hub.</figcaption></figure><p>In the images above you can see Landsat 8 NDVI for March 2020 (left) and August 2019 (right). A point pin, as shown in the images, was chosen for the statistical information below. As is clear from the images, seasonal vegetation changes between March and August are significant, which can be confirmed by inspecting the following statistical info service results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*tKQTobdjpv3VRdT7LrZNEQ.png" /><figcaption>Statistical information displaying Landsat 8 NDVI changes over the year for the chosen point.</figcaption></figure><h3>7. Layer Descriptions Set Up</h3><p>Layer descriptions with references have been set up for most layers in EO Browser, including all default Sentinel-2 layers. In time, we plan to add the descriptions to all the available EO Browser layers. In Education mode, descriptions are already set up for all layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*CNsYI1M8N0PU4TNR5ImzAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*s44KidWtkXuN5GrudxXWuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*VfkZZosvAJVELsIuwpPbyg.png" /><figcaption>Descriptions, legends, and references for the <a href="https://apps.sentinel-hub.com/eo-browser/?lat=43.1115&amp;lng=11.9387&amp;zoom=11&amp;time=2020-03-09&amp;preset=3_NDVI&amp;datasource=Sentinel-2%20L1C">NDVI</a>, <a href="https://apps.sentinel-hub.com/eo-browser/?lat=43.1115&amp;lng=11.9387&amp;zoom=11&amp;time=2020-03-09&amp;preset=5-MOISTURE-INDEX1&amp;datasource=Sentinel-2%20L1C">Moisture Index </a>and <a href="https://apps.sentinel-hub.com/eo-browser/?lat=41.9000&amp;lng=12.5000&amp;zoom=10&amp;time=2020-03-10&amp;preset=2_OTCI&amp;datasource=Sentinel-3%20OLCI">S3 OTCI</a> layers in EO Browser.</figcaption></figure><h3>8. Sentinel-3 SLSTR Band Info Added</h3><p>As with the other datasets, Sentinel-3 SLSTR custom bands now display information on mouse hover, to make it easier to select the most suitable ones for your composites. They are separated into two groups, Reflectance, and Brightness temperature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*xHv5cF_RrC8jQi7Uaeccog.png" /><figcaption>Sentinel-3 SLSTR custom Reflectance bands. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=41.9000&amp;lng=12.5000&amp;zoom=10&amp;time=2020-03-10&amp;preset=CUSTOM&amp;datasource=Sentinel-3%20SLSTR&amp;layers=S1,S2,S3&amp;evalscript=cmV0dXJuIFtTMSoyLjUsUzIqMi41LFMzKjIuNV07">🌐</a></figcaption></figure><h3>9. MODIS Visualizations Added</h3><p>If you need global daily coverage, MODIS, with a resolution of either 250, 500 or 1000 m, is free to use in EO Browser. The data is available since February 2000, so you can examine data 20 years to the past. We have expanded the visualizations, so now there are 5 of them: true color, false color, NDVI, Normalized Difference Salinity index, and the NDWI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUF28gS1vIODktdHPdGhQQ.png" /><figcaption>MODIS NDWI of the Sundarbans area, India. Image acquired on 26.2.2020, processed by Sentinel Hub. <a href="https://apps.sentinel-hub.com/eo-browser-education/?lat=21.780&amp;lng=89.835&amp;zoom=7&amp;time=2020-02-26&amp;preset=NDWI&amp;datasource=MODIS">🌐</a></figcaption></figure><h3>10. More…</h3><p>Do you like what you are reading and want more? Stay tuned, we are working on some cool new stuff. Subscribe to our <a href="https://sentinel-hub.com/develop/documentation/faq#t23n555">newsletter </a>and follow our <a href="https://twitter.com/sentinel_hub?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor">Twitter </a>account, so you don’t miss any awesome features.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=725267d09f2f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sentinel-hub/new-themes-multi-temporal-scripting-and-other-improvements-in-eo-browser-725267d09f2f">New Themes, Multi-temporal scripting and Other Improvements in EO Browser</a> was originally published in <a href="https://medium.com/sentinel-hub">Planet Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom scripts: faster, cheaper, better!]]></title>
            <link>https://medium.com/sentinel-hub/custom-scripts-faster-cheaper-better-83f73894658a?source=rss-a4a3445c5bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/83f73894658a</guid>
            <category><![CDATA[sentinel-hub]]></category>
            <category><![CDATA[custom-script]]></category>
            <category><![CDATA[satellite-imagery]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Monja Šebela]]></dc:creator>
            <pubDate>Mon, 18 Nov 2019 20:39:37 GMT</pubDate>
            <atom:updated>2021-06-15T11:23:09.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TkJF9Ul03jpLyZfPfIZlUA.png" /><figcaption>Multitemporal visualization of the 3-month NDWI averages (June — August) of 2019, Italy. Processed by Sentinel Hub. <a href="https://tinyurl.com/y4c3w9zq">🌐</a></figcaption></figure><h4>15 tips for better scripts and more responsive requests</h4><p>Do you use the <a href="https://www.sentinel-hub.com/develop/documentation/api">Sentinel Hub API</a>? Do you want to improve your evalscripts while saving processing time and cost?</p><p>With advanced custom scripts, it’s important to write clear and efficient code. When every second of processing counts, every line of code matters. This blog post will give you some tips on how to write efficient evalscripts (custom scripts). It will also provide insights into possible uses of evalscripts which are not necessarily obvious at first glance.</p><p>When it comes to optimization, while making a single OGC/API request, the performance differences are often negligible. In some cases, however, they are not, and with even a single request the difference in responsiveness can be easily visible. Of course, when making thousands of requests and/or very large requests, even small differences add up.</p><p>At Sentinel Hub, we are constantly striving to shorten processing time while increasing flexibility. We want to share the best tips from our expert team with you, which will hopefully help you write faster scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wQcInvdMpEoJe0dWLO2_Ww.jpeg" /><figcaption>Enhanced false color visualization of different cloud types above the Indian ocean. Acquired on 18.6.2019, processed by Sentinel Hub.<a href="https://apps.sentinel-hub.com/eo-browser/?lat=35.0313&amp;lng=20.6682&amp;zoom=10&amp;time=2019-06-18&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=cmV0dXJuIFtCMTEqMy41LEIwOCoyLjUsQjAyKjIuNV07">🌐</a></figcaption></figure><h3>Tip 1: Avoid map! Use FOR loops</h3><p>This one is big because it can significantly speed up even a single request.</p><p>Use <em>for</em> loops instead of the javascript functions <em>.map</em>, <em>.reduce</em>, <em>.filter</em>,<em> .find</em> in <em>evaluatePixel</em>. Your app may be noticeably slower if using these functions. While they may be convenient, they are not fast. And for very simple map functions even a <em>for </em>loop may be redundant, as it may be possible to compute the values explicitly for each component.</p><p>Additionally, avoid <em>foreach, </em>as <em>for</em> loops are still faster.</p><p>The performance hit can be significant!</p><p><strong>Avoid:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/13b04fe47e6ebd3310791328552642f0/href">https://medium.com/media/13b04fe47e6ebd3310791328552642f0/href</a></iframe><p><strong>Do:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/80d93f728ad0c62a8fb28d3d41682af5/href">https://medium.com/media/80d93f728ad0c62a8fb28d3d41682af5/href</a></iframe><p><strong>Or in this most simple case even:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52db0f60f557c4e49aa6b04c2d5e5b32/href">https://medium.com/media/52db0f60f557c4e49aa6b04c2d5e5b32/href</a></iframe><h3>Tip 2: Request what you need</h3><p>Avoid requesting a larger area than you actually need. Similarly, inputting a longer time range than necessary for temporal requests will take more time to process and use more <a href="https://docs.sentinel-hub.com/api/latest/#/API/processing_unit">processing units</a>. Temporal requests can easily get out of hand as there is a LOT of data available. If unsure and if possible, consider testing with minimal bands and minimal scenes on a minimal area before launching the juggernaut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3CW7dluT94c5RoQucr34Dw.png" /><figcaption>Enhanced false color visualization of salt aggregations (blue) of the Aral sea. Acquired on 21. 7. 2019, processed by Sentinel Hub. <a href="https://apps.sentinel-hub.com/eo-browser/?zoom=10&amp;lat=45.2415&amp;lng=59.1736&amp;themeId=DEFAULT-THEME&amp;datasetId=S2L2A&amp;fromTime=2019-07-21T00%3A00%3A00.000Z&amp;toTime=2019-07-21T23%3A59%3A59.999Z&amp;visualizationUrl=https%3A%2F%2Fservices.sentinel-hub.com%2Fogc%2Fwms%2Fbd86bcc0-f318-402b-a145-015f85b9427e&amp;evalscript=LyoKLy9WRVJTSU9OPTMKQkFSUkVOIFNPSUxTCiovCmxldCB2YWwgPSAyLjUgKiAoKEIxMSArIEIwNCktKEIwOCArIEIwMikpLygoQjExICsgQjA0KSsoQjA4ICsgQjAyKSk7CnJldHVybiBbMi41KiB2YWwsIEIwOCwgQjA0XTsK#custom-script">🌐</a></figcaption></figure><h3>Tip 3: Delete code that isn’t used</h3><p>No need to define variables or functions that are not used in the final computation. If you do not wish to delete this code because you are testing, for example, consider commenting it out instead.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c8e6b6dce7d239499ec3a75674bc7b40/href">https://medium.com/media/c8e6b6dce7d239499ec3a75674bc7b40/href</a></iframe><h3>Tip 4: Calculate as needed</h3><p>If the output depends on a number of factors, calculate your indices/functions after you evaluate the conditions and not before. This makes the evalscript faster since computations are done only when needed. For example, instead of calculating both the NDVI and LAI for each pixel and then using one, compute these values only when you know which one is required.</p><p><strong>Avoid</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e46dd73dcc2a8271f6de0792fd5f7a64/href">https://medium.com/media/e46dd73dcc2a8271f6de0792fd5f7a64/href</a></iframe><p><strong>Do</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d945dd95cfc8afea14dd8369371f686d/href">https://medium.com/media/d945dd95cfc8afea14dd8369371f686d/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9k8kOLIrMf8195AXPX1Fw.png" /><figcaption>Enhanced true color visualization of the Rakaia river outflow in New Zealand. Acquired on 28.2.2019, processed by Sentinel Hub. <a href="https://apps.sentinel-hub.com/eo-browser/?zoom=11&amp;lat=-43.9093&amp;lng=172.0747&amp;themeId=DEFAULT-THEME&amp;datasetId=S2L1C&amp;fromTime=2019-02-28T00%3A00%3A00.000Z&amp;toTime=2019-02-28T23%3A59%3A59.999Z&amp;layerId=1_TRUE_COLOR&amp;visualizationUrl=https%3A%2F%2Fservices.sentinel-hub.com%2Fogc%2Fwms%2F42924c6c-257a-4d04-9b8e-36387513a99c&amp;gain=2.1&amp;gamma=1.7">🌐</a></figcaption></figure><h3>Tip 5: Avoid excess input bands</h3><p>It is bad practice to specify more input bands than requested in the output. The script will work, but slower, as the system needs to load more data than it needs. It’s also the bands defined in the <em>setup, </em>that determine the number of processing units used.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8b6fec21018b200b25fd77eaf938d77/href">https://medium.com/media/f8b6fec21018b200b25fd77eaf938d77/href</a></iframe><h3>Tip 6: Avoid unnecessary output formats</h3><p>In some cases, an output image is not actually necessary. If you find yourself in such a situation (for example if you need some kind of metadata only), set the number of output bands to zero so you don’t need to deal with an image.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/183d0dad269d0a7d90e122119198f9a4/href">https://medium.com/media/183d0dad269d0a7d90e122119198f9a4/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05iCyI-lH6uKZROXkoTDHA.jpeg" /><figcaption>False color visualization of the landscape east of the Khatanga Gulf, Russia. Acquired on 13.6.2018, processed by Sentinel Hub. <a href="https://apps.sentinel-hub.com/eo-browser/?zoom=10&amp;lat=73.0574&amp;lng=119.8518&amp;themeId=DEFAULT-THEME&amp;datasetId=S2L1C&amp;fromTime=2018-06-13T00%3A00%3A00.000Z&amp;toTime=2018-06-13T23%3A59%3A59.999Z&amp;visualizationUrl=https%3A%2F%2Fservices.sentinel-hub.com%2Fogc%2Fwms%2F42924c6c-257a-4d04-9b8e-36387513a99c&amp;evalscript=Ly9WRVJTSU9OPTMKcmV0dXJuIFtCMTEgKiAyLjUsIEIwOCAqIDIuNSwgQjAyICogMi41XTs%3D#custom-script">🌐</a></figcaption></figure><h3>Tip 7: Output smaller formats</h3><p>If you don’t need a large output format, such as float32, consider using UINT16, or even smaller, UINT8, instead. More about output formats <a href="https://docs.sentinel-hub.com/api/latest/#/Evalscript/V3/README?id=sampletype">here</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18417a0c3304010c44d29c561678ce80/href">https://medium.com/media/18417a0c3304010c44d29c561678ce80/href</a></iframe><h3>Tip 8: Use digital numbers if possible</h3><p>For Sentinel-2, digital numbers are divided by 10,000 to get reflectance. If you want to calculate normalized difference indices for optical bands, such as the NDVI, scaling is relevant. In such cases, it makes sense to use <a href="https://www.encyclopedia.com/science/dictionaries-thesauruses-pictures-and-press-releases/digital-number">digital numbers</a> (DN) as units. Doing so will be very slightly faster since reflectance conversion will be avoided. More on the setup function <a href="https://docs.sentinel-hub.com/api/latest/#/Evalscript/V3/README?id=setup-function">here</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18417a0c3304010c44d29c561678ce80/href">https://medium.com/media/18417a0c3304010c44d29c561678ce80/href</a></iframe><p>Additionally, requesting UINT16 data of Sentinel-2 digital numbers carries the same information as FLOAT32 data, while costing fewer processing units and requiring less bandwidth (thus faster).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ewWUMk6VFIrjceVRa8ROw.png" /><figcaption>Enhanced false color visualization of the Kilauea volcano, Hawaii. Custom script by Pierre Markuse. Processed by Sentinel Hub. <a href="https://www.flickr.com/photos/sentinelhub/50305512002/in/album-72157715841836977/">🌐</a></figcaption></figure><h3>Tip 9: Use global variables</h3><p>You may set global variables in the evalscript which you can access/modify in <a href="https://test-www.sentinel-hub.com/develop/custom-processing-scripts/get-started">evaluatePixel</a> (or any other function). This is useful for basic statistics computation, for example. There is no performance hit or benefit in doing so, we would simply like to mention that it’s possible.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/359f07776fa542de0bfb52f3caf78b1e/href">https://medium.com/media/359f07776fa542de0bfb52f3caf78b1e/href</a></iframe><h3>Tip 10: Use visualizers</h3><p><a href="https://docs.sentinel-hub.com/api/latest/#/Evalscript/functions?id=visualizers">Visualizers</a> are convenient classes you can use to control visualization within your scripts. There are multiple types available. As they are optimized, they should work faster than the custom function (how much we can’t say as it depends on the function).</p><p>You can use visualizers with two different functions:</p><ul><li><em>viz.process(value) i</em>s used when only working with one value/band</li><li><em>viz.processList(valueArray) </em>is used when working with multiple values/bands. (The availability of this depends on the visualizer)</li></ul><p>For example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf23ba8ad217f7a8b81e0e91803df049/href">https://medium.com/media/bf23ba8ad217f7a8b81e0e91803df049/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhscV0m00hfUsbalUI4ITA.jpeg" /><figcaption>NDVI visualization of Gunbower and Torrumbary, Australia. Acquired on 10.7.2019, processed by Sentinel Hub. <a href="https://apps.sentinel-hub.com/sentinel-playground/?source=S2&amp;lat=-35.96487755617473&amp;lng=144.47733879089355&amp;zoom=13&amp;preset=5_VEGETATION_INDEX&amp;layers=B01,B02,B03&amp;maxcc=20&amp;gain=1.0&amp;gamma=1.0&amp;time=2019-01-01%7C2019-07-10&amp;atmFilter=&amp;showDates=false">🌐</a></figcaption></figure><h3>Tip 11: Use predefined products</h3><p>Many visualizations are already available as predefined products in the <a href="https://www.sentinel-hub.com/develop/capabilities/configuration_utility">Sentinel Hub layer configurator</a>. We make improvements to these as needed, and in some cases using a predefined product will be faster than its corresponding evalscript version. This is because we can further optimize processing for often used fixed products. Check the configurator, it is possible that the visualization you are interested in is already there.</p><p><em>Note, that you should select the “set product” option instead of “copy to script editor”, to get all the latest updates.</em></p><h3>Tip 12: Use a single request for multiple visualizations</h3><p>Let’s suppose you are interested in the false color and NDVI visualizations of an area. For the false color, the corresponding Sentinel-2 bands are B08, B04, and B03. For the NDVI, you need bands B08 and B04. If you request the visualizations separately, you use two requests, both of which get the B08 and B04 bands. Instead, you can return both at once by specifying the outputs for both in a single request.</p><p>To do so, first, in the <em>output </em>object in <em>setup</em>, specify both outputs by giving them IDs, the number of output bands and a sample type. Next, under <em>evaluatePixel</em>, return both outputs pointing to their corresponding IDs set above. A full request for the NDVI can be found <a href="https://docs.sentinel-hub.com/api/latest/#/data/Examples_for_S2L1C?id=ndvi-image-and-value-multi-part-response-png-and-geotiff">here</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/935f3620040326307bc78202764278a2/href">https://medium.com/media/935f3620040326307bc78202764278a2/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_49m-sJe-HnxhX-Fdd7YQ.jpeg" /><figcaption>False color visualization of the northern Canada coast. Acquired on 25.6.2016, processed by Sentinel Hub. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=67.8538&amp;lng=-100.6070&amp;zoom=11&amp;time=2016-06-25&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=cmV0dXJuIFtCMDcqNC41LEIwNCo0LjUsQjAxKjRdOw%3D%3D">🌐</a></figcaption></figure><h3>Tip 13: Use data masks</h3><p>Evalscripts run for each pixel, no matter the underlying data. Valid or invalid, the pixel will be processed. If your evalscript is computationally expensive, consider adding <a href="https://docs.sentinel-hub.com/api/latest/#/API/data_access?id=datamask-handling-for-pixels-with-no-data"><em>dataMask </em></a>and skipping processing with no data. Note that you can only use <em>dataMask </em>with <a href="https://docs.sentinel-hub.com/api/latest/#/Evalscript/V3/README">Version 3</a> evalscripts.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd83292fa7e17bf4c13cf488026b07df/href">https://medium.com/media/dd83292fa7e17bf4c13cf488026b07df/href</a></iframe><h3>Tip 14: Filter your scenes</h3><p>Use <a href="https://docs.sentinel-hub.com/api/latest/#/Evalscript/V3/README?id=filterscenes-function-optional"><em>filterScenes </em></a>to additionally filter scenes that enter your evalscript. This is useful for example if wanting to compare two images, but not knowing when exactly they were acquired. A longer time range can be used and <em>filterScenes</em> can then remove all but two. Not only will such an evalscript load faster, but it will also use fewer processing units since extra unneeded scenes are no longer loaded.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/216ae09db081c0dfcd789b7b31df05ab/href">https://medium.com/media/216ae09db081c0dfcd789b7b31df05ab/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QqrHbH0B1lyjIMQJY2ODwA.png" /><figcaption>Enhanced false color visualization of the landscape south-east of Brasilia, Brazil. Acquired on 23.7.2019, processed by Sentinel Hub.<a href="https://apps.sentinel-hub.com/sentinel-playground/?baseWmsUrl=services.sentinel-hub.com&amp;instanceID=6ef2dd0f-5056-455e-be07-3b621c9461a8&amp;source=S2&amp;lat=-16.333318573391765&amp;lng=-46.99127197265625&amp;zoom=9&amp;preset=CUSTOM&amp;layers=B01,B02,B03&amp;maxcc=20&amp;gain=1.0&amp;gamma=1.0&amp;time=2019-01-01%7C2019-07-09&amp;atmFilter=&amp;showDates=false&amp;evalscript=cmV0dXJuIFtCMTIqNC41LEIwOCoyLjUsQjhBKjIuNV0%3D">🌐</a></figcaption></figure><h3>Tip 15: Read the docs, see the examples</h3><p>We understand that using custom scripts can present quite a steep learning curve. Evalscripts are incredibly powerful and it is simply not possible to explain everything in a single blog post.</p><p>We, therefore, invite you to visit our ever-improving <a href="https://docs.sentinel-hub.com/api/latest/#/Evalscript/V3/README">evalscript documentation</a> and the <a href="https://docs.sentinel-hub.com/api/latest/#/data/Examples_for_S2L1C">examples pages</a>. These are written by us and represent various best-practices approaches to evalscripts. They should hopefully get you up to speed without causing overload and provide a starting point for scripts and requests, which can be modified to your specific needs.</p><p>Finally, if you haven’t yet seen, the second <a href="https://www.sentinel-hub.com/contest">Sentinel Hub Custom Script Contest</a> is currently ongoing! We hope you find these tips useful and don’t forget to send in your best scripts for a chance to win attractive prizes!</p><p>Happy scripting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83f73894658a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sentinel-hub/custom-scripts-faster-cheaper-better-83f73894658a">Custom scripts: faster, cheaper, better!</a> was originally published in <a href="https://medium.com/sentinel-hub">Planet Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Useful and Beautiful Satellite Images with Custom Scripts]]></title>
            <link>https://medium.com/sentinel-hub/create-useful-and-beautiful-satellite-images-with-custom-scripts-8ef0e6a474c6?source=rss-a4a3445c5bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ef0e6a474c6</guid>
            <category><![CDATA[wildfires]]></category>
            <category><![CDATA[custom-script]]></category>
            <category><![CDATA[sentinel-hub]]></category>
            <category><![CDATA[satellite-imagery]]></category>
            <category><![CDATA[deforestation]]></category>
            <dc:creator><![CDATA[Monja Šebela]]></dc:creator>
            <pubDate>Tue, 10 Sep 2019 06:48:47 GMT</pubDate>
            <atom:updated>2019-09-11T18:18:55.783Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQnLqWZG5XTwClUUGmY2lw.png" /></figure><h3>Learning Custom Scripts to make Useful and Beautiful Satellite images</h3><h3>Get Started</h3><p>When I first discovered EO Browser custom scripts, I didn’t know how useful and easy to use they are. I love remote sensing, geography, and beautiful satellite images, but I wasn’t very familiar with coding so the task seemed as impossible as rocket (satellite) science. This changed when I decided to participate in the <a href="https://medium.com/sentinel-hub/get-creative-and-solve-a-remote-sensing-problem-at-home-from-your-pc-and-win-9353938d5fff">Sentinel Hub Custom Script Contest</a>. I learned that I can create a beautiful and informative image with a single line of code (like the following image of Lena river delta).</p><pre>return [B08 * 4.5, B04 * 4.5, B01 * 3.5]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQnLqWZG5XTwClUUGmY2lw.png" /><figcaption>Sentinel-2 false-color composite of Lena river delta in Russia. It contains modified Copernicus data. Processed by Sentinel Hub, acquired on 2019–06–23. Details and full resolution on <a href="https://www.flickr.com/photos/sentinelhub/48186832141/in/photostream/">Sentinel Hub Flickr.</a> <a href="https://apps.sentinel-hub.com/eo-browser/?lat=73.324&amp;lng=126.725&amp;zoom=9&amp;time=2019-06-10&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B08,B04,B01&amp;evalscript=cmV0dXJuIFtCMDgqNC41LEIwNCo0LjUsQjAxKjMuNV07">🌐</a></figcaption></figure><p>At first, it was difficult to understand even the line above. All the available tutorials were made for seasoned programmers and it took me a lot of hard work to eventually figure things out. If you are like me, this blog should spare you that trouble and help you start exploring satellite images today.</p><p>The biggest secret to creating beautiful images is using the <a href="https://apps.sentinel-hub.com/eo-browser/">EO Browser </a>or the <a href="https://apps.sentinel-hub.com/sentinel-playground/">Sentinel Hub Playground</a>; they take care of technical complexity and let you focus on the interpretation of data. All you need to do is open a scripting window in one of them and try out visualizing different satellite bands. Then you multiply them by a certain factor to manipulate their brightness. <em>Each band shows the reflective features with the red, green or blue color assigned to it (the first band will appear red, second green and third blue).</em></p><pre>return [B11 * 2.5, B08 * 2.5, B02 * 2.5]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NpKygpq8EZFlhCxPsfbc7w.png" /><figcaption>Sentinel-2 false-color composite of the Suolama — Anabar confluence in Russia. It contains modified Copernicus data. Processed by Sentinel Hub, acquired on 11.12.2015. Details and full resolution on <a href="https://www.flickr.com/photos/sentinelhub/48344806237/">Sentinel Hub Flickr</a>. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=73.1673&amp;lng=112.8639&amp;zoom=10&amp;time=2019-06-23&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=cmV0dXJuIFtCMTEqMi41LEIwOCoyLjUsQjAyKjIuNV07">🌐</a></figcaption></figure><p>How did I know which bands to use though? The Sentinel-2 satellite we’re using only has 13 of them, so you can simply go ahead and try them out to see which ones make an image you like!</p><p>But it’s also possible to create an image that is useful, as well as being beautiful. To do that, we only need to know a tiny bit more about satellites. This is the most exciting thing about satellite imagery!</p><p><em>To learn all about custom scripts, which bands you can use, what they mean and how they work, check out the </em><a href="https://sentinel-hub.com/sites/default/Custom_script_tutorial.pdf"><em>Custom Script tutorial</em></a><em>. See the Sentinel Hub </em><a href="https://www.sentinel-hub.com/develop/documentation/eo_products"><em>data product page</em></a><em> to learn about band uses and get some ideas on color composites.</em></p><p>Let me demonstrate how useful custom scripts can be — if you take just a little more time — by showing you the Madagascar deforestation issue. We will create multiple visualizations of increasing complexity and learn how to use the already premade ones while exploring the issue together. We will be working in <a href="https://apps.sentinel-hub.com/eo-browser/">EO Browser</a>, using the Sentinel-2 satellite data.</p><h3>Playing an EO Detective to Analyze Madagascar Deforestation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GeDnZXrKMAPCdz8NO3LsMQ.png" /><figcaption>Enhanced Sentinel-2 true-color composite of the Betsiboka river delta. It contains modified Copernicus data. Processed by Sentinel Hub, acquired on 11.12.2015. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=-15.8887&amp;lng=46.3369&amp;zoom=11&amp;time=2015-12-11&amp;preset=1_TRUE_COLOR&amp;datasource=Sentinel-2%20L1C">🌐</a></figcaption></figure><p>Madagascar suffers from <a href="https://www.wildmadagascar.org/conservation/erosion.html">severe deforestation and soil erosion</a>. We will focus on the general area around the beautiful Betsiboka river delta and try to find out whether we can identify the problem areas using custom scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*1izx4guTrXUkKqDsuaXNAA.gif" /></figure><p>Let’s first take a look at a true-color time-lapse, created in EO Browser.</p><p>This time-lapse does not show us much about vegetation, apart from seasonal changes.</p><p>To get a better idea of what’s happening, we will make a custom composite based on bands B04, B08, and B02, which can be used to detect vegetation, bare ground, and water. If you’d like, you can read a <a href="https://www.sentinel-hub.com/explore/education/custom-scripts-tutorial">step by step guide</a> on how you can create this composite.</p><pre><strong>return [B04 * 5.5, B08 * 2.5, B02 * 3.5]</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BGJ0cnsrHeapwuxuj4kCBA.png" /><figcaption>Sentinel-2 false-color composite. It contains modified Copernicus data. Processed by Sentinel Hub. Acquired on 18.7.2019. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=-15.9935&amp;lng=46.4170&amp;zoom=10&amp;time=2019-07-18&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=cmV0dXJuIFtCMDQgKiA1LjUsIEIwOCAqIDIuNSwgQjAyICogMy41XQ%3D%3D">🌐</a></figcaption></figure><p>Comparing the result above to the true-color image, we see that vegetation is displayed green and bare soil in brownish shades in the composite. Water is displayed with the whole range of colors between deep blue and red. We‘ll use it in the time-lapse to see how vegetation cover changes over time. Since we have read, that the area is heavily deforested, we’ll focus on any interesting changes that support this. Don’t miss the date in the upper right corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*o6Z3B9JEJ1frtjUwTK1IFQ.gif" /></figure><p>Do you see the reappearing dark brown patches of land? They seem to appear every autumn. It seems they are not forested since they are not colored green. We can expect to find those areas bare, save for dry grass or similar vegetation.</p><p>They also appear in large chunks at once, in similar shapes, meaning they are likely human-made. Could this be deforestation? Let’s make the hypothesis that those areas are deliberately deforested and test it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VzmQLWtnhFVeGSnZPK4QdA.jpeg" /><figcaption>Sentinel-2 false-color composite. It contains modified Copernicus data. Processed by Sentinel Hub. Acquired on 18.7.2019. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=-15.8139&amp;lng=47.2664&amp;zoom=12&amp;time=2019-07-18&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=cmV0dXJuIFtCMDQgKiA1LjUsIEIwOCAqIDIuNSwgQjAyICogMy41XQ%3D%3D">🌐</a></figcaption></figure><p>First, we should figure out what those patches of land are. Is there uncovered soil there, or maybe water?</p><p>Here, we are making a big step forward in learning custom scripts, by implementing our first index.</p><p>We will use the Barren soil script I created for the latest Sentinel Hub Custom Script Contest and which is freely available in the <a href="https://custom-scripts.sentinel-hub.com/sentinel-2/barren_soil/">custom script repository</a>.</p><p>It is calculated based on the <a href="https://www.geo.university/pages/spectral-indices-with-multispectral-satellite-data">Bare soil index</a> as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*8lgW7cyisaLr5V4aFKfQ8w.png" /></figure><p><em>The combination of bands </em><a href="http://gsp.humboldt.edu/OLM/Courses/GSP_216_Online/lesson2-1/reflectance.html"><em>B11</em></a><em> and </em><a href="https://www.tandfonline.com/doi/abs/10.1080/00103624.2015.1043463"><em>B04</em></a><em> indicates bare soil areas, band B08 indicates vegetation for contrast and band B02 additionally discriminates between vegetated and non-vegetated areas.</em></p><p>First, we calculate the index and then return it in the red channel, so that bare ground areas display red.</p><pre>let index = ((B11 + B04)-(B08 + B02))/((B11 + B04)+(B08 + B02))<br> <br>return [index * 6.25, B08, B04];</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Kdu-t4CcNgh9Qdsh8yPbQ.jpeg" /><figcaption>Sentinel-2 false-color composite. It contains modified Copernicus data. Processed by Sentinel Hub. Acquired on 18.7.2019. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=-15.9920&amp;lng=46.1676&amp;zoom=10&amp;time=2019-07-18&amp;preset=CUSTOM&amp;atmFilter=null&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=bGV0IGluZGV4PSAoKEIxMSArIEIwNCktKEIwOCArIEIwMikpLygoQjExICsgQjA0KSsoQjA4ICsgQjAyKSkKIApyZXR1cm4gW2luZGV4ICogNi41LCBCMDgsIEIwNF07">🌐</a></figcaption></figure><p>The green areas display lush vegetation (forest), and red those areas, where soil or rock is exposed. It does not mean that vegetation there is nonexistent, but that it is scarce and the soil shows through.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XFgoEQzmOze1wB6NCaXF6Q.jpeg" /><figcaption>Sentinel-2 false-color composite. It contains modified Copernicus data. Processed by Sentinel Hub, acquired on 18.7.2019. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=-15.81279&amp;lng=47.30967&amp;zoom=14&amp;time=2019-07-18&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=bGV0IGluZGV4PSAyLjUgKiAoKEIxMSArIEIwNCktKEIwOCArIEIwMikpLygoQjExICsgQjA0KSsoQjA4ICsgQjAyKSkKIApyZXR1cm4gW2luZGV4ICogMi41LCBCMDgsIEIwNF07">🌐</a></figcaption></figure><p>After zooming in, we can see, that, interestingly, the suspected deforestation areas appear black. If people cut trees down, the exposed ground should appear either red, should there be exposed soil or green, should it be covered in grass. Black color means that the reflectance was low for all the input bands.</p><p>If we look at the previous, large scale image, we can see, that water in the Bare soil script is also colored black. Does that mean, those areas could somehow be wet? Irrigation maybe?</p><p>To confirm that, we will look at the <a href="https://www.usgs.gov/land-resources/nli/landsat/normalized-difference-moisture-index">moisture index</a>. It is already available in the visualization tab of EO Browser, so you don’t have to do all the work yourself.</p><p><em>The moisture index uses a continuous color scale, which is also made using custom scripts. “Continuous” means, that the colors are stretched between the border values, as opposed to being classified. This way, we get as many hues and value differences as possible.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCowNAM9Ed3XeEuf0XMaxQ.png" /><figcaption>Sentinel-2 moisture index. It contains modified Copernicus data. Processed by Sentinel Hub, acquired on 18.7.2019. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=-15.81457&amp;lng=47.31969&amp;zoom=14&amp;time=2019-07-18&amp;preset=5-MOISTURE-INDEX1&amp;datasource=Sentinel-2%20L1C">🌐</a></figcaption></figure><p>Apparently, the patches are not wet, since the moisture index (based on the color scale) is low in those areas. The area is extremely dry and there is little to no vegetation present, so I’m suspecting a fire.</p><p><em>If we take a look at the bands that are used in the moisture index above the color scale, we can see, it’s made of band B8A, which can be used to detect vegetation, and short wave infrared band B11. Since vegetated areas shouldn’t have extremely low moisture values, we know that it’s band B11, which is being reflected in the dry areas. This makes sense since bands B11 and B12 can be used to detect heat. Based on this information, it is reasonable to consider, that the extremely dry areas were burned.</em></p><p>To check if we’re correct, we can search for a custom script online. A very useful place to search for them is the <a href="https://custom-scripts.sentinel-hub.com/">Custom script repository</a>. We’re in luck! There is a <a href="https://custom-scripts.sentinel-hub.com/sentinel-2/markuse_fire/">Wildfire Visualization script</a> by Pierre Markuse. We should click on “<a href="https://apps.sentinel-hub.com/eo-browser/#lat=43.50174856516506&amp;lng=16.510391235351562&amp;zoom=11&amp;datasource=Sentinel-2%20L1C&amp;time=2017-07-17&amp;preset=CUSTOM&amp;layers=B01,B02,B03&amp;evalscript=Ly8gKioqCi8vIFZpc3VhbGl6aW5nICh3aWxkKWZpcmVzIGluIFNlbnRpbmVsLTIgaW1hZ2VyeQovLyBGb3IgdXNlIGluIFNpbmVyZ2lzZSBFTyBCcm93c2VyIChodHRwOi8vYXBwcy5zZW50aW5lbC1odWIuY29tL2VvLWJyb3dzZXIpCi8vIFBpZXJyZSBNYXJrdXNlIChAcGllcnJlX21hcmt1c2UpCi8vICoqKgovLyBGdW5jdGlvbnMKZnVuY3Rpb24gQShhLCBiKSB7cmV0dXJuIGEgKyBifTsKZnVuY3Rpb24gc3RyZXRjaCh2YWwsIG1pbiwgbWF4KSAgewoJcmV0dXJuICh2YWwgLSBtaW4pIC8gKG1heCAtIG1pbik7Cn0KCi8vIEJhbmQgY29tYmluYXRpb25zCnZhciBOYXR1cmFsQ29sb3JzID0gW3N0cmV0Y2goMy4xICogQjA0LDAuMDUsMC45KSwgc3RyZXRjaCgzICogQjAzLDAuMDUsMC45KSwgc3RyZXRjaCgzLjAgKiBCMDIsMC4wNSwwLjkpXTsKdmFyIEVuaGFuY2VkTmF0dXJhbENvbG9ycyA9IFtzdHJldGNoKCgzLjEgKiBCMDQgKyAwLjEgKiBCMDUpLDAuMDUsMC45KSwgc3RyZXRjaCgoMyAqIEIwMyArIDAuMTUgKiBCMDgpLDAuMDUsMC45KSwgc3RyZXRjaCgzICogQjAyLDAuMDUsMC45KV07CnZhciBOSVJTV0lSQ29sb3JzID0gW3N0cmV0Y2goMi42ICogQjEyLDAuMDUsMC45KSwgc3RyZXRjaCgxLjkgKiBCMDgsMC4wNSwwLjkpLCBzdHJldGNoKDIuNyAqIEIwMiwwLjA1LDAuOSldOwp2YXIgUGFuQmFuZCA9IFtzdHJldGNoKEIwOCwwLjAxLDAuOTkpLHN0cmV0Y2goQjA4LDAuMDEsMC45OSksc3RyZXRjaChCMDgsMC4wMSwwLjk5KV07CnZhciBOYXR1cmFsTklSU1dJUk1peCA9IFtzdHJldGNoKCgyLjEgKiBCMDQgKyAwLjUgKiBCMTIpLDAuMDEsMC45OSksIHN0cmV0Y2goKDIuMiAqIEIwMyArIDAuNSAqIEIwOCksMC4wMSwwLjk5KSwgc3RyZXRjaCgzLjIgKiBCMDIsMC4wMSwwLjk5KV07CnZhciBQYW5UaW50ZWRHcmVlbiA9IFtCMDggKiAwLjIsIEIwOCwgQjA4ICogMC4yXTsKdmFyIEZpcmUxT1ZMID0gW3N0cmV0Y2goKDIuMSAqIEIwNCArIDAuNSAqIEIxMiksMC4wMSwwLjk5KSsxLjEsIHN0cmV0Y2goKDIuMiAqIEIwMyArIDAuNSAqIEIwOCksMC4wMSwwLjk5KSwgc3RyZXRjaCgyLjEgKiBCMDIsMC4wMSwwLjk5KV07CnZhciBGaXJlMk9WTCA9IFtzdHJldGNoKCgyLjEgKiBCMDQgKyAwLjUgKiBCMTIpLDAuMDEsMC45OSkrMS4xLCBzdHJldGNoKCgyLjIgKiBCMDMgKyAwLjUgKiBCMDgpLDAuMDEsMC45OSkrMC41LCBzdHJldGNoKDIuMSAqIEIwMiwwLjAxLDAuOTkpXTsKLy8gQ2hvb3NlIGEgQ29sb3IsIEJhbmQgQ29tYmluYXRpb24sIG9yIG1ha2UgdXAgeW91ciBvd24gdmlzdWFsCi8vIEluIGNhc2UgaXQgZG9lc24ndCBoYXZlIHRvIGxvb2sgYWVzdGhldGljYWxseSBwbGVhc2luZyB5b3UgY2FuIHB1dCBSRUQgYW5kIFlFTExPVyBoZXJlIAp2YXIgRklSRTEgPSBGaXJlMU9WTDsgLy8gT3V0ZXIgZmlyZSB6b25lLCBkZWYgPSBGaXJlMU9WTAp2YXIgRklSRTIgPSBGaXJlMk9WTDsgLy8gSW5uZXIgZmlyZSB6b25lLCBkZWYgPSBGaXJlMk9WTAovLyBJIHJlY29tbWVuZCBOYXR1cmFsTklSU1dJUk1peCBvciBOSVJTV0lSQ29sb3JzIGZvciBiZXN0IHZpc3VhbHMKLy8gVHJ5IE5hdHVyYWxDb2xvcnMsIEVuaGFuY2VkTmF0dXJhbENvbG9ycywgUGFuVGludGVkR3JlZW4sIGFuZCBQYW5CYW5kIGFzIHdlbGwKdmFyIE5PRklSRSA9IE5hdHVyYWxOSVJTV0lSTWl4OwovLyBVc2luZyBCMTIgYW5kIEIxMSB0byBoaWdobGlnaHQgcG9zc2libGUgZmlyZXMgaW4gdHdvIHpvbmVzIHRvIGdldCBzb21lIG1vcmUgZGlzdGluY3Rpb24KLy8gSW5jcmVhc2UgU0VOU0lUSVZJVFkgZm9yIG1vcmUgcG9zc2libGUgZmlyZXMgYW5kIG1vcmUgd3JvbmcgaW5kaWNhdGlvbnMKdmFyIFNFTlNJVElWSVRZID0gMS4wOwpyZXR1cm4gKEEoQjEyLCBCMTEpID4gKDEuMCAvIFNFTlNJVElWSVRZKSkKPyAoQShCMTIsIEIxMSkgPiAoMi4wIC8gU0VOU0lUSVZJVFkpKSA%2FIEZJUkUyIDogRklSRTEKOiBOT0ZJUkU7Cg%3D%3D">EO Browser</a>” to open it. If you would like to recreate a similar script, note, that bands B11 and B12 can be used to detect heated areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*CjY9iOdJypMqthN-ARKFMQ.png" /><figcaption>Sentinel-2 false-color composite by Pierre Markuse. It contains modified Copernicus data. Processed by Sentinel Hub, acquired on 18.7.2019. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=-15.81364&amp;lng=47.28928&amp;zoom=14&amp;time=2019-07-18&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=Ly8gKioqCi8vIFZpc3VhbGl6aW5nICh3aWxkKWZpcmVzIGluIFNlbnRpbmVsLTIgaW1hZ2VyeQovLyBGb3IgdXNlIGluIFNpbmVyZ2lzZSBFTyBCcm93c2VyIChodHRwOi8vYXBwcy5zZW50aW5lbC1odWIuY29tL2VvLWJyb3dzZXIpCi8vIFBpZXJyZSBNYXJrdXNlIChAcGllcnJlX21hcmt1c2UpCi8vICoqKgovLyBGdW5jdGlvbnMKZnVuY3Rpb24gQShhLCBiKSB7cmV0dXJuIGEgKyBifTsKZnVuY3Rpb24gc3RyZXRjaCh2YWwsIG1pbiwgbWF4KSAgewoJcmV0dXJuICh2YWwgLSBtaW4pIC8gKG1heCAtIG1pbik7Cn0KCi8vIEJhbmQgY29tYmluYXRpb25zCnZhciBOYXR1cmFsQ29sb3JzID0gW3N0cmV0Y2goMy4xICogQjA0LDAuMDUsMC45KSwgc3RyZXRjaCgzICogQjAzLDAuMDUsMC45KSwgc3RyZXRjaCgzLjAgKiBCMDIsMC4wNSwwLjkpXTsKdmFyIEVuaGFuY2VkTmF0dXJhbENvbG9ycyA9IFtzdHJldGNoKCgzLjEgKiBCMDQgKyAwLjEgKiBCMDUpLDAuMDUsMC45KSwgc3RyZXRjaCgoMyAqIEIwMyArIDAuMTUgKiBCMDgpLDAuMDUsMC45KSwgc3RyZXRjaCgzICogQjAyLDAuMDUsMC45KV07CnZhciBOSVJTV0lSQ29sb3JzID0gW3N0cmV0Y2goMi42ICogQjEyLDAuMDUsMC45KSwgc3RyZXRjaCgxLjkgKiBCMDgsMC4wNSwwLjkpLCBzdHJldGNoKDIuNyAqIEIwMiwwLjA1LDAuOSldOwp2YXIgUGFuQmFuZCA9IFtzdHJldGNoKEIwOCwwLjAxLDAuOTkpLHN0cmV0Y2goQjA4LDAuMDEsMC45OSksc3RyZXRjaChCMDgsMC4wMSwwLjk5KV07CnZhciBOYXR1cmFsTklSU1dJUk1peCA9IFtzdHJldGNoKCgyLjEgKiBCMDQgKyAwLjUgKiBCMTIpLDAuMDEsMC45OSksIHN0cmV0Y2goKDIuMiAqIEIwMyArIDAuNSAqIEIwOCksMC4wMSwwLjk5KSwgc3RyZXRjaCgzLjIgKiBCMDIsMC4wMSwwLjk5KV07CnZhciBQYW5UaW50ZWRHcmVlbiA9IFtCMDggKiAwLjIsIEIwOCwgQjA4ICogMC4yXTsKdmFyIEZpcmUxT1ZMID0gW3N0cmV0Y2goKDIuMSAqIEIwNCArIDAuNSAqIEIxMiksMC4wMSwwLjk5KSsxLjEsIHN0cmV0Y2goKDIuMiAqIEIwMyArIDAuNSAqIEIwOCksMC4wMSwwLjk5KSwgc3RyZXRjaCgyLjEgKiBCMDIsMC4wMSwwLjk5KV07CnZhciBGaXJlMk9WTCA9IFtzdHJldGNoKCgyLjEgKiBCMDQgKyAwLjUgKiBCMTIpLDAuMDEsMC45OSkrMS4xLCBzdHJldGNoKCgyLjIgKiBCMDMgKyAwLjUgKiBCMDgpLDAuMDEsMC45OSkrMC41LCBzdHJldGNoKDIuMSAqIEIwMiwwLjAxLDAuOTkpXTsKLy8gQ2hvb3NlIGEgQ29sb3IsIEJhbmQgQ29tYmluYXRpb24sIG9yIG1ha2UgdXAgeW91ciBvd24gdmlzdWFsCi8vIEluIGNhc2UgaXQgZG9lc24ndCBoYXZlIHRvIGxvb2sgYWVzdGhldGljYWxseSBwbGVhc2luZyB5b3UgY2FuIHB1dCBSRUQgYW5kIFlFTExPVyBoZXJlIAp2YXIgRklSRTEgPSBGaXJlMU9WTDsgLy8gT3V0ZXIgZmlyZSB6b25lLCBkZWYgPSBGaXJlMU9WTAp2YXIgRklSRTIgPSBGaXJlMk9WTDsgLy8gSW5uZXIgZmlyZSB6b25lLCBkZWYgPSBGaXJlMk9WTAovLyBJIHJlY29tbWVuZCBOYXR1cmFsTklSU1dJUk1peCBvciBOSVJTV0lSQ29sb3JzIGZvciBiZXN0IHZpc3VhbHMKLy8gVHJ5IE5hdHVyYWxDb2xvcnMsIEVuaGFuY2VkTmF0dXJhbENvbG9ycywgUGFuVGludGVkR3JlZW4sIGFuZCBQYW5CYW5kIGFzIHdlbGwKdmFyIE5PRklSRSA9IE5hdHVyYWxOSVJTV0lSTWl4OwovLyBVc2luZyBCMTIgYW5kIEIxMSB0byBoaWdobGlnaHQgcG9zc2libGUgZmlyZXMgaW4gdHdvIHpvbmVzIHRvIGdldCBzb21lIG1vcmUgZGlzdGluY3Rpb24KLy8gSW5jcmVhc2UgU0VOU0lUSVZJVFkgZm9yIG1vcmUgcG9zc2libGUgZmlyZXMgYW5kIG1vcmUgd3JvbmcgaW5kaWNhdGlvbnMKdmFyIFNFTlNJVElWSVRZID0gMS4wOwpyZXR1cm4gKEEoQjEyLCBCMTEpID4gKDEuMCAvIFNFTlNJVElWSVRZKSkKPyAoQShCMTIsIEIxMSkgPiAoMi4wIC8gU0VOU0lUSVZJVFkpKSA%2FIEZJUkUyIDogRklSRTEKOiBOT0ZJUkU7Cg%3D%3D">🌐</a></figcaption></figure><p>We can clearly see heat (not flames) and even smoke. The area was burned that day, which is evident by the heat on the border of our dark patch. If we look around Madagascar, we can see, there are many fires every summer and autumn all around the surrounding area.</p><p>What we could do next is try to highlight the burnt areas, to learn the extent of it. To do that, we can create custom color classes. The following script is a bit more complicated, but it shows that even classification can be done directly using custom scripts in EO Browser, showcasing their usefulness even more.</p><p><em>First, we calculate the bare soil index, the </em><a href="https://www.geo.university/pages/spectral-indices-with-multispectral-satellite-data"><em>NDVI index</em></a><em> for vegetation and the </em><a href="https://www.geo.university/pages/spectral-indices-with-multispectral-satellite-data"><em>NDWI index</em></a><em> for water. Then we use conditional if statements to define colors. The if statements define our index values by specifying that each index should be larger than the specified threshold. We assign colors to our water, vegetation, burnt areas, and other pixels. The indices and threshold values are obtained from understanding the satellite bands and experimenting by trying out different thresholds, until, for example, our vegetation index matches vegetation, as seen in the true-color composite. The values could also be obtained by understanding the index histogram distribution for a specific area.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/01960250e41c9162d7b62fac3c1b1234/href">https://medium.com/media/01960250e41c9162d7b62fac3c1b1234/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eY5mT4X0-ztbsBWo6FQS7Q.jpeg" /><figcaption>Sentinel-2 false-color composite of the Betsiboka river delta. It contains modified Copernicus data. Processed by Sentinel Hub, acquired on 23.7.2019. <a href="https://apps.sentinel-hub.com/eo-browser/?lat=-15.9567&amp;lng=46.3637&amp;zoom=10&amp;time=2019-07-23&amp;preset=CUSTOM&amp;datasource=Sentinel-2%20L1C&amp;layers=B01,B02,B03&amp;evalscript=Ly9CYXJlIHNvaWwgaW5kZXgKQlMgPSAoKEIxMSArIEIwNCktKEIwOCArIEIwMikpLygoQjExICsgQjA0KSsoQjA4ICsgQjAyKSkKLy8gVmVnZXRhdGlvbiBpbmRleApORFZJID0gaW5kZXggKEIwOCwgQjA0KQovLyBXYXRlciBpbmRleApORFdJID0gKEIwMyAtIEIwOCkvKEIwMyArIEIwOCkKaWYgKE5EV0kgPiAwLjIpIHsKICByZXR1cm4gWzAsMC42LDFdCn0KaWYgKE5EVkkgPiAwLjMpewogIHJldHVybiBbMCwgMC41LCAwLjJdCn0KaWYgKEJTIDwgMC4wNSkgewogcmV0dXJuIFsxLCAwLCAwLjNdIAogfQplbHNlIHsKIHJldHVybiBbMCwgMCwgMF0gCiB9">🌐</a></figcaption></figure><p><em>This classification does a good job of highlighting the areas we believe to be deforested. However, it is not perfect. Urban areas and some bare soil fields have a similar spectral signature as the burnt areas. If you zoom in to the Mahajanga settlement at the coast, you will see it colored red. Due to similar spectral signatures, it is often difficult to find indices, bands or thresholds, that would correspond only to the phenomena you are interested in and nothing else. It‘s always good to be critical of your results and realize their limitations.</em></p><p>The extent of land burnt is too large to be reasonably attributed to wildfires. However, we should do research to see if burning is the common cause of deforestation in Madagascar before confirming our hypothesis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r00Gf8kTdfKHbufFuO9GLA.jpeg" /><figcaption>Slash and burn at Mantadia Andasibe-Perinet-Analamazoatra, by <a href="https://data.mongabay.com/about.htm">Rhett A. Butler</a> on 29.9.2005</figcaption></figure><p>As we can see in <a href="https://www.lemurconservationnetwork.org/madagascar-is-burning/">this</a> article, massive amounts of forest are burnt down every year. This is due to the slash and burn agriculture, also called <a href="https://www.madamagazine.com/en/english-tavy-kahlschlag-einer-insel/">tavy</a>, where the forest is burnt and then farmed in the following months. The forest grows back, but the soil is vulnerable to erosion until then. Moreover, this is not the only cause of deforestation in Madagascar; others include deforestation for grazing, <a href="https://www.eoi.es/blogs/guidopreti/2014/02/04/deforestation-in-madagascar-a-threat-to-its-biodiversity/">logging</a>, and production of coal. As a consequence, heavy rains erode large amounts of soil, since there is no forest cover to protect it. Madagascar has lost <a href="https://www.eoi.es/blogs/guidopreti/2014/02/04/deforestation-in-madagascar-a-threat-to-its-biodiversity/">80 % of its primary forests</a>, causing many indigenous species, such as <a href="https://monkeysandmountains.com/lemurs-madagascar/">lemurs</a>, to be endangered.</p><p><em>Have we explored a different area of Madagascar, on the east, for example, deforestation for logging might be more prevalent than deforestation by tavy and our results would differ.</em></p><p>I hope you found this exploration interesting and that one day you enjoy custom scripts as much as I do. I hope to see your submission in the next <a href="https://medium.com/sentinel-hub/why-to-join-the-next-sentinel-hub-custom-script-contest-f3adb6c8e92c">Sentinel Hub Custom Script Contest</a> where you can earn a nice prize while creating beautiful and useful satellite images!</p><p>Helpful links:</p><ul><li><a href="https://medium.com/sentinel-hub/why-to-join-the-next-sentinel-hub-custom-script-contest-f3adb6c8e92c">Round 2 of the Sentinel Hub Custom Script Contest</a></li><li><a href="https://medium.com/sentinel-hub/get-creative-and-solve-a-remote-sensing-problem-at-home-from-your-pc-and-win-9353938d5fff">Latest Custom script contest blog</a></li><li><a href="https://www.sentinel-hub.com/explore/education/custom-scripts-tutorial">The Beginner Custom Script Tutorial</a></li><li><a href="https://medium.com/sentinel-hub/mapping-deforestation-from-sentinel-hub-de6aae67f817">Multitemporal deforestation detection blog by Nicolas Karasiak</a></li><li><a href="https://custom-scripts.sentinel-hub.com/">Custom script Github repository</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ef0e6a474c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sentinel-hub/create-useful-and-beautiful-satellite-images-with-custom-scripts-8ef0e6a474c6">Create Useful and Beautiful Satellite Images with Custom Scripts</a> was originally published in <a href="https://medium.com/sentinel-hub">Planet Stories</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>