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
NWIS data retrieval enhancement ideas #75
Comments
…set, and including metadata (#75) [skip ci]
@cheginit , I just tried the lastest from master, and it worked great! |
Great. Thanks! |
… that is, all station number are unique. This prevents an issue with setting attrs where duplicate indexes cause an exception when being converted to a dict (#75) [skip ci]
@cheginit , I just realized that if I requested 6000 stations, I would get 6000 variables. It would be better if the stations were a new dimension (e.g. "station_id" or "feature_id") and we also had a "station_id" or "feature_id" variable that contained the name (character or int, I guess). Would that be difficult? Should I submit a new ticket? |
@rsignell-usgs I actually thought about this. The issue with this approach is that I have to include all station-specific attrs such as station name, lon, lat, etc as a new coordinate. So there is going to be too many dims. At the moment each station has 9 attributes, for example: My initial approach looks like this: But at the end I just went with the simplest solution to keep all the attrs. I am open to suggestions. Having time and station ID as dims is more in line with |
…dding all other station attrs as variables (#75). [skip ci]
@cheginit, that's a great idea!!! Love it! |
Great! I'll probably release a new version late Dec. Till then, you can use it by installing from the main branch. |
It would be great to be able to set some parameter to ensure that the retrieved NWIS data are in UTC.
Also it would be nice to have the ability to return the data (along with metadata such as units!) as an xarray dataset instead of a pandas dataframe.
There is an example NWIS code here by @dnowacki-usgs that optionally returns an xarray dataset.
The text was updated successfully, but these errors were encountered: