-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing get_pmcodes, making multi-level indexing optional, and adding …
…missing data to get_qwdata and get_gwlevels (#53) * New get_pmcodes function This upload fixes issue #17. * Update nwis.py * Update nwis.py * Update waterdata_pmcodes.txt * This PR fixes issue #18. * Update waterdata_pmcodes.txt * fix the metadata test for variable_info * update tests to mock multiple parameter_cd * update test_get_info parameter_cd to a list * This upload fixes issue #20 * Fix issue #21 * This upload fixes issue #22 * Revert "This upload fixes issue #20" This reverts commit 938c3d5. * Revert 66b8b7c, acd1a54, 938c3d5 * Making multi-level indexing optional This modification addresses issue #25 by adding an additional parameter multi_index to some functions. When multi_index=False the output will be a dataframe with a single-level index (datetime) independently of the number of sites being queried. * Update nwis.py * Returning all raw data from get_qwdata and get_gwleveles This addresses issue #27 by modifying the function that parses date and time from get_qwdata and get_gwleveles avoiding data loss. Co-authored-by: Scott Black <sblack@cuahsi.org> Co-authored-by: Nouri1992 <46764664+Nouri1992@users.noreply.github.com> Co-authored-by: Nouri1992 <nour.atallah@usu.edu>
- Loading branch information
1 parent
f10dc03
commit 7164878
Showing
5 changed files
with
98 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
# | ||
# | ||
# USGS Parameter Code Definitions File | ||
# | ||
# Column Definitions | ||
# parameter_cd - Parameter Code | ||
# parameter_group_nm - Group Name | ||
# casrn - CASRN | ||
# srsname - SRSName | ||
# parameter_units - Parameter Unit | ||
# parameter_nm - Parameter Name/Description | ||
# | ||
# | ||
# Date Retrieved: 2020-04-16 18:48:43 EDT | ||
# | ||
parameter_cd parameter_group_nm casrn srsname parameter_units parameter_nm | ||
5s 30s 170s 170s 16s 170s | ||
00618 Nutrient Nitrate, water, filtered, milligrams per liter as nitrogen 14797-55-8 Nitrate mg/l as N | ||
# | ||
# National Water Information System | ||
# 2022/06/08 | ||
# | ||
# | ||
# Date Retrieved: USGS Water Data for the Nation Help System | ||
# | ||
parameter_cd group parm_nm epa_equivalence result_statistical_basis result_time_basis result_weight_basis result_particle_size_basis result_sample_fraction result_temperature_basis CASRN SRSName parm_unit | ||
5s 8s 58s 5s 0s 0s 0s 0s 9s 0s 10s 7s 9s | ||
00618 Nutrient Nitrate, water, filtered, milligrams per liter as nitrogen Agree Dissolved 14797-55-8 Nitrate mg/l as N |
Oops, something went wrong.