runtraj.models.hysplit.HysplitMetConfig#
- class runtraj.models.hysplit.HysplitMetConfig(*, label: str | None = None, directory: pathlib.Path, subgrid_dir: pathlib.Path | None = None, download: str | None = None, download_from: Literal['s3', 'ftp', 'http'] = 's3', subgrid_enable: bool = False, subgrid_bounds: runtraj.spatial.Bounds | None = None, subgrid_levels: int | None = None, **extra_data: Any) None[source]#
HYSPLIT’s config for one met, as written under
mets:inconfig.yaml.HYSPLIT reads ARL files. A met of files you have needs only their folder, so a string is the
directory:hrrr: /path/to/hrrr. Each file’s own header says which times it holds, whatever it is named. Withdownload, arlmet downloads them, and other keys are options for that archive (such asdomainfornams). Any other unknown key is an error.A run records which weather product its met is and how it was cropped (
settings()), not where the files are kept or how they are named. Moving the files, or renaming them, changes no result.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
A name that tells this met’s runs apart from those of another met of the same weather product, such as |
|
|
Directory holding the ARL meteorology files. Downloads are saved here. In a project, a relative path starts from the project directory; |
Required |
|
Directory for the cropped files, shared by every simulation that uses this meteorology. Each crop box gets its own folder inside it. Required when cropping your own files; not used with |
|
|
Name of a NOAA ARL archive to download files from with arlmet, such as |
|
|
Server to download from: |
|
|
Crop the meteorology to |
|
|
Longitude/latitude box to crop the meteorology to. Particles that leave it stop, so make it wide enough for the whole run. |
|
|
Number of vertical levels to keep, counted from the surface. Unset keeps all. |
|
Attributes#
Extra fields, passed as keyword arguments to the arlmet archive. |
Methods#
|
Return what would stop HYSPLIT from running releases on this met, found before any run. |
|
Return the crop as |
Whether this met downloads its files from an ARL archive ( |
|
|
Get the met files that cover windows, downloading the ones a download lacks. |
|
This function is meant to behave like a BaseModel method to initialize private attributes. |
|
Return what a run records of this met: its weather product and its crop. |
|
Return the source id of this met's files, such as |