Code Monkey home page Code Monkey logo

p5-data-world's Introduction

Data World

image

Earth's topography mapped to dots in 3D space by superimposing images of land and sea elevation.

How It Works

I began with two black and white images, courtesy of NASA. The first image captures land elevation and the second captures sea elevation:

Earth Topography Earth Bathymetry

For land data, the lighter the pixel, the higher the elevation, where pure white represents a max elevation of 6400 meters. For sea data, the darker the pixel, the greater the depth, where pure black is a max depth of 8000 meters.

I mapped the grayscale value (0 to 255) of land pixels to a height (0 to 6400 meters) and mapped the grayscale value of sea pixels to a depth (-8000 to 0 meters). I obtain an array of height mappings I can use to draw points in 3D space by combining the calculated depth values of each pixel.

p5-data-world's People

Contributors

ricedust avatar

Stargazers

Akhtar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.