runtraj.models.flexpart.FlexpartModel#

class runtraj.models.flexpart.FlexpartModel[source]#

FLEXPART 11 as a transport model, the object get_model("flexpart") returns.

run() picks the GRIB files a release needs, writes FLEXPART’s input files into the workdir (write_inputs()), runs the checkout’s executable there, and reads its particle output (read_partoutput()). The particles carry FLEXPART’s mlht and dens at each particle, for a stage to read. Its met config’s open() opens a run’s ERA5 files for runtraj.sampling, to read other met at the particles.

Attributes#

name

The model's short name, such as "hysplit".

Methods#

check_releases(releases, config)

Return the multipoint releases with more points than config.numpar, which FLEXPART stops on.

release_rows(particles, release, config)

Return where each particle of a column or multipoint release started, which FLEXPART writes no row for.

run(release, config, met, window[, workdir, ...])

Run FLEXPART for one release in workdir and return its particles.

sha256(config)

Return the SHA-256 of the FLEXPART executable config runs, which tells its build from any other.

version(config)

Return the version of the checkout in config.directory, recorded but not hashed; None when it has none.

Inherited#

From TransportModel: data_files, needs_workdir, result, result_files