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

Issue with USGS data #138

Closed
AtiehAlipour-NOAA opened this issue May 10, 2024 · 2 comments · Fixed by #139
Closed

Issue with USGS data #138

AtiehAlipour-NOAA opened this issue May 10, 2024 · 2 comments · Fixed by #139
Assignees

Comments

@AtiehAlipour-NOAA
Copy link

Hi,

I am using Searvey to download USGS data. I use the usgs.get_usgs_station_data function to retrieve water level data. Please see below for an example:

from searvey import usgs
from datetime import datetime

date_string = "2024-03-23 12:00:00"
datetime_object = datetime.strptime(date_string, "%Y-%m-%d %H:%M:%S")

station_df = usgs.get_usgs_station_data('01049505',endtime=datetime_object,period=5)

But this doesn't download all the available data and misses data for some time steps. For example:

1049505 2024-03-20 06:00:00+00:00 65   4.24 P ft Gage height, feet
1049505 2024-03-20 06:12:00+00:00 65   4.18 P ft Gage height, feet
1049505 2024-03-20 06:18:00+00:00 65   4.07 P ft Gage height, feet
1049505 2024-03-20 06:36:00+00:00 65   3.87 P ft Gage height, feet
1049505 2024-03-20 07:12:00+00:00 65   3.53 P ft Gage height, feet
1049505 2024-03-20 07:18:00+00:00 65   3.49 P ft Gage height, feet
1049505 2024-03-20 07:24:00+00:00 65   3.38 P ft Gage height, feet
1049505 2024-03-20 07:42:00+00:00 65   3.23 P ft Gage height, feet
1049505 2024-03-20 08:06:00+00:00 65   2.99 P ft Gage height, feet

This is the available data at: https://waterdata.usgs.gov/nwis/uv?cb_00065=on&format=rdb&site_no=01049505&legacy=1&period=&begin_date=2024-03-20&end_date=2024-03-23

USGS    01049505        2024-03-20 06:12        EDT     1.92    P  
USGS    01049505        2024-03-20 06:18        EDT     1.86    P
USGS    01049505        2024-03-20 06:24        EDT     1.81    P
USGS    01049505        2024-03-20 06:30        EDT     1.71    P
USGS    01049505        2024-03-20 06:36        EDT     1.78    P  
USGS    01049505        2024-03-20 06:42        EDT     1.74    P  
USGS    01049505        2024-03-20 06:48        EDT     1.69    P  
USGS    01049505        2024-03-20 06:54        EDT     1.76    P  
USGS    01049505        2024-03-20 07:00        EDT     1.75    P  
USGS    01049505        2024-03-20 07:06        EDT     1.81    P  
USGS    01049505        2024-03-20 07:12        EDT     1.81    P  
USGS    01049505        2024-03-20 07:18        EDT     1.87    P  
USGS    01049505        2024-03-20 07:24        EDT     1.95    P  
USGS    01049505        2024-03-20 07:30        EDT     2.02    P  
USGS    01049505        2024-03-20 07:36        EDT     2.16    P  
USGS    01049505        2024-03-20 07:42        EDT     2.25    P  
USGS    01049505        2024-03-20 07:48        EDT     2.41    P  
USGS    01049505        2024-03-20 07:54        EDT     2.48    P  
USGS    01049505        2024-03-20 08:00        EDT     2.62    P  
USGS    01049505        2024-03-20 08:06        EDT     2.78    P  

Any recommendations? I would appreciate your help. Thank you.

@pmav99
Copy link
Member

pmav99 commented May 10, 2024

similar to #86?

@AtiehAlipour-NOAA
Copy link
Author

similar to #86?

@pmav99, thanks for the quick response. My issue is with downloading incomplete data for a single USGS station. It seems to me Ticket #86 mainly addresses difficulties related to calling multiple stations.

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

Successfully merging a pull request may close this issue.

3 participants