-
Notifications
You must be signed in to change notification settings - Fork 3
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
api.stations() not returning all stations #40
Comments
Hello @anthony-meza ; thank you for the suggestion and for opening this issue. When With that said, I've checked through some of the other 894 stations, and many of these also seem to have good temporal coverage and offer supported data formats. I'll update the NetCDF support would also be valuable to support first-class. The Thanks again and have an excellent rest of your day; |
I can share some code! I used ndbc-api yesterday to make some observation-model comparisons. I stored everything in netcdf format in one notebook. I'd be happy to see some of it make it into this package. I didn't write things as nice as you have though...I'll clean it all up and then link you to a repository. |
Here is a bunch of functions I made to put the NDBC data into netcdfs using ndbc.api. It's pretty focused, so I'm sure there are more bugs out there. My use case is extracting water temperatures "WTMP" from the historical record. https://github.com/anthony-meza/xBuoy/blob/main/src.py Here's a notebook using these functions: https://github.com/anthony-meza/xBuoy/blob/main/save_NDBC_subset.ipynb |
One suggestion I have for the |
Hello @anthony-meza; thank you again for opening this issue. Release The next release (unless there is a small bug fix release in the coming days) will support direct netcdf data export. This will likely be an option similar to In response to your suggestion in this comment we do indeed query data in parallel. There may be optimizations we can make here, and this is a recent change from #37 . I'll close this issue out and track netcdf support as a feature. Please feel free to open another issue with suggestions or submissions. One other interesting feature that might be worth implementing is a set of plotting utilities such as those in the code you linked to better visualize where stations are located, or for what date ranges data is available for given station. |
Hello @anthony-meza ; I've added direct support for This functionality is still somewhat experimental, but an example is added near the bottom of this notebook. Thanks again for the suggestions and have an excellent rest of your day! |
Hi,
great tool! I'm hoping to make a wrapper for this to easily put all this data into netcdfs. I noticed that api.stations() only lists 146 stations, not the full 894. Why is that?
Also it may be worth it to add an "instrument" column in this, so the user can filter for buoys, drifiting buoys or seabirds. I think this is contained in the "station_table.txt" file
The text was updated successfully, but these errors were encountered: