<?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 Luigi Di Fraia on Medium]]></title>
        <description><![CDATA[Stories by Luigi Di Fraia on Medium]]></description>
        <link>https://medium.com/@luigidifraia?source=rss-ec554a153736------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kuZBW_fYOf1EgdmOe4A2hQ.jpeg</url>
            <title>Stories by Luigi Di Fraia on Medium</title>
            <link>https://medium.com/@luigidifraia?source=rss-ec554a153736------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:33:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@luigidifraia/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[Querying satellite imagery at the anti-meridian using the Open Data Cube]]></title>
            <link>https://medium.com/@luigidifraia/querying-satellite-imagery-at-the-anti-meridian-using-the-open-data-cube-661ba1cd553a?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/661ba1cd553a</guid>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Sat, 28 Mar 2020 22:25:10 GMT</pubDate>
            <atom:updated>2020-03-29T10:47:59.251Z</atom:updated>
            <content:encoded><![CDATA[<p>In my <a href="https://medium.com/@luigidifraia/satellite-imagery-product-generation-using-the-open-data-cube-and-dask-within-a-kubernetes-platform-3bcc4e654f17">previous article</a> I commented on how at the <a href="https://sa.catapult.org.uk/">Satellite Applications Catapult</a> I developed the processing stack to routinely generate summary Earth Observation products, such as the geometric median (geomedian), for the <a href="https://sa.catapult.org.uk/south-coast/case-study/common-sensing-using-satellite-imagery-to-tackle-climate-change-and-natural-disasters/">Common Sensing project</a>.</p><p>In the process of generating routine products, I understood that we have to avoid EPSG:4326 coordinate when querying data from the <a href="https://www.opendatacube.org/">Open Data Cube</a>, due to an <a href="https://github.com/opendatacube/datacube-core/issues/886">issue that I raised on GitHub</a>. This issue presents itself whether or not the data being queried is close to the anti-meridian, as it comes into play as soon as datasets that span the anti-meridian are indexes in the cube.</p><p>One of the things I also noticed since I wrote the article is that some routine products I generated around the anti-meridian were missing data, despite of the fact I was avoiding EPSG:4326 coordinates in my queries.</p><p>As example, using the area of interest (AoI) with extents as per below:</p><pre>query[&#39;x&#39;] = (2026001.0, 2133165.0)<br>query[&#39;y&#39;] = (3999978.0, 4110240.0)<br>query[&#39;crs&#39;] = &#39;EPSG:3460&#39;</pre><p>the Landsat 8 products from January 2019 that are returned by our Open Data Cube instance are as per below:</p><figure><img alt="Landsat 8 products from January 2019 that are returned by the Open Data Cube" src="https://cdn-images-1.medium.com/max/1022/0*l6xeHg4e4sr3Uy-K" /><figcaption>Landsat 8 products from January 2019 that are returned by the Open Data Cube</figcaption></figure><p>However, if I query just 100 meters further West:</p><pre>query[&#39;x&#39;] = (2025901.0, 2133065.0)<br>query[&#39;y&#39;] = (3999978.0, 4110240.0)<br>query[&#39;crs&#39;] = &#39;EPSG:3460&#39;</pre><p>one of the products is not returned any longer:</p><figure><img alt="Landsat 8 products from January 2019 that are returned by the Open Data Cube" src="https://cdn-images-1.medium.com/max/1015/0*-yNdwuypw6cyt3CC" /><figcaption>Landsat 8 products from January 2019 that are returned by the Open Data Cube</figcaption></figure><p>The end result is that large mosaics generated using routine products have visible dents and strips with missing data in them:</p><figure><img alt="Landsat 8 2018 Geomedian Mosaic" src="https://cdn-images-1.medium.com/max/1024/0*t6-knq5yYHomMIru" /><figcaption>Landsat 8 2018 Geomedian Mosaic</figcaption></figure><figure><img alt="Sentinel-2 2019 Geomedian Mosaic" src="https://cdn-images-1.medium.com/max/1024/0*VjqqCgwoG-X6j5dt" /><figcaption>Sentinel-2 2019 Geomedian Mosaic</figcaption></figure><p>In an attempt to help the Open Data Cube community to troubleshoot this new issue, I set out to look for the exact point where queries stop working as expected in my example.</p><p>After a while (the good part of a weekend — writing and running some automation to do this sort of investigation, while self-isolating), I ended up with the following working extents:</p><pre>query[&#39;x&#39;] = (2033081.0, 2133081.0)<br>query[&#39;y&#39;] = (3999700.0, 4100300.0)<br>query[&#39;crs&#39;] = &#39;EPSG:3460&#39;</pre><p>which produce the annual geomedian imagery as per below:</p><figure><img alt="Landsat 8 geomedian product" src="https://cdn-images-1.medium.com/max/1024/0*LnmzC5wfeNm3cL9H" /><figcaption>Landsat 8 geomedian product (correct)</figcaption></figure><p>The following are non-working extents, just 1 meter further West when compared to the above mentioned extents:</p><pre>query[&#39;x&#39;] = (2033080.0, 2133080.0)<br>query[&#39;y&#39;] = (3999700.0, 4100300.0)<br>query[&#39;crs&#39;] = &#39;EPSG:3460&#39;</pre><p>These produce the following annual product with an evident data gap:</p><figure><img alt="Landsat 8 geomedian product" src="https://cdn-images-1.medium.com/max/1024/0*haPQWUw47_qZn0-T" /><figcaption>Landsat 8 geomedian product (missing data)</figcaption></figure><p>What this investigation of mine suggests is that the exact location of an AoI is making quite a big difference on what data the Open Data Cube returns.</p><p>Being this the case, I ended up experimenting with different AoIs (size and location). What I found out is that if the below two conditions are met then queries return the expected data around the anti-meridian, consistently:</p><ul><li>the AoI spans across the anti-meridian, and</li><li>the AoI includes a full portion of scene or granule on either side of the anti-meridian, along the longitude</li></ul><p>I’d like to underline that these conditions are sufficient for queries to return the expected data, but not necessary.</p><p>Based on the above, what I ended up doing was to rewrite my tiling tool so that around the anti-meridian output products are generated using spatial extents that meet the above conditions. BTW, the tiling of data is necessary to cope with the fact we have a finite amount of memory resources in our Kubernetes cluster for generating routine products, so there are limits when it comes to the largest area we can process.</p><p>This new observation means that I have little room to reduce tile size at the anti-meridian boundary (the minimum size is also different for Landsat compared to Sentinel-2) and that tiles from each side of the anti-meridian have to overlap slightly:</p><figure><img alt="Summary product extents for Landsat over Fiji" src="https://cdn-images-1.medium.com/max/1024/0*gDu3V3vM54ngOcdW" /><figcaption>Summary product extents for Landsat over Fiji</figcaption></figure><figure><img alt="Summary product extents for Sentinel-2 over Fiji" src="https://cdn-images-1.medium.com/max/1024/0*P10P40ieSdK11bGm" /><figcaption>Summary product extents for Sentinel-2 over Fiji</figcaption></figure><p>By using the above tiling schemes, for Landsat and Sentinel-2 respectively, I was able to produce the following overall geomedian mosaics for Fiji:</p><figure><img alt="Summary product mosaic for Landsat over Fiji" src="https://cdn-images-1.medium.com/max/1024/0*hHy7nH7Dwui5pAgH" /><figcaption>Summary product mosaic for Landsat over Fiji</figcaption></figure><figure><img alt="Summary product mosaic for Sentinel-2 over Fiji" src="https://cdn-images-1.medium.com/max/1024/0*K921nIBYWE20dgXy" /><figcaption>Summary product mosaic for Sentinel-2 over Fiji</figcaption></figure><h3>Conclusions</h3><p>I could not overstate how paramount it is to ensure extra care is used when dealing with Satellite imagery at the anti-meridian. In fact, my experience with the Open Data Cube suggests that Murphy’s laws are still very much in effect.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=661ba1cd553a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Satellite imagery product generation using the Open Data Cube and Dask within a Kubernetes platform]]></title>
            <link>https://medium.com/opendatacube/satellite-imagery-product-generation-using-the-open-data-cube-and-dask-within-a-kubernetes-platform-3bcc4e654f17?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bcc4e654f17</guid>
            <category><![CDATA[open-data-cube]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[earth-observation]]></category>
            <category><![CDATA[dask]]></category>
            <category><![CDATA[jupyterhub]]></category>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Sun, 08 Mar 2020 20:13:30 GMT</pubDate>
            <atom:updated>2020-03-08T20:13:30.945Z</atom:updated>
            <content:encoded><![CDATA[<p>At the <a href="https://sa.catapult.org.uk/">Satellite Applications Catapult</a>, as part of the efforts for the <a href="https://sa.catapult.org.uk/south-coast/case-study/common-sensing-using-satellite-imagery-to-tackle-climate-change-and-natural-disasters/">Common Sensing project</a>, I’ve been quite busy designing and then putting together the various elements of a routine satellite imagery product generation that leverages our <a href="https://www.opendatacube.org/">Open Data Cube</a> Hub, including its distributed <a href="https://dask.org/">Dask</a> cluster.</p><p>The processing stack we published a while back within our <a href="https://github.com/SatelliteApplicationsCatapult/ard-docker-images">ard-docker-images GitHub repo</a> fetches ARD data from USGS, ESA and ASF, it then processes such data to <a href="https://www.cogeo.org/">Cloud Optimized GeoTIFF</a> (COG) format and creates the necessary YAML metadata for indexing it into the Open Data Cube.</p><p>This latest product generation stack uses the Open Data Cube as source of data and creates derived products, such as annual geometric median surface reflectance imagery, along with their YAML metadata. If you would like to have a look at it, the code and deployment material were published in our <a href="https://github.com/SatelliteApplicationsCatapult/odc-product-docker-images">odc-product-docker-images GitHub repo</a>.</p><p>Below are a few screenshots related to the geometric median processing that I ran over the weekend. For a start, I generate geometric median imagery as 100 km X 100 km (roughly) tiles for Landsat 7 and 8 and 50 km x 50 km tiles for Sentinel-2, as that’s what our Kubernetes cluster can produce with the CPU and memory resource limits I assigned them.</p><figure><img alt="Landsat geometric median imagery tiles over Fiji’s main island and southern waters" src="https://cdn-images-1.medium.com/max/1024/0*M_ojafQ5s-XmfCuQ" /><figcaption>Landsat geometric median imagery tiles over Fiji’s main island and southern waters</figcaption></figure><p>The following screenshot shows the relationship between Landsat geometric median imagery tiles (in blue) and Landsat Level-2 scene outlines (in green).</p><figure><img alt="Landsat geometric median imagery tiles (blue) and Landsat Level-2 scene outlines (green)" src="https://cdn-images-1.medium.com/max/1024/0*gCL1IIghZX8XLnLy" /><figcaption>Landsat geometric median imagery tiles (blue) and Landsat Level-2 scene outlines (green)</figcaption></figure><p>The following screenshot shows resource utilization and limits on one of our Dask worker Pods during the generation of geometric median imagery for Landsat 7, 8 and Sentinel-2 that occurred over the weekend.</p><figure><img alt="Grafana showing resource utilization of a Dask worker Pod" src="https://cdn-images-1.medium.com/max/1024/0*rTc8JX-DlW8aysj-" /><figcaption>Grafana showing resource utilization of a Dask worker Pod</figcaption></figure><p>The following screenshot shows resource utilization on the job processing Pod itself.</p><figure><img alt="Grafana showing resource utilization of the job processing pod" src="https://cdn-images-1.medium.com/max/1024/0*DpVegl1wHWvA2f2h" /><figcaption>Grafana showing resource utilization of the job processing pod</figcaption></figure><p>Finally, here’s a screenshot of Dask’s dashboard showing how memory utilization is getting close to exhaustion levels while generating a tile for Sentinel-2 imagery.</p><figure><img alt="Dask dashboard at the end of a Sentinel-2 tile generation" src="https://cdn-images-1.medium.com/max/1024/0*vMso_dn7zJ9CSypW" /><figcaption>Dask dashboard at the end of a Sentinel-2 tile generation</figcaption></figure><p>One of the processing bits I am currently leaving out until after the facts is the conversion of imagery to COG format. Such conversion will be included within the product generation stack in the next release, and be optional, albeit it will be the default behavior.</p><p>Among other benefits, COGs have internal overviews, internal tiling, and support optional compression. I cannot overstate the improvement in data accessibility that is provided by the use of the COG format!</p><p>It’s worth mentioning that I am able to convert to COG after the facts without incurring request and data transfer costs because I am using the storage facility provided by <a href="https://sa.catapult.org.uk/facilities/climate-environment-and-monitoring-from-space-cems/">Climate, Environment and Monitoring from Space</a> (CEMS). In fact, CEMS’ storage facility provides the familiar S3 interface, without the costs associated with requests and data transfer typical of public cloud vendors.</p><p>The conversion to COG format is handled by <a href="https://github.com/cogeotiff/rio-cogeo">rio-cogeo</a>, a creation and validation plugin for Rasterio. Although I would refer readers to the rio-cogeo documentation for a comprehensive overview of its capabilities and options, here’s an example that shows how simple it is to install and use it for improving data accessibility:</p><pre>pip install rio-cogeo</pre><pre>rio cogeo create mydataset_in.tif mydataset_cog.tif --co PREDICTOR=2 --co ZLEVEL=9 --cog-profile deflate --overview-level 5 --overview-resampling average</pre><p>Note: Default profiles in rio-cogeo are tiled with 512x512 blocksizes and use pixel interleave, which is what we want to have so there’s no need to specify them as extra options at this time.</p><p>Finally, I should comment on the fact that the product generation stack uses a Kubernetes Job, with automatic cleanup. For the details readers might want to check the deployment <a href="https://github.com/SatelliteApplicationsCatapult/odc-product-docker-images/blob/master/k8s/README.md">README.md</a> but, in short, Job resources are automatically cleaned up using a <a href="https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#ttl-mechanism-for-finished-jobs">TTL mechanism</a>, which is still an alpha feature in Kubernetes and therefore needs to be enabled manually within the kube-apiserver and kube-controller-manager.</p><h3>What next</h3><p>Obviously I am going to work at a Helm chart next, so that users will be able to deploy the product generation stack with Helm directly.</p><h3>Conclusions</h3><p>The combination of the Open Data Cube and Dask on a Kubernetes cluster provides a quite effective workflow for the generation of derived products, such as annual geometric median surface reflectance imagery. What is more important is that the process can be automated using Kubernetes controllers for both generation and cleanup. Furthermore, Cloud Optimized GeoTIFFs make data extremely accessible while also reducing storage requirements and access requests.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bcc4e654f17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opendatacube/satellite-imagery-product-generation-using-the-open-data-cube-and-dask-within-a-kubernetes-platform-3bcc4e654f17">Satellite imagery product generation using the Open Data Cube and Dask within a Kubernetes platform</a> was originally published in <a href="https://medium.com/opendatacube">OpenDataCube</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Displaying extents for Open Data Cube dataset that span the anti-meridian]]></title>
            <link>https://medium.com/opendatacube/displaying-extents-for-open-data-cube-dataset-that-span-the-anti-meridian-14b8c9c98629?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/14b8c9c98629</guid>
            <category><![CDATA[leaflet]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[open-data-cube]]></category>
            <category><![CDATA[antimeridian]]></category>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Tue, 25 Feb 2020 00:34:15 GMT</pubDate>
            <atom:updated>2020-02-25T17:45:17.679Z</atom:updated>
            <content:encoded><![CDATA[<h3>Displaying extents for Open Data Cube datasets that span the anti-meridian</h3><p>At the Satellite Applications Catapult we’ve been working with satellite data covering Fijian islands accessible through our ODC Hub instance. One of the common problems when working with earth observations around Fiji is the presence of the date line, a.k.a. anti-meridian.</p><p>A while back <a href="https://github.com/opendatacube/odc-tools/issues/17">I had reported an issue</a> with the “show_dataset()” method of the “odc-ui” package, which is really caused by the longitude discontinuity at the anti-meridian when using EPSG:4326 (which is what leaflet uses). See for yourself if you can spot what’s not quite right:</p><figure><img alt="Issue displaying dataset outlines when datasets span the anti-meridian" src="https://cdn-images-1.medium.com/max/1024/0*h2biTuNAAe27nthY.png" /><figcaption>Issue displaying dataset outlines when datasets span the anti-meridian</figcaption></figure><p>This evening I was tinkering with the code within the “odc-tools” repository and I came up with a workaround that leverages the fact leaflet does happily work with longitude values greater than 180 degrees. In fact, if you try the “select_on_a_map()” method in “odc-ui” and draw a shape that spans the anti-meridian, depending on your current position you might end up with longitude values greater than 180 degrees:</p><figure><img alt="Selecting a region on a map with leaflet can result in longitude values greater than 180 degrees" src="https://cdn-images-1.medium.com/max/1024/1*Ow0_IzoIV-hZVC9fjL-j3g.png" /><figcaption>Selecting a region on a map with leaflet can result in longitude values greater than 180 degrees</figcaption></figure><p>Here’s the result of my workaround (yes, we have added a few more datasets in the meantime):</p><figure><img alt="Correctly displaying dataset outlines when datasets span the anti-meridian" src="https://cdn-images-1.medium.com/max/1024/1*MjNWa60guW98iPWpz1DUMw.png" /><figcaption>Correctly displaying dataset outlines when datasets span the anti-meridian</figcaption></figure><p>The code is available in my GitHub repo for the ODC Hub <a href="https://github.com/luigidifraia/jupyterhub-platform-tutorials/tree/master/datacube/examples/notebooks/misc">here</a>.</p><p>What is essentially happening is that I am automatically moving the longitude discontinuity further East to where there’s no acquisition. As long as a latitude value exists that does not have datasets spanning across it, the workaround will produce correct results.</p><h3>Conclusions</h3><p>Although it might feel like an abuse of coordinate standards, at least there’s some sort of internal consistency using longitude values greater than 180 degrees with leaflet.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14b8c9c98629" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opendatacube/displaying-extents-for-open-data-cube-dataset-that-span-the-anti-meridian-14b8c9c98629">Displaying extents for Open Data Cube dataset that span the anti-meridian</a> was originally published in <a href="https://medium.com/opendatacube">OpenDataCube</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding support for medians over Dask arrays to the Data Cube Utilities]]></title>
            <link>https://medium.com/opendatacube/adding-support-for-medians-over-dask-arrays-to-the-data-cube-utilities-7cb7faeae2?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cb7faeae2</guid>
            <category><![CDATA[earth-observation]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[dask]]></category>
            <category><![CDATA[open-data-cube]]></category>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Sun, 03 Nov 2019 19:19:49 GMT</pubDate>
            <atom:updated>2019-11-03T20:22:45.744Z</atom:updated>
            <content:encoded><![CDATA[<p>A while back, I commented on how it was <a href="https://medium.com/@luigidifraia/running-dcal-applications-with-dask-ef677b8c6824">not possible to run DCAL applications leveraging Dask</a> as trying to do so resulted in the following error:</p><blockquote>NotImplementedError: median is not yet implemented on dask arrays</blockquote><p>After a while, on the <a href="https://opendatacube.slack.com/">Open Data Cube Slack channel</a>, I came across <a href="https://medium.com/@luigidifraia/testing-median-for-a-dask-backed-xarray-ef60ac213ed">Andrew Hicks’ implementation</a> of the median() function for a Dask-backed array.</p><p>What I had thought about doing was to incorporate such implementation in <a href="https://github.com/ceos-seo/data_cube_utilities">CEOS-SEO’s Data Cube Utilities</a>, so that I would be able to generate Median Mosaics over large Areas of Interest (AoIs) through familiar <a href="https://www.opendatacube.org/dcal">DCAL</a>-inspired Jupyter Notebooks, by just adding a snippet of code that creates a <a href="https://distributed.dask.org/en/latest/">Dask distributed</a> client to leverage my existing Dask cluster.<br>In fact, I am of the opinion that using DCAL as the starting point for further development is a reasonable proposition, especially for those who are making their first steps with the <a href="https://www.opendatacube.org/">Open Data Cube</a>. The sheer amount of useful CEOS-SEO utilities DCAL leverages and the overall “polished” look of DCAL Notebooks themselves feel like an optimal combination for new users.</p><p>I recently forked the Data Cube Utilities repo on GitHub and implemented the change <a href="https://www.opendatacube.org/dcal">in my own fork</a>. I also raised a <a href="https://github.com/ceos-seo/data_cube_utilities/pull/6">pull request</a> for review by CEOS-SEO developers.</p><p>What I am now able to do is generate Median Mosaics over large AoIs through familiar DCAL-inspired Notebooks, such as the one below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tA6E9xmcKgzxGU_12CTsCg.png" /><figcaption>DCAL inspired Notebook to generate a Median Mosaic using a Dask Cluster</figcaption></figure><p>You might have noticed from the screenshot above that I am now using <a href="https://github.com/dask/dask-labextension">Dask JupyterLab Extension</a>, which gives me insights on my Dask cluster from within Jupyter Lab. I am extremely grateful to the Dask community for such a useful extension.</p><p>Until now, if I wanted to create the same sort of Median Mosaics at scale, I had to use <a href="https://github.com/luigidifraia/jupyterhub-platform-tutorials/tree/master/datacube/examples/notebooks/dask-distributed">my own set of 0-dependency Notebooks</a> in which I am, as example, filtering out clouds without relying on any external utilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*nOGWfSKyrQ5Fmgkyi1QMSA.png" /><figcaption>Previous approach for creating Median Mosaics without using external utilities</figcaption></figure><h3>Conclusions</h3><p>Extending the Data Cube Utilities to support median calculations over a Dask-backed array means that I can now turn to a familiar set of Notebooks, DCAL, for calculating Median Mosaics at scale, where in the past I had to rely on my own standalone Notebooks to do so.</p><p>It’s true that Dask is quite <em>effective</em> in providing an avenue to scale analysis of Earth Observation data horizontally, however it feels like it might be a bit of a learning curve before the use of Dask can be optimized <em>efficiently</em>.<br>As example, in my Median Mosaic calculation there’s the possibility to <a href="https://examples.dask.org/array.html#Persist-data-in-memory">persist Datasets</a> (imagery and clean mask) to speed up calculations that might follow the generation of a Median Mosaic.<br>When is the trade-off worth or even possible? The answer is, quite predictably, dependent on the particular application domain and data volumes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cb7faeae2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opendatacube/adding-support-for-medians-over-dask-arrays-to-the-data-cube-utilities-7cb7faeae2">Adding support for medians over Dask arrays to the Data Cube Utilities</a> was originally published in <a href="https://medium.com/opendatacube">OpenDataCube</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Announcing the official Helm chart repository for SAC]]></title>
            <link>https://medium.com/@luigidifraia/announcing-the-official-helm-chart-repository-for-sac-a8c5196d1af7?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8c5196d1af7</guid>
            <category><![CDATA[helm-chart]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[github-pages]]></category>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Fri, 20 Sep 2019 18:54:40 GMT</pubDate>
            <atom:updated>2019-09-20T18:54:40.381Z</atom:updated>
            <content:encoded><![CDATA[<p>I am excited to announce that I’ve just finished setting up <a href="https://pages.github.com/">GitHub Pages</a> for the <a href="https://sa.catapult.org.uk/">Satellite Applications Catapult</a>, currently hosting our <a href="https://satelliteapplicationscatapult.github.io/helm-charts/">Helm chart repository</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*vi6Wx5P9QQf54PyFVsU4aA.png" /><figcaption>Kubernetes and Helm charts: a powerful duo for deploying packaged solutions</figcaption></figure><p>The way users can leverage our Helm charts for Kubernetes is quite simple. First it is convenient to let Helm know about our chart repository so that our charts can be installed without having to pass full URLs:</p><pre>helm repo add satapps <a href="https://satelliteapplicationscatapult.github.io/helm-charts">https://satelliteapplicationscatapult.github.io/helm-charts</a></pre><pre>helm repo update</pre><p>At the moment, our <a href="https://github.com/SatelliteApplicationsCatapult/helm-charts/tree/master/stable/ard-campaign">ARD processing campaign</a> chart is the only chart available:</p><pre>helm search satapps</pre><pre>NAME                    CHART VERSION   APP VERSION     DESCRIPTION<br>satapps/ard-campaign    0.2.0           0.5.0           A Helm chart for deploying ARD processing campaigns with Kubernetes</pre><p>We’ve been using this chart within our <a href="https://aws.amazon.com/eks/">AWS EKS</a> cluster, provisioned using <a href="https://spotinst.com/products/ocean/">Spotinst Ocean</a>. Taking advantage of EC2 Spot Instances we have so far generated 1000+ Sentinel-2 COG datasets, ready to be indexed in our <a href="https://github.com/SatelliteApplicationsCatapult/jupyterhub-platform-tutorials/tree/master/datacube">Open Data Cube</a> Hub.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8c5196d1af7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes in production: monitoring metrics]]></title>
            <link>https://medium.com/@luigidifraia/kubernetes-in-production-monitoring-metrics-cb7ae4e40b4f?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb7ae4e40b4f</guid>
            <category><![CDATA[open-data-cube]]></category>
            <category><![CDATA[helm-chart]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[analysis-ready-data]]></category>
            <category><![CDATA[prometheus-operator]]></category>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 18:17:55 GMT</pubDate>
            <atom:updated>2019-09-18T10:12:42.808Z</atom:updated>
            <content:encoded><![CDATA[<p>At the <a href="https://sa.catapult.org.uk/">Satellite Applications Catapult</a> we’re once again running an <a href="https://github.com/SatelliteApplicationsCatapult/helm-charts/tree/master/stable/ard-campaign">ARD processing campaign</a> in AWS EKS, using Spot Instances. Spotinst’s Ocean service for EKS has opportunistically chosen an EC2 “m5.large” instance for our current load. However, since the Spotinst Web UI is not (yet) collecting metrics for custom namespaces, I decided to use Metrics-Server and Prometheus to query such metrics, so that we can get a good feel of resource utilization.</p><h3>Monitoring Resource Metrics with Metrics-Server</h3><p>Metrics-server allows users to query resource metrics using kubectl right from the command line.<br>Its installation is pretty straightforward:</p><pre>git clone <a href="https://github.com/kubernetes-incubator/metrics-server.git">https://github.com/kubernetes-incubator/metrics-server.git</a></pre><pre>kubectl apply -f metrics-server/deploy/1.8+/</pre><p>Now we can query resource metrics using kubectl from the command line. It makes sense to start by getting the CPU and memory usage for individual nodes:</p><pre>kubectl top node</pre><pre>NAME                                           CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%<br>ip-192-168-167-86.eu-west-2.compute.internal   1998m        99%    3163Mi          41%</pre><p>We can then have a look at resource usage per pod within our ARD processing namespace:</p><pre>kubectl top pod --namespace=$NAMESPACE --containers</pre><pre>POD                               NAME           CPU(cores)   MEMORY(bytes)<br>redis-master-0                    redis          4m           4Mi<br>s2job-ard-campaign-worker-bgfv4   ard-campaign   634m         1014Mi<br>s2job-ard-campaign-worker-sp4p8   ard-campaign   593m         979Mi<br>s2job-ard-campaign-worker-vbw9s   ard-campaign   617m         979Mi</pre><p>We can also get metrics in a raw format, e.g.:</p><pre>kubectl get --raw &quot;/apis/metrics.k8s.io/v1beta1/nodes&quot; | jq .</pre><pre>{<br>  &quot;kind&quot;: &quot;NodeMetricsList&quot;,<br>  &quot;apiVersion&quot;: &quot;metrics.k8s.io/v1beta1&quot;,<br>  &quot;metadata&quot;: {<br>    &quot;selfLink&quot;: &quot;/apis/metrics.k8s.io/v1beta1/nodes&quot;<br>  },<br>  &quot;items&quot;: [<br>    {<br>      &quot;metadata&quot;: {<br>        &quot;name&quot;: &quot;ip-192-168-167-86.eu-west-2.compute.internal&quot;,<br>        &quot;selfLink&quot;: &quot;/apis/metrics.k8s.io/v1beta1/nodes/ip-192-168-167-86.eu-west-2.compute.internal&quot;,<br>        &quot;creationTimestamp&quot;: &quot;2019-09-17T17:41:46Z&quot;<br>      },<br>      &quot;timestamp&quot;: &quot;2019-09-17T17:41:37Z&quot;,<br>      &quot;window&quot;: &quot;30s&quot;,<br>      &quot;usage&quot;: {<br>        &quot;cpu&quot;: &quot;1995335854n&quot;,<br>        &quot;memory&quot;: &quot;3546020Ki&quot;<br>      }<br>    }<br>  ]<br>}</pre><h3>Monitoring Resource Metrics with Prometheus</h3><p>Prometheus has become a favorite resource monitoring tool among DevOps. We can install it using Helm and the Prometheus Operator. The Prometheus Operator is a Kubernetes-specific project that makes it simple to set up and configure Prometheus for Kubernetes clusters.<br>We can install the Prometheus Operator with:</p><pre>helm install --name prometheus stable/prometheus-operator \<br>  --namespace monitoring</pre><p>Once the Prometheus Operator is installed, we can forward requests to the Prometheus server pod from our local machine:</p><pre>kubectl port-forward -n monitoring \<br>  prometheus-prometheus-prometheus-oper-prometheus-0 9090:9090</pre><p>Access to the Prometheus dashboard is possible by navigating to <a href="http://127.0.0.1:9090/">http://127.0.0.1:9090</a>. However, if you run kubectl within a Linux installation without a Desktop as I do, then you have no use for this port forwarding as it is.</p><p>If you run CentOS 7 or similar, you can forward traffic from a physical network interface to the loopback one with e.g.:</p><pre>sudo firewall-cmd --permanent --direct \<br>  --add-rule ipv4 nat OUTPUT 0 -p tcp -o lo \<br>  --dport 9090 -j REDIRECT --to-ports 9090</pre><pre>sudo firewall-cmd --zone=public --add-port=9090/tcp --permanent</pre><pre>sudo firewall-cmd --reload</pre><pre>sudo sysctl -w net.ipv4.conf.eno16780032.route_localnet=1</pre><p>In the above example “eno16780032” is the physical network interface I access my server through: replace it as appropriate for your setup.</p><p>For Ubuntu or similar, the above would be accomplished with e.g.:</p><pre>sudo iptables -t nat -I PREROUTING -p tcp -d 10.21.12.10/24 --dport 9090 -j DNAT --to-destination 127.0.0.1:9090</pre><pre>sudo iptables -A INPUT -p tcp --dport 9090 -m comment --comment &quot;Prometheus dashboard&quot; -j ACCEPT</pre><pre>sudo sysctl -w net.ipv4.conf.ens192.route_localnet=1</pre><p>After the above redirection is in place, I am able to access the dashboard by navigating to <a href="http://10.21.12.10:9090/">http://10.21.12.10:9090</a>, 10.21.12.10 being the IP address of the server where I installed and configured kubectl for interacting with my EKS cluster.<br>Note: this is also a convenient route into your cluster’s VPC from within your intranet, that removes the need to reserve, and pay for, a public IP address with AWS. Such route is only recommended for lightweight traffic to a management dashboard or similar!</p><p>I won’t provide a comprehensive set of metrics that I am looking at, but as the top command is showing that memory utilization on our Kubernetes node is quite high on average, let’s have a look at how it changes over time:</p><pre>sum(container_memory_usage_bytes{container_name!=&quot;&quot;}) / :node_memory_MemTotal_bytes:sum * 100</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXx1NRRlxyW-3egBL9K4KQ.png" /><figcaption>Memory usage for all Pods within the Kubernetes cluster</figcaption></figure><p>The following query confirms that the bulk of memory utilization is claimed by the ARD processing campaign:</p><pre>sum(container_memory_usage_bytes{container_name=&quot;ard-campaign&quot;}) / :node_memory_MemTotal_bytes:sum * 100</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HxKQRdLFGvyF6K51Qe92gA.png" /><figcaption>Memory usage for Pods part of the ard-campaign</figcaption></figure><h3>Conclusions</h3><p>Monitoring Kubernetes is important in the context of resource utilization and cost control. Kubernetes’ Metrics-Server and Prometheus are a quite comprehensive set of tools for monitoring clusters and getting useful insights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb7ae4e40b4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Median calculations with a Dask-backed xarray of Sentinel-2 data]]></title>
            <link>https://medium.com/@luigidifraia/median-calculations-with-a-dask-backed-xarray-of-sentinel-2-data-47212b6cc3d1?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/47212b6cc3d1</guid>
            <category><![CDATA[open-data-cube]]></category>
            <category><![CDATA[sentinel-2]]></category>
            <category><![CDATA[landsat8]]></category>
            <category><![CDATA[jupyterhub]]></category>
            <category><![CDATA[analysis-ready-data]]></category>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Thu, 12 Sep 2019 14:56:20 GMT</pubDate>
            <atom:updated>2019-09-12T14:56:20.618Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@luigidifraia/testing-median-for-a-dask-backed-xarray-ef60ac213ed">A few weeks ago</a> I was testing the median() method implemented by Andrew Hicks that he had shared as a <a href="https://gist.github.com/andrewdhicks/d89849997453cdfad6fa568816ca7160">gist</a>.<br>At the time I only had Landsat 8 ARD to work with, but after we completed the indexing of Sentinel-2 data over Fiji at the <a href="https://sa.catapult.org.uk/">Satellite Application Catapult</a>, I decided to run a median for Suva at the full Sentinel-2 resolution.</p><p>Here’s a screenshot of the result:</p><figure><img alt="Cloud-free median of Suva using Sentinel-2 analysis ready data" src="https://cdn-images-1.medium.com/max/1024/1*IZIlrL8TSBeONSLiBXPuWQ.png" /><figcaption>Cloud-free median of Suva using Sentinel-2 analysis ready data</figcaption></figure><p>Rather impressive detail, although the quality of cloud masking data remains a concern for the data we are working with.</p><p>The large area I was working with, at full Sentinel-2 resolution, meant that the RAM consumption across our Dask cluster was an order of magnitude bigger than what I experienced for Landsat 8:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ZfDLXb_T29Sr2Eji2l_qw.png" /><figcaption>Dask dashboard during the Sentinel-2 median calculation over Suva</figcaption></figure><p>For comparison, here’s a screenshot of the median I had generated over the capital city of Suva using Landsat-8 ARD:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hg-kOgiWlPGE0QdEYxU4g.png" /><figcaption>Cloud-free median of Suva using Landsat 8 analysis ready data</figcaption></figure><h3>Conclusions</h3><p>Using a Dask cluster and lazy arrays proves to be greatly useful for generating derived products such as medians. Of course, a big shout out goes to Andrew for sharing his implementation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47212b6cc3d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ARD processing with AWS Spot instances simplified]]></title>
            <link>https://medium.com/opendatacube/ard-processing-with-aws-spot-instances-simplified-3ccbc0fcc153?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ccbc0fcc153</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[analysis-ready-data]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[helm-chart]]></category>
            <category><![CDATA[spotinst]]></category>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Mon, 09 Sep 2019 14:52:06 GMT</pubDate>
            <atom:updated>2019-09-13T07:54:48.770Z</atom:updated>
            <content:encoded><![CDATA[<p>At the <a href="https://sa.catapult.org.uk/">Satellite Applications Catapult</a> we are looking at an uncomplicated ARD processing workflow that can be scaled horizontally.</p><p>Kubernetes is a technology we are investing in, so it’s not surprising that we decided to run a Kubernetes Job with multiple parallel worker Pods: as each Pod is created, it picks up one unit of work from a task queue, processes it, and repeats until the end of the queue is reached.</p><p>I am not keen on using cloud-vendor-specific queue technologies, so I opted for using <a href="https://redis.io/">Redis</a> as storage service to hold the work queue and store our work items: each work item represents one scene to be processed through an ARD workflow. In practice, we set up Redis just once and reuse it for the work queues of multiple job types.</p><p>A Sentinel-2 work item is added to the queue with e.g.:</p><pre>rpush jobS2 &#39;{&quot;in_scene&quot;: &quot;S2A_MSIL2A_20190812T235741_N0213_R030_T56LRR_20190813T014708&quot;,   &quot;s3_bucket&quot;: &quot;public-eo-data&quot;, &quot;s3_dir&quot;: &quot;fiji/Sentinel_2/&quot;}&#39;</pre><h3>Helm</h3><p>If you’ve been following my series on the “ODC Sandbox”, you might remember how I set it up with just <a href="https://medium.com/@luigidifraia/open-data-cube-jupyterhub-in-three-helms-4015b1f6b44b">three Helm commands</a>, so you probably won’t be surprised to know that I did set up our ARD processing framework with just two Helm commands.<br>In fact, one Helm command is used to deploy a Redis Master server, using the <a href="https://github.com/helm/charts/tree/master/stable/redis">community-curated Chart for Redis</a>:</p><pre>NAMESPACE=ard<br><br>RELEASEREDIS=redis<br><br>helm upgrade --install $RELEASEREDIS stable/redis \<br>  --namespace $NAMESPACE \<br>  --version=9.1.3 \<br>  --values values-redis.yaml</pre><p>Another Helm command is used to deploy workers using a custom Helm Chart I wrote specifically for this purpose:</p><pre>RELEASEARD=s2job<br><br>helm upgrade --install $RELEASEARD stable/ard-campaign \<br>  --namespace $NAMESPACE \<br>  --values values-ard.yaml</pre><p>The repo for my own Helm Chart is available on GitHub <a href="https://github.com/SatelliteApplicationsCatapult/helm-charts/tree/master/stable/ard-campaign">here</a>.</p><h3>Bringing processing to data</h3><p>We’ve been running Sentinel-2 ARD processing workflows within our on-premise Kubernetes clusters for some time now. However, I decided to investigate the cost implications/savings involved in generating ARD in AWS, using <a href="https://aws.amazon.com/ec2/spot/">Spot instances</a> for <a href="https://aws.amazon.com/eks/">EKS</a>.<br>Admittedly, I always try to decouple the setup of a Kubernetes cluster from the setup of distributed applications that run therein, so I have been looking for services that would simplify the former, particularly ensuring that we can benefit from the cost savings associated with running AWS Spot instances.</p><h3>Spotinst Ocean</h3><p>During my research I came across <a href="https://spotinst.com/">Spotinst</a>. Spotinst are an AWS Advanced Technology Partner that have been focusing on cost optimizing AWS customers’ workloads with Spot instances for years. The other good news is that Spotinst provide a free tier to experiment with (up to 20 Kubernetes worker nodes under management).<br>In particular, they offer a solution called <a href="https://spotinst.com/products/ocean">Ocean</a> that is a huge advantage when it comes to cost-optimizing Kubernetes workloads. Quoting from their website:</p><blockquote>Serverless Containers</blockquote><blockquote>Spotinst Ocean lets you deploy Containers without worrying about infrastructure management while gaining deep visibility and dramatically optimizing costs.</blockquote><blockquote>No VMs or Clusters to manage</blockquote><blockquote>Ocean frees you from having to pick specific instance types, administering servers, and optimizing cluster utilization.</blockquote><blockquote>Auto Scaling</blockquote><blockquote>Ocean auto scales based on your Containers requirements. It also scales down to zero when resources are not needed.</blockquote><blockquote>Save up to 90% on your compute costs</blockquote><blockquote>Spotinst Ocean makes use of proprietary price prediction technology to deploy reliably onto Spot Instances. By predicting price fluctuations Ocean is able to offensively rebalance clusters to prevent interruption. At scale price prediction provides for near on-demand availability.</blockquote><p>After setting up my first EKS cluster through Ocean in just a few minutes, I rolled out the ARD workflow deployment for Sentinel-2 imagery in the very same way I deploy it on-premise: with just two Helm commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTizyVEOUH_4vogGvwjuXg.png" /><figcaption>Spotinst Ocean: cloud cluster management UI</figcaption></figure><p>I was quite pleased with the default setup too. As example, the underlying CloudFormation material created by Ocean did not set up any (paid for) public IP address for my Kubernetes cluster, which is perfect as our workers are headless and don’t require user access for anything else but logs, which can be inspected using kubectl directly.</p><h3>Conclusions</h3><p>I believe it’s very likely that cloud providers and their technology partners will provide increasingly easier ways to setup and manage Kubernetes clusters, as it is already the case with Spotinst Ocean. For this reason I also believe that, more than ever, it is sensible to decouple cluster setup material from application setup material.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ccbc0fcc153" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opendatacube/ard-processing-with-aws-spot-instances-simplified-3ccbc0fcc153">ARD processing with AWS Spot instances simplified</a> was originally published in <a href="https://medium.com/opendatacube">OpenDataCube</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dumping Action Replay cartridges: Success]]></title>
            <link>https://medium.com/@luigidifraia/dumping-action-replay-cartridges-success-c9f6ada3820d?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9f6ada3820d</guid>
            <category><![CDATA[commodore-64]]></category>
            <category><![CDATA[8-bit]]></category>
            <category><![CDATA[cartridges]]></category>
            <category><![CDATA[retrocomputing]]></category>
            <category><![CDATA[preservation]]></category>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Mon, 29 Jul 2019 19:06:01 GMT</pubDate>
            <atom:updated>2019-07-29T19:06:01.898Z</atom:updated>
            <content:encoded><![CDATA[<p>Another end-to-end test for my C=64 Cartridge Dumper project, dumping my own copy of Action Replay 6:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSFXfz29wZjA%3Ffeature%3Doembed%26rel%3D0&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSFXfz29wZjA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSFXfz29wZjA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/db3486ac900876487a09509c8c7e5744/href">https://medium.com/media/db3486ac900876487a09509c8c7e5744/href</a></iframe><p>Stay tuned for more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9f6ada3820d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dumping Ocean cartridges: Success]]></title>
            <link>https://medium.com/@luigidifraia/dumping-ocean-cartridges-success-578360f09041?source=rss-ec554a153736------2</link>
            <guid isPermaLink="false">https://medium.com/p/578360f09041</guid>
            <category><![CDATA[8-bit]]></category>
            <category><![CDATA[commodore-64]]></category>
            <category><![CDATA[preservation]]></category>
            <category><![CDATA[retrocomputing]]></category>
            <category><![CDATA[cartridges]]></category>
            <dc:creator><![CDATA[Luigi Di Fraia]]></dc:creator>
            <pubDate>Sat, 27 Jul 2019 15:04:32 GMT</pubDate>
            <atom:updated>2019-07-27T15:05:09.956Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I finished the latest changes to my C=64 Cartridge dumper, which looks as per below:</p><figure><img alt="C64CartDumper — Robocop 2" src="https://cdn-images-1.medium.com/max/816/1*IDpgoXLwgvvexb_rZSPAug.jpeg" /></figure><p>I then went for an end-to-end test, dumping my own copy of Robocop 2:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FoSuifjLVT6c%3Ffeature%3Doembed%26rel%3D0&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DoSuifjLVT6c&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FoSuifjLVT6c%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a682e983b80768c400ee8de31deed30c/href">https://medium.com/media/a682e983b80768c400ee8de31deed30c/href</a></iframe><p>Not only the game appears to work fine, but the binary data checks perfectly with an online version of the cartridge I found previosuly:</p><pre>&gt;cartconv.exe -t bin -i &quot;Robocop 2 (1990)(Ocean Software).crt&quot; -o &quot;Robocop 2 (1990)(Ocean Software).bin&quot;<br>Input file : Robocop 2 (1990)(Ocean Software).crt<br>Output file : Robocop 2 (1990)(Ocean Software).bin<br>Conversion from Ocean .crt to binary format successful.<br><br>&gt;sum *.bin<br>41242   256 Robocop 2 (1990)(Ocean Software).bin<br>41242   256 output.bin</pre><p>Thanks go to <a href="http://www.c64-wiki.de/">http://www.c64-wiki.de</a> for their schematic diagram of Robocop 2’s cartridge (<a href="https://www.c64-wiki.de/wiki/RoboCop_2">https://www.c64-wiki.de/wiki/RoboCop_2</a>) and to Sönke Smiletzki for offering to fund the acquisition of the cartridge.</p><p>Stay tuned for more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=578360f09041" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>