{ "metadata": { "name": "", "signature": "sha256:3f28a84fd60926eecfe4af2e2afed0c1d0b7203c32431e0b6e90253ea046975f" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "pyModis notebook" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Download data" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "First we have to import pymodis library and set all the needed variables" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import os\n", "import glob\n", "from IPython.core.display import Image\n", "from pymodis import downmodis" ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "code", "collapsed": false, "input": [ "# destination foldert\n", "dest = \"/tmp\"\n", "# tiles to download\n", "tiles = \"h18v04,h19v04\"\n", "# starting day\n", "day = \"2014-08-14\"\n", "# number of day to download\n", "delta = 1" ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "At this point we can initialize the downmodis object. We are going to download MODIS LST product, in the \"/tmp\" directory" ] }, { "cell_type": "code", "collapsed": false, "input": [ "modisDown = downmodis.downModis(destinationFolder=dest, tiles=tiles, today=day, delta=delta)" ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "code", "collapsed": false, "input": [ "modisDown.connect()" ], "language": "python", "metadata": {}, "outputs": [] }, { "cell_type": "markdown", "metadata": {}, "source": [ "At this point we start the download of files." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "