arlmet.internal_levels#
- arlmet.internal_levels(file, *, model_top=25000.0)[source]#
Return HYSPLIT’s internal vertical levels for a run on file with model_top.
HYSPLIT does not read the met at a particle’s own height: it fills its own internal levels at every grid point and reads the particle between two of them. For the run’s top of model domain and the file’s vertical grid, HYSPLIT’s
metlvl.fpicks one of six grids of heightsa k**2 + b k + c; these are the levelssample_points()uses at heights with the samemodel_top.- Parameters:
file (
File|str|PathLike[str] |Dataset) – An open ARL file, the path to one, or a Dataset inarlmet.open_dataset()’s layout, such as a converter’s output, assample_points()takes. Only its vertical axis and source are read; a path is opened and closed here.model_top (
float) – The run’s top of model domain [m] (theCONTROLline after the vertical motion option; PYSTILT’sz_top), as insample_points().
- Return type:
- Raises:
ValueError – If model_top is not a positive number.
See also
InternalLevelsThe returned levels.
sample_pointsSamples on these levels at heights.
Examples
>>> import arlmet >>> levels = arlmet.internal_levels("met.arl") >>> levels.zmdl 25000.0 >>> levels.heights[:4] array([ 10., 75., 200., 385.])