build_file_list#
- build_file_list(path, tstart, tend)[source]#
Build a list of NetCDF file paths between two dates.
- Parameters:
path (str) – Directory containing the NetCDF files.
tstart (datetime) – Start date (inclusive).
tend (datetime) – End date (inclusive).
- Returns:
A list of file paths, one entry per day between tstart and tend. - If a file exists, the full path is included. - If a file is missing, the entry is an empty string “”.
- Return type:
list of str
- Raises:
FileNotFoundError – If the first file cannot be found for tstart.
RuntimeError – If the filename does not contain the expected date string.