Skip to content

Commit f0bef3e

Browse files
committed
same as previous commit message, was behind on what I was committing
1 parent 2f6af7d commit f0bef3e

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

dataretrieval/waterdata/api.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ def get_daily(
134134
skip_geometry : boolean, optional
135135
This option can be used to skip response geometries for each feature.
136136
The returning object will be a data frame with no spatial information.
137+
Note that the USGS Water Data APIs use camelCase "skipGeometry" in
138+
CQL2 queries.
137139
time : string, optional
138140
The date an observation represents. You can query this field using
139141
date-times or intervals, adhering to RFC 3339, or using ISO 8601
@@ -481,6 +483,8 @@ def get_monitoring_locations(
481483
skip_geometry : boolean, optional
482484
This option can be used to skip response geometries for each feature.
483485
The returning object will be a data frame with no spatial information.
486+
Note that the USGS Water Data APIs use camelCase "skipGeometry" in
487+
CQL2 queries.
484488
485489
Returns
486490
-------
@@ -652,6 +656,8 @@ def get_time_series_metadata(
652656
skip_geometry : boolean, optional
653657
This option can be used to skip response geometries for each feature.
654658
The returning object will be a data frame with no spatial information.
659+
Note that the USGS Water Data APIs use camelCase "skipGeometry" in
660+
CQL2 queries.
655661
bbox : list of numbers, optional
656662
Only features that have a geometry that intersects the bounding box are
657663
selected. The bounding box is provided as four or six numbers,
@@ -816,6 +822,8 @@ def get_latest_continuous(
816822
skip_geometry : boolean, optional
817823
This option can be used to skip response geometries for each feature.
818824
The returning object will be a data frame with no spatial information.
825+
Note that the USGS Water Data APIs use camelCase "skipGeometry" in
826+
CQL2 queries.
819827
time : string, optional
820828
The date an observation represents. You can query this field using
821829
date-times or intervals, adhering to RFC 3339, or using ISO 8601
@@ -987,6 +995,8 @@ def get_field_measurements(
987995
skip_geometry : boolean, optional
988996
This option can be used to skip response geometries for each feature. The returning
989997
object will be a data frame with no spatial information.
998+
Note that the USGS Water Data APIs use camelCase "skipGeometry" in
999+
CQL2 queries.
9901000
time : string, optional
9911001
The date an observation represents. You can query this field using date-times
9921002
or intervals, adhering to RFC 3339, or using ISO 8601 duration objects.

dataretrieval/waterdata/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def _next_req_url(resp: requests.Response) -> Optional[str]:
450450
-----
451451
- If the environment variable "API_USGS_PAT" is set, logs the remaining
452452
requests for the current hour.
453-
- Logs the next URL if found at debug level.
453+
- Logs the next URL if found at info level.
454454
- Expects the response JSON to contain a "links" list with objects having
455455
"rel" and "href" keys.
456456
- Checks for the "next" relation in the "links" to determine the next URL.
@@ -467,7 +467,7 @@ def _next_req_url(resp: requests.Response) -> Optional[str]:
467467
for link in body.get("links", []):
468468
if link.get("rel") == "next":
469469
next_url = link.get("href")
470-
logger.debug("Next URL: %s", next_url)
470+
logger.info("Next URL: %s", next_url)
471471
return next_url
472472
return None
473473

0 commit comments

Comments
 (0)