Giter Club home page Giter Club logo

gravity-automatic's Introduction

Gravity-Automatic

Download, extract, process, and plot gravity data. From Topex website to simple bouguer anomaly contour (even more!)

Are you a Geophysics Student, doing research using satellite gravity data? You may love this code!

I created code that could make you able to download, extract, process, and plot gravity data automatically from Topex website.

How to get started?

image

1. Make sure you have python IDE on your PC

This code was written in python language. To run it, you need python IDE (of course) with the version 3.7 or above. You can use any IDE (my recommend : Spyder, PyCharm).

2. Install necessary packages

You need to install some packages that maybe you didn't have before. These packages list are :

  • NumPy
  • Pandas
  • Matplotlib
  • SciPy
  • Selenium
  • scikit-learn (sklearn)

To install these packages, simply write :

pip install numpy pandas matplotlib scipy selenium sklearn

on your console / python command prompt. Wait until all of these have succesfully installed, then restart your kernel (or restart your IDE).

3. Install webdriver

To automatically control the browser by using Selenium package, you'll need webdriver. You can visit https://www.selenium.dev/downloads/ and scroll down to 'Platforms Supported by Selenium', then, choose your browser

image

Click on the 'documentation' link from one of browser you'll use. For this tutorial, I'll use Chrome.

Open https://chromedriver.chromium.org/ or documentation link from image above.

image

Then, click download link on 'All versions available in Downloads'

image

Download webdriver that match with your Chrome version. To check your Chrome version, you can see it on Control Panel --> Uninstall a program. There you can check you apps version on the rightmost column.

image

Now back to Chrome webdriver site and click to match version of yours.

image

Choose chromedriver_win32.zip if you are using Windows.

After you succesfully downloaded it, extract chromedriver.exe from .zip file and place it on C:\Windows

image image

4. Settings your IDE to 'pop-up' when plotting (Spyder tutorial only)

If you are using Spyder IDE from Anaconda, you have to set up plotting style. Go to Tools --> Preferences on the top of the bar.

image

Move to IPython Console and Graphics tab, then, set the Graphics Backend from Inline to Automatic.

image

Close and re-open your Spyder. For another IDE, please check how to set up interactive tools.

5. Run the code!

Now everything have been set up properly (hopefully). Open topex_auto.py file to your IDE. It's time to run the code with a simply pressing F5 or Run button.

Input your area coordinates

image

You've got your Simple Bouguer Anomaly

image

Picking regional and residual boundary range in the spectrum analysis

image

Then, we were able to separate regional and residual data

image

Residual data was used to get First Horizontal Derivative and Second Vertical Derivative

image image

Now it's your turn to try

gravity-automatic's People

Contributors

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