HWRF
trunk@4391
|
Obtains input data needed by various subclasses of hwrf.hwrftask.HWRFTask. More...
Obtains input data needed by various subclasses of hwrf.hwrftask.HWRFTask.
This module implements the functionality described in hwrf.hwrftask.HWRFTask.inputiter(). It takes many HWRF tasks, asks them what input is needed and collates that information. It has a list of many possible input sources, and knows which ones are available from which cluster. It goes through available input sources in priority order, obtaining the input data.
Classes | |
class | DataCatalog |
Provides the location of a file in an archive, on disk or on a remote server via sftp or ftp. More... | |
class | InputSource |
Fetch data from multiple sources. More... | |
Functions | |
def | in_date_range (t, trange) |
Is this time in the given time range? More... | |
def | tempopen (f, m) |
Convenience function that opens a temporary file using tempfile.NamedTemporaryFile. More... | |
def | strsrc (d) |
Makes a string version of a dataset+item dict as produced by hwrf_expt.inputiter() or hwrf.hwrftask.HWRFTask.inputiter() | |
Variables | |
list | __all__ = ["DataCatalog","InputSource",'in_date_range'] |
Symbols exported by "from hwrf.input import *". | |
def hwrf.input.in_date_range | ( | t, | |
trange | |||
) |
Is this time in the given time range?
t | A time as a ten digit number. For example, 1830123118 is December 31, 1830 at 18:00 UTC. |
trange | A comma-separated list of time ranges such as this:
|
Definition at line 29 of file input.py.
Referenced by hwrf.input.DataCatalog.parse().
def hwrf.input.tempopen | ( | f, | |
m | |||
) |
Convenience function that opens a temporary file using tempfile.NamedTemporaryFile.
Definition at line 64 of file input.py.
Referenced by hwrf.input.InputSource.fetch_file().