AcarsRetriever#
- class rojak.datalib.madis.amdar.AcarsRetriever(file_pattern=None, retrive_from=MadisDataServer.HTTP)[source]#
Downloads MADIS ACARS netCDF archive files from NOAA, via either FTP or HTTP
- Parameters:
file_pattern (str)
retrive_from (MadisDataServer)
- __init__(file_pattern=None, retrive_from=MadisDataServer.HTTP)[source]#
- Parameters:
file_pattern (str | None) – Glob pattern used to select which files to download for each date. Defaults to
"*.gz".retrive_from (MadisDataServer) – Server protocol to download from. Defaults to
MadisDataServer.HTTP.
- Return type:
None
Methods
__init__([file_pattern, retrive_from])compute_date_combinations(years, months, days)Expand years/months/days into every
Datecombinationdownload_files(years, months, days, ...)Download the MADIS archive file(s) for every combination of
years,months, anddaysAttributes
FTP_ARCHIVE_PATHHOSTNAMEHTTP_ARCHIVE_PATHPRODUCT