Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wyoming can clip some long values #315

Open
dopplershift opened this issue Jan 23, 2021 · 2 comments
Open

Wyoming can clip some long values #315

dopplershift opened this issue Jan 23, 2021 · 2 comments
Labels
Area: Web Services good first issue Straightforward issues suitable for new and inexperienced contributors to the project Type: Bug
Milestone

Comments

@dopplershift
Copy link
Member

For the following data, the height column ends up incorrectly reading the height values:

from datetime import datetime
from siphon.simplewebservice.igra2 import WyomingUpperAir

df = WyomingUpperAir.request_data(datetime(2021, 1, 5, 12), '03005')

This is because by default read_fwf only looks at the first 100 rows, and for this dataset heights >= 10000m are beyond that number of rows.

@dopplershift
Copy link
Member Author

The easy fix for this, based on the pandas docs is to pass infer_rows=200.

@dopplershift dopplershift added the good first issue Straightforward issues suitable for new and inexperienced contributors to the project label Jan 23, 2021
@dopplershift dopplershift modified the milestones: 0.9, 0.10 Mar 7, 2021
@jrleeman
Copy link
Contributor

Can't reproduce this issue - formatting appears correct for the example given, though the import should read

from siphon.simplewebservice.wyoming import WyomingUpperAir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Web Services good first issue Straightforward issues suitable for new and inexperienced contributors to the project Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants