Conveniently download USGS gauge flowrate data

The function 'usgs' will download data from USGS data servers using their web service.

You are now following this Submission

Nothing fancy but needed something to speed up the process when wanting to grab some USGS data. The function uses the RESTful web service protocols which is already a function (i.e., webread) in Matlab. My code is hardcoded expecting a JSON format.
You have an option to set a boolean to true if you want a simple graph created to view the data.
Thank you USGS!

Cite As

Jeff Burkey (2026). Conveniently download USGS gauge flowrate data (https://uk.mathworks.com/matlabcentral/fileexchange/164431-conveniently-download-usgs-gauge-flowrate-data), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2014b and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

Tweaked the input to the function call. I needed to include weboptions and adjust the 'timeout' setting for larger querries.

1.0.0