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

Support and Examples for Using USGS Stations #119

Closed
SorooshMani-NOAA opened this issue Nov 27, 2023 · 3 comments · Fixed by #120
Closed

Support and Examples for Using USGS Stations #119

SorooshMani-NOAA opened this issue Nov 27, 2023 · 3 comments · Fixed by #120
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@SorooshMani-NOAA
Copy link
Contributor

@Delta-function, @Rjialceky during our last observation data meeting we discussed the interest in using searvey for retrieving USGS data as well as the lack of example for getting station data based on the station ID. We'd like to work with you to add such example and also support the use of searvey in your workflow, so we were wondering what sort of input and output data do you have in mind for your use-case, so that we can work on providing an example of achieving that.

Searvey USGS module extracts instantaneous value data for stations from NWIS API. Is it sufficient for example to demonstrate how a given list of station IDs (in the form of list of strings input) can be used to retrieve an xarray.Dataset object filled with station data? Or do you have anything else in mind?

Thank you in advance for your feedback!

@SorooshMani-NOAA SorooshMani-NOAA self-assigned this Nov 27, 2023
@SorooshMani-NOAA SorooshMani-NOAA added help wanted Extra attention is needed documentation Improvements or additions to documentation labels Nov 27, 2023
@Delta-function
Copy link

Soroosh, to illustrate my use-case, I uploaded my Matlab script that does what I need: gets station data based on a list of stations IDs, and saves the data in netcdf files. Please see this scenario here:
https://github.com/noaa-ocs-modeling/VDatum-Spatially-Varying-Uncertainty/tree/main/utilities
If you have Matlab, you can play this use-case by copying both files (*.m and *.txt), creating a dir USGSdata for the output files, and then running *.m.
Thanks!

@SorooshMani-NOAA
Copy link
Contributor Author

Thank you @Delta-function, I'll play with the Matlab code and write something with searvey to get similar results.

@SorooshMani-NOAA
Copy link
Contributor Author

@Delta-function please see https://github.com/SorooshMani-NOAA/searvey/blob/enhance/usgs_examples/examples/USGS_by_id.ipynb for the example of using searvey to download data and format and save it as you do in the Matlab code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants