nsrdb.albedo.modis.ModisFileAcquisition
- class ModisFileAcquisition(date, path)[source]
Bases:
object
Class to acquire MODIS data for requested day. Attempts to get data from disk first. If not available the data is downloaded exist it is downloaded.
- Parameters:
date (Datetime object) – Desired date for MODIS data.
path (str) – Location of/for MODIS data on disk.
Methods
get_file
(date, path)Returns filename for MODIS date file for date.
Attributes
FILE_PATTERN
HTTP_FOLDER
HTTP_SERVER
- classmethod get_file(date, path)[source]
Returns filename for MODIS date file for date. Searches in ‘path’ and downloads if necessary. MODIS files are every 8 days. Returns nearest day to ‘data’.
- Parameters:
date (Datetime object) – Desired date for MODIS data.
path (str) – Location of/for MODIS data on disk.
- Returns:
filename (str) – Filename with path to MODIS data file