The ray tracer assumes the vertical grid spacing is constant (in the ray tracing domain, background profile may have variable grid spacing). However, the code does not crash or throw warnings when used with a stretched vertical grid, which ideally, it should.