|
19 | 19 | def get_results(ssl_check=True, **kwargs): |
20 | 20 | """Query the WQP for results. |
21 | 21 |
|
| 22 | + Any WQP API parameter can be passed as a keyword argument to this function. |
| 23 | + More information about the API can be found at: |
| 24 | + https://www.waterqualitydata.us/#advanced=true |
| 25 | + or the Swagger documentation at: |
| 26 | + https://www.waterqualitydata.us/data/swagger-ui/index.html?docExpansion=none&url=/data/v3/api-docs#/ |
| 27 | +
|
22 | 28 | Parameters |
23 | 29 | ---------- |
24 | 30 | ssl_check: bool |
@@ -94,6 +100,12 @@ def get_results(ssl_check=True, **kwargs): |
94 | 100 | def what_sites(ssl_check=True, **kwargs): |
95 | 101 | """Search WQP for sites within a region with specific data. |
96 | 102 |
|
| 103 | + Any WQP API parameter can be passed as a keyword argument to this function. |
| 104 | + More information about the API can be found at: |
| 105 | + https://www.waterqualitydata.us/#advanced=true |
| 106 | + or the Swagger documentation at: |
| 107 | + https://www.waterqualitydata.us/data/swagger-ui/index.html?docExpansion=none&url=/data/v3/api-docs#/ |
| 108 | +
|
97 | 109 | Parameters |
98 | 110 | ---------- |
99 | 111 | ssl_check: bool |
@@ -134,6 +146,12 @@ def what_sites(ssl_check=True, **kwargs): |
134 | 146 | def what_organizations(ssl_check=True, **kwargs): |
135 | 147 | """Search WQP for organizations within a region with specific data. |
136 | 148 |
|
| 149 | + Any WQP API parameter can be passed as a keyword argument to this function. |
| 150 | + More information about the API can be found at: |
| 151 | + https://www.waterqualitydata.us/#advanced=true |
| 152 | + or the Swagger documentation at: |
| 153 | + https://www.waterqualitydata.us/data/swagger-ui/index.html?docExpansion=none&url=/data/v3/api-docs#/ |
| 154 | +
|
137 | 155 | Parameters |
138 | 156 | ---------- |
139 | 157 | ssl_check: bool |
@@ -172,6 +190,12 @@ def what_organizations(ssl_check=True, **kwargs): |
172 | 190 | def what_projects(ssl_check=True, **kwargs): |
173 | 191 | """Search WQP for projects within a region with specific data. |
174 | 192 |
|
| 193 | + Any WQP API parameter can be passed as a keyword argument to this function. |
| 194 | + More information about the API can be found at: |
| 195 | + https://www.waterqualitydata.us/#advanced=true |
| 196 | + or the Swagger documentation at: |
| 197 | + https://www.waterqualitydata.us/data/swagger-ui/index.html?docExpansion=none&url=/data/v3/api-docs#/ |
| 198 | +
|
175 | 199 | Parameters |
176 | 200 | ---------- |
177 | 201 | ssl_check: bool |
@@ -210,6 +234,12 @@ def what_projects(ssl_check=True, **kwargs): |
210 | 234 | def what_activities(ssl_check=True, **kwargs): |
211 | 235 | """Search WQP for activities within a region with specific data. |
212 | 236 |
|
| 237 | + Any WQP API parameter can be passed as a keyword argument to this function. |
| 238 | + More information about the API can be found at: |
| 239 | + https://www.waterqualitydata.us/#advanced=true |
| 240 | + or the Swagger documentation at: |
| 241 | + https://www.waterqualitydata.us/data/swagger-ui/index.html?docExpansion=none&url=/data/v3/api-docs#/ |
| 242 | +
|
213 | 243 | Parameters |
214 | 244 | ---------- |
215 | 245 | ssl_check: bool |
@@ -252,6 +282,12 @@ def what_detection_limits(ssl_check=True, **kwargs): |
252 | 282 | """Search WQP for result detection limits within a region with specific |
253 | 283 | data. |
254 | 284 |
|
| 285 | + Any WQP API parameter can be passed as a keyword argument to this function. |
| 286 | + More information about the API can be found at: |
| 287 | + https://www.waterqualitydata.us/#advanced=true |
| 288 | + or the Swagger documentation at: |
| 289 | + https://www.waterqualitydata.us/data/swagger-ui/index.html?docExpansion=none&url=/data/v3/api-docs#/ |
| 290 | +
|
255 | 291 | Parameters |
256 | 292 | ---------- |
257 | 293 | ssl_check: bool |
@@ -296,6 +332,12 @@ def what_detection_limits(ssl_check=True, **kwargs): |
296 | 332 | def what_habitat_metrics(ssl_check=True, **kwargs): |
297 | 333 | """Search WQP for habitat metrics within a region with specific data. |
298 | 334 |
|
| 335 | + Any WQP API parameter can be passed as a keyword argument to this function. |
| 336 | + More information about the API can be found at: |
| 337 | + https://www.waterqualitydata.us/#advanced=true |
| 338 | + or the Swagger documentation at: |
| 339 | + https://www.waterqualitydata.us/data/swagger-ui/index.html?docExpansion=none&url=/data/v3/api-docs#/ |
| 340 | +
|
299 | 341 | Parameters |
300 | 342 | ---------- |
301 | 343 | ssl_check: bool |
@@ -334,6 +376,12 @@ def what_habitat_metrics(ssl_check=True, **kwargs): |
334 | 376 | def what_project_weights(ssl_check=True, **kwargs): |
335 | 377 | """Search WQP for project weights within a region with specific data. |
336 | 378 |
|
| 379 | + Any WQP API parameter can be passed as a keyword argument to this function. |
| 380 | + More information about the API can be found at: |
| 381 | + https://www.waterqualitydata.us/#advanced=true |
| 382 | + or the Swagger documentation at: |
| 383 | + https://www.waterqualitydata.us/data/swagger-ui/index.html?docExpansion=none&url=/data/v3/api-docs#/ |
| 384 | +
|
337 | 385 | Parameters |
338 | 386 | ---------- |
339 | 387 | ssl_check: bool |
@@ -375,6 +423,12 @@ def what_project_weights(ssl_check=True, **kwargs): |
375 | 423 | def what_activity_metrics(ssl_check=True, **kwargs): |
376 | 424 | """Search WQP for activity metrics within a region with specific data. |
377 | 425 |
|
| 426 | + Any WQP API parameter can be passed as a keyword argument to this function. |
| 427 | + More information about the API can be found at: |
| 428 | + https://www.waterqualitydata.us/#advanced=true |
| 429 | + or the Swagger documentation at: |
| 430 | + https://www.waterqualitydata.us/data/swagger-ui/index.html?docExpansion=none&url=/data/v3/api-docs#/ |
| 431 | +
|
378 | 432 | Parameters |
379 | 433 | ---------- |
380 | 434 | ssl_check: bool |
@@ -487,16 +541,19 @@ def _alter_kwargs(kwargs): |
487 | 541 |
|
488 | 542 | return kwargs |
489 | 543 |
|
| 544 | + |
490 | 545 | def _warn_v3_profiles_outage(): |
491 | 546 | """Private function for warning message about WQX 3.0 profiles |
492 | 547 | """ |
493 | 548 |
|
494 | | - warnings.warn(('USGS discrete water quality data availability ' |
495 | | - 'and format are changing. Beginning in March 2024 ' |
496 | | - 'the data obtained from legacy profiles will not ' |
497 | | - 'include new USGS data or recent updates to existing ' |
498 | | - 'data. To view the status of changes in data ' |
499 | | - 'availability and code functionality, visit: ' |
500 | | - 'https://doi-usgs.github.io/dataRetrieval/articles/Status.html. ' |
501 | | - 'If you have additional questions about these changes, ' |
502 | | - |
| 549 | + warnings.warn( |
| 550 | + 'USGS discrete water quality data availability ' |
| 551 | + 'and format are changing. Beginning in March 2024 ' |
| 552 | + 'the data obtained from legacy profiles will not ' |
| 553 | + 'include new USGS data or recent updates to existing ' |
| 554 | + 'data. To view the status of changes in data ' |
| 555 | + 'availability and code functionality, visit: ' |
| 556 | + 'https://doi-usgs.github.io/dataRetrieval/articles/Status.html. ' |
| 557 | + 'If you have additional questions about these changes, ' |
| 558 | + |
| 559 | + ) |
0 commit comments