arlmet.InternalLevels#

class arlmet.InternalLevels(zmdl, heights, zmdlt=20000.0)[source]#

HYSPLIT’s internal vertical levels for a run, as hymodelc sets them up.

Made by internal_levels(). These are the heights at which sample_points() reads the met at heights with a model_top: it fills each grid point’s column on them and reads a point linearly between the two levels around it. The levels follow the terrain as sigma surfaces that go flat at zmdl: above ground at zsfc meters each level is (zmdl - zsfc) / zmdl times as high as above ground at 0 m (scale(), heights_at()).

Variables:
  • zmdl (float) – ZMDL, the height at which the sigma surfaces go flat [m]: max(model_top, 25000) (HYSPLIT’s runset.f).

  • heights (numpy.ndarray) – The levels’ heights above the ground where the terrain is 0 m [m], a k**2 + b k + c for k = 1, 2, ..., from the grid metlvl.f picks. Read-only.

  • zmdlt (float) – ZMDLT, the height that scales a terrain-following (flag 3) file’s stored levels [m]: 20000, or zmdl on a file whose source is RAMS (prfter).

See also

internal_levels

Builds the levels for a file and a model top.

sample_points

Samples on these levels at heights.

Methods

heights_at(terrain)

Return the levels' heights above the ground at each terrain.

scale(terrain)

Return how much higher the levels are above terrain than above 0 m.