pyModisModule to download MODIS HDF files from NASA repository. It supports both FTP and HTTP repositories
Classes:
Functions:
A class to download MODIS data from NASA FTP or HTTP repositories
| Parameters: |
|
|---|
Check if a file already exists in the local download directory
| Parameters: | |
|---|---|
| Returns: | list of files to download |
Check by using GDAL to be sure that the download went ok
| Parameters: | filHdf (str) – name of the HDF file to check |
|---|---|
| Returns: | 0 if file is correct, 1 for error |
Connect to the server and fill the dirData variable
| Parameters: | ncon (int) – maximum number of attempts to connect to the HTTP server before failing |
|---|
Function to create the debug file
| Returns: | a Logger object to use to write debug info |
|---|
Returns a list of files to download. HDF and XML files are downloaded by default. JPG files will be downloaded if self.jpeg == True.
| Parameters: | day (str) – the date of data in format YYYY.MM.DD |
|---|---|
| Returns: | a list of files to download for the day |
Check two files to determine which is newer
| Parameters: | |
|---|---|
| Returns: | the name of newer file |
Bases: HTMLParser.HTMLParser
A class to parse HTML
| Parameters: | fh – content of http request |
|---|
Convert to datetime.date object from a string
:param str datestring string with format (YYYY-MM-DD)
| Returns: | a datetime.date object representing datestring |
|---|
Joins given arguments into a url. Trailing but not leading slashes are stripped for each argument. http://stackoverflow.com/a/11326230
| Returns: | a string |
|---|