Skip to content

Reading NASA SRTM files and representing them with Apple Scenekit

Notifications You must be signed in to change notification settings

apfernandes/NASA-SRTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NASA-SRTM

Reading NASA SRTM files and representing them with Apple Scenekit

I have always been a fan of the Space Shuttle missions and fascinated by the Shuttle Radar Topography Mission (SRTM)

https://www2.jpl.nasa.gov/srtm/

I will try to gather and explain some of the code that I have produced to represent the data from those missions.

It still blows my mind that one can have access to land elevation data for almost all of the Earth and represent that information in 3D on a mobile phone.

Following is a sample image.

Earth Globe

Data is available in different resolutions. Below is a map representation of the different tiles for the 30 arc-seconds file format.

30 arc-seconds files represent land elevation for areas aproximately 1 km.

World Map

30 arc-seconds means we should have 2 samples per minute = 120 samples per degree

So, for example, from w060n90 to w020n90 we should have 40 degrees * 120 samples = 4800 samples.

From w020n90 to w020n40 we should have 50 degrees * 120 samples = 6000 samples.

Total number of samples = 3600 * 6000 = 28 800 000 @ 2 bytes per sample => 57 600 000

The list below shows the files that can be downloaded

-rwxrwxrwx@  1 pfernandes  staff  57600000 May  7  2021 E020N40.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 E020N90.DEM
-rwxrwxrwx@  1 pfernandes  staff  57600000 Feb  2  2006 E020S10.DEM

-rwxrwxrwx@  1 pfernandes  staff  57600000 May  7  2021 E060N40.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 E060N90.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 E060S10.DEM

-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 E100N40.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 E100N90.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 E100S10.DEM

-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 E140N40.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 E140N90.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 E140S10.DEM

-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W020N40.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W020N90.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W020S10.DEM

-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W060N40.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W060N90.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W060S10.DEM

-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W100N40.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W100N90.DEM
-rwxrwxrwx@  1 pfernandes  staff  57600000 Feb  2  2006 W100S10.DEM

-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W140N40.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W140N90.DEM
-rw-r--r--@  1 pfernandes  staff  57600000 Feb  2  2006 W180N90.DEM
      

To download the files you will have to register on the website

https://search.earthdata.nasa.gov/search

Search for srtm 30 dem as shown in the below image and to download the files

Earth Data

We will be using iOS to read these files and represent them graphically.

We use an iOS Xcode project without Storyboard (https://github.com/apfernandes/storyboard-less)

About

Reading NASA SRTM files and representing them with Apple Scenekit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published