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

CDEC Rating Tables #66

Open
narlesky opened this issue May 19, 2022 · 0 comments
Open

CDEC Rating Tables #66

narlesky opened this issue May 19, 2022 · 0 comments
Labels
feeds support a new data feed good first issue Good for newcomers

Comments

@narlesky
Copy link
Member

Task

CDEC provides a number of flow-stage rating tables for river guidance points. These are sourced from USGS and 'LOGLOG2FLO'. Provide a Python binding for retrieving these rating tables as a series of paired flow and stage values, as well as relevant metadata. Primary function should follow pattern:

def get_station_rating_table(station):
    """
    content of the docstring
    """
    <...function logic...>
    returns {'data': <the resulting paired data, often a list or dataframe>,
             'info': { <dictionary of the rating table meta data> }}

Steps

  • review catalog of rating tables at https://cdec.water.ca.gov/rtables/
  • develop function to parse HTML stage rating table
  • develop function to extract metadata from page (title, last revision date stamp, river basin, elevation, rating table number, curve, scale offset, other?)
  • provide adequate error messaging for invalid station arguments
  • develop function to retrieve list of stations with rating curve information
  • integrate into collect.dwr.cdec module

Testing Goals

  • Ensure function returns expected results for valid CDEC stations

Breaking Changes

None anticipated

Priority

TBD

@narlesky narlesky added good first issue Good for newcomers feeds support a new data feed labels May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feeds support a new data feed good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant