Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wrong unit for runway visual range #107

@sfo

Description

@sfo

Consider the following METAR report:

METAR EBBR 040220Z VRB01KT 0150 R25L/1200N R25R/0600N R02/P1500N FG BKN001 07/06 Q1017 NOSIG=

It says, that RVR for runways 25L is 1200 m, for 25R is 600 m, and for 02 is 1500 m, respectively.
However, the output of the following code gives the same values but with unit feet, which is wrong, since the METAR report gives meters.

from metar import Metar

m = Metar.Metar('METAR EBBR 040220Z VRB01KT 0150 R25L/1200N R25R/0600N R02/P1500N FG BKN001 07/06 Q1017 NOSIG')
print(m.runway_visual_range())

on runway 25L, 1200 feet; on runway 25R, 600 feet; on runway 02, greater than 1500 feet

Similarly, requesting RVR in unit meters explicitly give wrong values:

for name, low, high, unit in m.runway:
    print(f"RVR for runway {name}: {low.value(units='M')} m")

RVR for runway 25L: 365.7599882956804 m
RVR for runway 25R: 182.8799941478402 m
RVR for runway 02: 457.1999853696005 m

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions