stilt.MetStream#

class stilt.MetStream(name: 'str', config: 'MetConfig')[source]#

Meteorology files for one met stream, found locally or downloaded.

Without source, files are found under directory from file_format and file_tres. With source set to an arlmet source name, arlmet downloads the files, cropping them as it goes when subgridding is on. Local files are cropped with arlmet.extract_subset into subgrid_dir, which all simulations share.

Parameters

namestr

Name of the met in the config.

configMetConfig

Its settings.

Methods#

required_files(r_time, n_hours)

Return the met files that cover one simulation.

stage_files_for_simulation(*, r_time, ...)

Find the met files for one simulation and link them into target_dir.

Attributes#

directory

config.directory, made absolute.