https://github.com/RvSpectML/EchelleCCFs.jl/blob/a639217e24ebc59282d42e27d739d3aea1a032c6/src/mask_shapes/tophat.jl#L32-L45
EchelleCCFs.jl/src/mask_shapes/tophat.jl
Lines 32 to 45 in a639217