Skip to content

Metar doesn't parse correctly #2807

@ManojAgrawal

Description

@ManojAgrawal

What went wrong?

Metar

DEN
1/24/17 16:00
KDEN 241600Z 02010KT 1/16SM R35L/1000V1200FT FZFG VV001 M01/M02 A2954 RMK AO2 SFC VIS M1/4 T10111022

isn't parsed correctly. output dataframe (pasted below) doesn't have visibility, weather condition 'FZFG' and has a cloud coverage of 10

station_id | latitude | longitude | elevation | date_time | wind_direction | wind_speed | wind_gust | visibility | current_wx1 | current_wx2 | current_wx3 | low_cloud_type | low_cloud_level | medium_cloud_type | medium_cloud_level | high_cloud_type | high_cloud_level | highest_cloud_type | highest_cloud_level | cloud_coverage
-- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --

KDEN | 39.85 | -104.65 | 1640 | 2022-11-24 16:00:00 | 20 | 10.0 | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | NaN | 10

Screen Shot 2022-11-29 at 9 37 56 AM

Operating System

MacOS

Version

1.3

Python Version

3.9.12

Code to Reproduce

from metpy import io

df = io.parse_metar_to_dataframe('KDEN 241600Z 02010KT 1/16SM R35L/1000V1200FT FZFG VV001 M01/M02 A2954 RMK AO2 SFC VIS M1/4 T10111022')

df.head()

Errors, Traceback, and Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: IOPertains to reading dataType: BugSomething is not working like it should

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions