Shadow Finder
To analyse shadows in source imagery, Shadow Finder maps all points on the earth where a shadow of given length could occur at a given date & time, IF the height of the object casting it is known.
URL
https://colab.research.google.com/github/Bellingcat/ShadowFinder/blob/main/ShadowFinderColab.ipynb
Description
Temporary Workaround in Place: Work is underway to update one of this open source tool's dependencies in the GitHub repository where it is stored. A quick workaround is described there to ensure that the tool works fine in the interim. Shadow Finder is available and working during this period.
Enter shadow length and object height, (or, instead, ) for a research source image, then also the date and time of the image, and see the potential locations at which such a shadow could be created for that point in time as the bright area (circle) on the world map.
The bright yellow area of the circle marks all the locations which perfectly match your input information.
The purple areas of the circle mark locations within a 20% error band (included because your input information may not be perfectly measured).
The grey area shows the parts of the world in daylight.
The white area shows where the sun is below the horizon.
Accuracy of your input measurements affects the size of the matching output area. A small output area is usually desirable for a researcher, since it reduces the search space of a geolocation.
Note that the tool can be used to consider a range of inputs if the exact values are not known, since the outputs vary relatively smoothly with changes in input values.
Shadow Finder needs the date and time of the source image containing the shadow to be able to generate potential locations. This is not always available, particularly as social media sites usually remove this type of metadata (called ) before allowing an image to be posted. Researchers also need to be aware that the time and date an image is posted online is not often the same as when it was taken. HOWEVER Shadow Finder may still be useful as a "What If?" tool to exclude potential locations.
Using an object's height and the length of its shadow (or the angle to the sun) with the date and the time, the Shadow Finder code estimates the possible locations of that shadow. It plots all the possible locations (there will almost always be very many possibilities) on a world map as a bright line.
The length of the shadow fed into Shadow Finder can only be measured directly from the image if the camera is at right angles to the shadow. If not, calculations/adjustments will need to be made to correct for any other camera perspective.
The Interface
Click the two tabs below to see the different views presented to the user as they find Shadow Finder on the GitHub website (Tab 1) and then run it in Colab (Tab 2):
The first tab above (GitHub Page tab) shows what the Shadow Finder page looks like on GitHub, before running in Colab.
The second tab above (Click on the COLAB INTERFACE tab) shows the Colab interface which will appear after the user Runs Shadow Finder in Colab using the Orange Button.
Shadow Finder for Open Source Research: Use Cases, Data Input, Shadow Finder Outputs, How to Enter Data... (Click each of the four tabs for more detail)
Date
Time
EITHER
Object and Shadow lengths
OR
Angle of sun elevation
The output map appears at the bottom of the page when Shadow Finder code has been run in Colab. Compare the Shadow Finder output for a given date and time with a map showing the world's daylight, darkness and sun and moon positions for the same point in time, shown below:
The two representations concur on the daylight distribution and sun position for the same time and date shown:
The centre of the world map is in daylight on both maps, with either side in darkness over the Pacific Ocean and (roughly) the Arctic Circle.
The sun is above the Atlantic Ocean to the west of Central Africa in both maps, with the locus of the Shadow Finder map centering on the location of the sun in the "Time and Date" website map.
Cost
Level of difficulty
Data input is remarkably simple, as is running the tool if the user is familiar with GitHub. There is some theoretical understanding of the relationship between sun position, date and time required to use the tool effectively.
Requirements
GitHub code such as Shadow Finder requires a GitHub account so that a user can log in to access and run the code.
Limitations
Shadow Finder cannot find possible location points of a shadow from its length alone: the height of the object casting the shadow must also be known (or the elevation angle of the sun).

Shadow Finder does not provide the direction of the sun (azimuth angle) at each potential location for the given date, time and elevation angle of the sun. This would only be useful if it was possible to establish the orientation of the source imagery to allow confirmation.

Guides and articles
Tool provider
Bellingcat is the provider of this tool, authored by Galen Reich, Bellingcat Tech Community Facilitator, Jordan Gillard, Thomas Ellmenreich and Boris Nezlobin.
Advertising Trackers
Sophie Tedling
Last updated
Was this helpful?