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

The data from buyo 46073 cannot be retreived. #23

Open
paganelle76 opened this issue Mar 20, 2023 · 3 comments
Open

The data from buyo 46073 cannot be retreived. #23

paganelle76 opened this issue Mar 20, 2023 · 3 comments

Comments

@paganelle76
Copy link

I have pretty basic code (attached) which worked a month ago. It is mostly working now except https://www.ndbc.noaa.gov/station_page.php?station=46073. I'm getting an error ParserError: Error tokenizing data. C error: Expected 18 fields in line 2046, saw 35 anytime I try to get the data. Is it a problem with the seabuoy or NDBC did something wrong with his particular buoy?

seebuoy-v1g.py.txt

@nickc1
Copy link
Owner

nickc1 commented Mar 21, 2023

Hi Paganelle76,

I wasn't able to reproduce the error. I tried the examples below for both real time and historical data and both returned without error. Would you be able to paste the full stack trace?

The working examples I tried:

REAL TIME

from seebuoy import NDBC

ndbc = NDBC(timeframe="real_time")
df_avail = ndbc.available_data(station_id="46073")

df = ndbc.get_data("46073")

The example above returns of data frame of shape (1080, 14).

HISTORICAL

ndbc = NDBC(timeframe="historical")
df_avail = ndbc.available_data(station_id="46073")

df = ndbc.get_data("46073")

The example above returns a data frame of shape (98335, 14).

@paganelle76
Copy link
Author

paganelle76 commented Mar 21, 2023 via email

@guin0x
Copy link

guin0x commented May 26, 2023

Hey, I also have a problem with the get_data function for dataset="raw_spectral". It seems like there's something wrong with the parse_raw_spectral() function (or the wrong df is being called):

ValueError: time data '#yr mo dy hr mn' does not match format '%Y %m %d %H %M' (match)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants