GithubHelp home page GithubHelp logo

mnpinto / geoget Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 7.76 MB

Download geodata for anywhere in Earth

Home Page: https://mnpinto.github.io/geoget/

License: Apache License 2.0

Jupyter Notebook 95.55% Python 4.41% Makefile 0.03%

geoget's Introduction

GeoGet

Utility functions to download geo data.

Install

pip install geoget

Setup ladsweb

Visit the ladsweb website and register. To find your Authorization Bearer token, goto https://ladsweb.modaps.eosdis.nasa.gov/archive/ and click Login > Generate Token and copy the token (do not use the tokens at https://urs.earthdata.nasa.gov/users/dctanner/user_tokens as these are different and will not work). Create the following config file at ~/.ladsweb, inserting your email and the token under "key".

{
    "url"   : "https://ladsweb.modaps.eosdis.nasa.gov",
    "key"   : "",
    "email" : ""
}

How to use

The following bash script shows an example of how to make a request:

#!/bin/bash -l 
bbox='-10 36 0 44'
product="NPP_VMAES_L1"
collection="5000"
tstart="2017-10-27 00:00:00"
tend='2017-10-27 23:59:59'
path_save="/srv/geoget/data"
bands="Reflectance_M5 Reflectance_M7 Reflectance_M10 Radiance_M12 Radiance_M15 SolarZenithAngle SatelliteZenithAngle"

geoget_ladsweb $product $collection "$tstart" "$tend" "$bbox" $path_save "$bands" --repName "GEO" --repPixSize "0.01" --daynight "D"

In case you need to stop the request (it may take a while until the files are available) you can later call geoget_order_manager . on path_save directory and all requests in the log file will continue to be processed.

Note: Library under development. Examples above were tested in Ubuntu 16.04 LTS.

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.