Skip to content

Modis-Util is a tool that makes it easy to search and download MODIS data on AWS.

License

Notifications You must be signed in to change notification settings

whistler/modis-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modis-Util

Modis-Util is a tool that makes it easy to search and download MODIS data on AWS.

Install

Install this package using pip:

pip install modis-util

Usage

Search for a scene:

import modis
import datetime

product = modis.products.MCD43A4_006
latitude = 49.2827
longitude = 123.1207
date = datetime.date(2017, 1, 1)

scenes = modis.search(product, latitude, longitude, date)
# scenes = ['MCD43A4.A2017001.h25v04.006.2017014061357']

Download complete dataset for a scene:

scene_id = 'MCD43A4.A2016001.h25v04.006.2016174082825_B05'
destination_path = 'modis_data'
modis.download(scene_id, destination_path)

Download only certain files of a scene, you can use any part of the filename in the include list:

modis.download(scene_id, destination_path, include=['BROWSE'])

About

Modis-Util is a tool that makes it easy to search and download MODIS data on AWS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published