Skip to content

Commit d654ad6

Browse files
Merge pull request #55 from SorooshMani-NOAA/feature/usgs_nwis
Adding support for USGS stations
2 parents 1f64a8e + 09565c3 commit d654ad6

14 files changed

+3599
-394
lines changed

CERA_filter_STOFS_stations_from_searvey_csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
import CERA_get_active_stations
1313

14+
1415
################################################################################
1516
def get_csv():
16-
1717
# read searvey data and return geopandas geodataframe object
1818

1919
# COOPS stations, status = active

CERA_filter_STOFS_stations_from_searvey_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
import CERA_get_active_stations
1010

11+
1112
################################################################################
1213
def get_geojson():
13-
1414
# read searvey data and return geopandas geodataframe object
1515

1616
# COOPS stations, status = active

CERA_get_active_stations.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def get_ioc_stations_activity(
2222
activity_threshold: datetime.timedelta,
2323
region: Polygon | MultiPolygon | None = None,
2424
) -> gpd.GeoDataFrame:
25-
2625
# Retrieve the metadata
2726
ioc_gdf = ioc.get_ioc_stations(region=region)
2827

@@ -81,7 +80,6 @@ def get_ioc_stations_activity(
8180
def get_coops_stations_activity(
8281
region: Polygon | MultiPolygon | None = None,
8382
) -> gpd.GeoDataFrame:
84-
8583
# Retrieve the metadata
8684
coops_gdf = coops.coops_stations_within_region(region=region)
8785

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Searvey aims to provide the following functionality:
1616

1717
- U.S. Center for Operational Oceanographic Products and Services (CO-OPS)
1818
- Flanders Marine Institute (VLIZ); Intergovernmental Oceanographic Commission (IOC)
19+
- U.S. Geological Survey (USGS)
1920

2021
## Installation
2122

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
installation
77
coops
88
ioc
9+
usgs

docs/source/usgs.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
USGS
2+
====
3+
4+
The United States Geological Survey's (USGS) `National Water Information
5+
System (NWIS) <https://waterdata.usgs.gov/nwis>`_ provides different
6+
categories of water data for sites all across the US. This includes information
7+
about both surface and ground water, and for physical, chemical, and pollution
8+
variables. `searvey` uses NWIS REST API through `dataretrieval`
9+
package to access this data. Currently only data about elevation and
10+
flow rate are exposed in `searvey`.
11+
12+
A list of USGS stations is provided with the ``get_usgs_stations()`` function with various subsetting options.
13+
14+
.. autofunction:: searvey.usgs.get_usgs_stations
15+
16+
The station data can be retrieved with
17+
18+
.. autofunction:: searvey.usgs.get_usgs_data

0 commit comments

Comments
 (0)