Satellite Image Analysis FAQ: Can I Use R to Analyze Satellite Images?

Estimated time:
time
min

<span data-preserver-spaces="true">Analyzing satellite images isn't exclusively reserved for governments and large corporations. At <a href="https://appsilon.com/computer-vision/" target="_blank" rel="noopener noreferrer">Appsilon</a>, we've spent countless hours working and even </span><a class="editor-rtfLink" href="https://wordpress.appsilon.com/tag/satellite-imagery/" target="_blank" rel="noopener noreferrer"><span data-preserver-spaces="true">writing</span></a><span data-preserver-spaces="true"> about analyzing these types of images. As the quality, quantity, and accessibility of satellite images improves, there are more and more satellite image datasets readily available. As a result, interest in satellite imagery analysis (particularly as it relates to deep learning) is at an all-time high.</span> <span data-preserver-spaces="true">To address some of the most common questions our team receives, we decided to write an article in an FAQ format. Some of the answers here might surprise you.</span> <blockquote><span data-preserver-spaces="true">Interested in ways to acquire satellite image datasets? </span><a class="editor-rtfLink" href="https://wordpress.appsilon.com/how-to-acquire-large-satellite-image-datasets-for-machine-learning-projects/" target="_blank" rel="noopener noreferrer"><span data-preserver-spaces="true">Please read our complete guide.</span></a></blockquote> This FAQ addresses the following questions: <ul><li><a href="#question-1">How do satellites take pictures?</a></li><li><a href="#question-2">Do satellites collide?</a></li><li><a href="#question-3">Can I go to Space?</a></li><li><a href="#question-4">Can I use R to process satellite images?</a></li></ul> <h2 id="question-1"><span data-preserver-spaces="true">How do satellites take pictures?</span></h2> <span data-preserver-spaces="true">The answer to this question is not obvious or intuitive. Taking a picture with a satellite is not at all like taking a picture with a standard camera on the Earth's surface. </span> <span data-preserver-spaces="true">Let's illustrate with an example. This is the Sentinel-2 mission, which consists of twin satellites (Sentinel 2A and Sentinel 2B). Each satellite orbits the Earth longitudinally while the Earth spins laterally. As you can see in the image below, each satellite takes a "strip" of photos of the Earth's surface. After five days of collecting these complementary strips, they can capture the whole Earth.</span> <img class="aligncenter size-full wp-image-5844" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b021befd01060a37e084f4_001-2.webp" alt="Image from satellite" width="1198" height="748" /> <em><span data-preserver-spaces="true">What does this mean in practice?</span></em><span data-preserver-spaces="true"> If you choose any specific point on Earth, you will get a new image of that location every 5 to 7 days. </span> <img class="aligncenter size-full wp-image-5843" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b021c084ab67fae7ea75ed_002-3.webp" alt="Image from satellite" width="1245" height="699" /> <h2 id="question-2"><span data-preserver-spaces="true">Do satellites collide?</span></h2> <span data-preserver-spaces="true">More than 5700 satellites are currently orbiting the Earth. This doesn't sound like a lot, considering the large size of the Earth and the small size of your average satellite. So, the short answer is no - satellites do not collide. However, </span><strong><span data-preserver-spaces="true">they can collide</span></strong><span data-preserver-spaces="true">. </span> <span data-preserver-spaces="true">Here is a tweet from the European Space Agency after they had to perform a maneuver because two satellites were about to crash. This was a special moment because it was the </span><strong><span data-preserver-spaces="true">first time </span></strong><span data-preserver-spaces="true">a space agency had to initiate such a maneuver. </span> <img class="aligncenter size-full wp-image-5842" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b021c1e6755ca41b3173a1_003-1.webp" alt="ESA Operations" width="1250" height="366" /> <h2 id="question-3"><span data-preserver-spaces="true">Can I go to Space?</span></h2> <span data-preserver-spaces="true">This is a common question. We have good news and bad news for people who want to go to Space. The good news is that it <strong>is</strong> possible to go to the International Space Station. This is fresh news as of June 2019. NASA decided that the space station is open to private citizens if you want to visit. </span> <span data-preserver-spaces="true">However, the estimated cost of the ticket is $52M. So, needless to say, the price is prohibitive to most. </span> <blockquote class="twitter-tweet"> <p dir="ltr" lang="en">.<a href="https://twitter.com/Space_Station?ref_src=twsrc%5Etfw">@Space_Station</a> is open for commercial business! Watch <a href="https://twitter.com/Astro_Christina?ref_src=twsrc%5Etfw">@Astro_Christina</a> talk about the steps we're taking to make our orbiting laboratory accessible to all Americans. <a href="https://t.co/xLp2CpMC2x">pic.twitter.com/xLp2CpMC2x</a></p> — NASA (@NASA) <a href="https://twitter.com/NASA/status/1137000745922957313?ref_src=twsrc%5Etfw">June 7, 2019</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> <h2 id="question-4"><span data-preserver-spaces="true">Can I use R to process satellite images?</span></h2> <span data-preserver-spaces="true">In general, yes. But let's start with what shouldn't be done in R. There are two main categories: </span> <ul><li><span data-preserver-spaces="true">Data pre-processing </span></li><li><span data-preserver-spaces="true">Resource-intensive operations</span></li></ul> <span data-preserver-spaces="true">Downloading 100 images and processing them on your computer is very resource-intensive and shouldn't be done locally in R. There are platforms available that will do the pre-processing and send you small cutouts of the shapefile that you want. </span> <span data-preserver-spaces="true">There is</span><a class="editor-rtfLink" href="https://earthengine.google.com/" target="_blank" rel="noopener noreferrer"><span data-preserver-spaces="true"> Google Earth Engine</span></a><span data-preserver-spaces="true"> and Amazon Web Services (AWS), which allow you to query the API. They already have public image sets available, and you can upload your own image sets. All of this is available at your fingertips. </span> <span data-preserver-spaces="true">All you need to say is "Google, I want a set of dates for Sentinel images that cover a small square containing Loews Hotel," and you are set. From there, you choose one or more dates and ask the API to send you already cropped images, reducing the image size by hundreds of kilobytes.</span> <span data-preserver-spaces="true">This all happens quite quickly, as you're using a vast distributed infrastructure to do the calculations. Besides, you can conduct computations there and receive indicators. For example, you can receive the NDVI indicator, which is a simple, mathematical combination of the near-infrared and red channels.</span> <strong><span data-preserver-spaces="true">Where does R shine for satellite image analysis?</span></strong><span data-preserver-spaces="true"> In 3 places:</span> <ul><li><span data-preserver-spaces="true">When building dashboards - for presenting data</span></li><li><span data-preserver-spaces="true">When building statistical models</span></li><li><span data-preserver-spaces="true">When training deep learning models - by using R interfaces to Keras and H2O</span></li></ul> <span data-preserver-spaces="true">You can analyze and forecast the indicators that you have built. Operating on small images allows you to leverage many useful R packages to experiment with the data and gain valuable insights. You can also build neural networks that will help you identify objects in the images.</span> <span data-preserver-spaces="true">Here is an example of a satellite image analysis dashboard that you can build with R.</span> <img class="aligncenter size-full wp-image-5841" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b021c25b956c19cd8e566a_004.webp" alt="Dashboard in R" width="1253" height="849" /> <span data-preserver-spaces="true">By combining publicly available geospatial data for parcel shapefiles, you can draw any parcel on a map and request available dates of images for that parcel. Then you can analyze the image, indicate where crops are destroyed or where they are unhealthy.</span> <blockquote>Want to see more <a href="http://demo.appsilon.ai" target="_blank" rel="noopener noreferrer">Shiny Dashboard Examples</a>?</blockquote> <span data-preserver-spaces="true">If you need to create powerful, customizable, and interactive satellite imagery dashboards that look great and respond to user input, <a href="https://appsilon.com/shiny/" target="_blank" rel="noopener noreferrer">R Shiny</a> is a clear choice. It requires a bit of coding knowledge even for simple dashboards, but R isn't a very complicated language. You can quickly get up to speed in a couple of weeks </span><a class="editor-rtfLink" href="https://wordpress.appsilon.com/how-i-built-an-interactive-shiny-dashboard-in-2-days-without-any-experience-in-r/" target="_blank" rel="noopener noreferrer"><span data-preserver-spaces="true">or even a couple of days</span></a><span data-preserver-spaces="true">, depending on your prior knowledge of programming. </span><strong><span data-preserver-spaces="true">If you want to make a scalable enterprise Shiny dashboard, then you can always reach out to </span></strong><a class="editor-rtfLink" href="https://wordpress.appsilon.com/shiny" target="_blank" rel="noopener noreferrer"><strong><span data-preserver-spaces="true">Appsilon </span></strong></a><strong><span data-preserver-spaces="true">for help. </span></strong><span data-preserver-spaces="true">We're continually pushing the limits of what's possible with Shiny, and we'd be happy to guide you and your company.</span> <h2><span data-preserver-spaces="true">Learn more</span></h2><ul><li><a class="editor-rtfLink" href="https://wordpress.appsilon.com/satellite-image-analysis-with-fast-ai-for-disaster-recovery/" target="_blank" rel="noopener noreferrer"><span data-preserver-spaces="true">Satellite Image Analysis with fast.ai for Disaster Recovery</span></a></li><li><a class="editor-rtfLink" href="https://wordpress.appsilon.com/satellite-imagery-generation-with-gans/" target="_blank" rel="noopener noreferrer"><span data-preserver-spaces="true">Satellite imagery generation with Generative Adversarial Networks (GANs)</span></a></li><li><a class="editor-rtfLink" href="https://wordpress.appsilon.com/deep-learning-in-satellite-imagery/" target="_blank" rel="noopener noreferrer"><span data-preserver-spaces="true">Deep learning in Satellite imagery</span></a></li></ul> <a href="https://appsilon.com/careers/#external-r-shiny-developer" target="_blank" rel="noopener noreferrer"><img class="aligncenter wp-image-5830 size-full" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b021b284ab67fae7ea6e24_Consultant_wanted_300x125v2.webp" alt="Appsilon Hiring" width="625" height="260" /></a> <p style="text-align: center;"><strong>Appsilon is hiring! See our <a href="https://appsilon.com/careers/" target="_blank" rel="noopener noreferrer">Careers</a> page for new openings.</strong></p>

Contact us!
Damian's Avatar
Damian Rodziewicz
Head of Sales
r
satellite imagery
tutorials
ai&research