iwfm.util.get_usbr

iwfm.util.get_usbr(year, pdf_url, excel_filename='temp.xlsx')[source]

Save a data table from a USBR website into a csv file.

Parameters:
  • year (int or str) – Year of the data to be extracted (must be 4-digit year)

  • pdf_url (str) – The URL of the online PDF containing tables

  • excel_filename (str, default='temp.xlsx') – The name of the Excel file to save the extracted tables

Return type:

nothing

Raises: