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

datasetID or Dataset ID #14

Closed
rsignell-usgs opened this issue Dec 3, 2017 · 6 comments
Closed

datasetID or Dataset ID #14

rsignell-usgs opened this issue Dec 3, 2017 · 6 comments

Comments

@rsignell-usgs
Copy link

If you query ERDDAP using allDatasets, dataset ID is returned as datasetID.

If you query ERDDAP using advanced search , dataset ID is returned as Dataset ID.

Is there a reason for this?

It's not a big deal, but it messed me up for a bit when writing my little ERDDAP time series explorer.

To pull the lon/lat values from the allDatasets table that matched the datasets returned from advanced search, I needed to do:

dfr = dfll[dfll['datasetID'].isin(dfa['Dataset ID'])]

https://github.com/reproducible-notebooks/ERDDAP_timeseries_explorer/blob/master/ERDDAP_timeseries_explorer.py#L214

@BobSimons
Copy link
Collaborator

BobSimons commented Dec 5, 2017 via email

@rsignell-usgs
Copy link
Author

rsignell-usgs commented Dec 5, 2017

@BobSimons this all sounds reasonable, but I don't know if this explains why if you query ERDDAP using allDatasets, you get datasetID, and if you query ERDDAP using advanced search , you get Dataset ID. Both are being returned as csv.

@BobSimons
Copy link
Collaborator

BobSimons commented Dec 5, 2017 via email

@rsignell-usgs
Copy link
Author

Ah, okay. Now I get it.

@BobSimons
Copy link
Collaborator

BobSimons commented Dec 5, 2017 via email

@rsignell-usgs
Copy link
Author

I was actually expecting you to say this: better to have a minor imperfection than break people's code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants