Giter Site home page Giter Site logo

dat295's Introduction

DAT295

Data process

The original data

We use the original data from VED. There are 54 csv documents.

First procession

Since the data inclue the latitude and longitude information, we load 54 csv document one by one and record the max and the min latitude, longitude per document. And then we get the max and the min values of all latitude and longitude.

Since this is a small area, we think of it as a square instead of a sphere. Then we use the formula to calculate the distance of the min_max latitude and min_max longitude.

$$haversin ({{d} \over {R}}) = haversin(\psi_1 - \psi_2) + cos(\psi_1)cos(\psi_2)haversin(\Delta \lambda) $$

We get the distance from latitude is 11730.47m,the longitude is 10729.04m. And then set the precision in unit meter. Through distance, precision, min_max_latitude, min_max_longitude, we get the latitude difference and longitude difference per precision. Then we can generate the edge of latitude_longitude, which can help us to get the number of the record in the square.

The brighter part means more data recorded.

When the precision is 10 meters:

  • The number of block is 1257456.
  • The number of block larger than 100 is 52968.
  • The number of block larger than 1000 is 2140.

dat295's People

Contributors

yadongm 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.