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

Do the noaadata:waterlevel_dap() functions still work? #2

Open
drf5n opened this issue Oct 4, 2017 · 0 comments
Open

Do the noaadata:waterlevel_dap() functions still work? #2

drf5n opened this issue Oct 4, 2017 · 0 comments

Comments

@drf5n
Copy link

drf5n commented Oct 4, 2017

The feds moved on to https this last year or so, and lots of old http links are now broken. Does this package still work? I get errors on importing:

import noaadata.waterlevel_dap
...
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-1-cce3f05f6995> in <module>()
----> 1 import noaadata.waterlevel_dap

/Users/drf/anaconda/envs/python3/lib/python3.5/site-packages/noaadata/waterlevel_dap.py in <module>()
     29 datasetURL='http://opendap.co-ops.nos.noaa.gov/dods/IOOS/Raw_Water_Level'
     30 "OPeNDAP URL for NOAA CO-OPS database"
---> 31 waterlevelDataset=pydap.client.open(datasetURL)
     32 "This set only contains raw 6 minute water level data"
     33 waterlevelSeq = waterlevelDataset['WATERLEVEL_RAW_PX']

FileNotFoundError: [Errno 2] No such file or directory: 'http://opendap.co-ops.nos.noaa.gov/dods/IOOS/Raw_Water_Level'


The link in https://github.com/schwehr/noaadata/blob/master/noaadata/waterlevel_dap.py#L29 to datasetURL='http://opendap.co-ops.nos.noaa.gov/dods/IOOS/Raw_Water_Levelsort of has been superseded by the server at https://opendap.co-ops.nos.noaa.gov/erddap or

https://opendap.co-ops.nos.noaa.gov/erddap/tabledap/IOOS_Raw_Water_Level.html or

https://opendap.co-ops.nos.noaa.gov/erddap/tabledap/IOOS_Raw_Water_Level.dods?STATION_ID%2CDATUM%2CBEGIN_DATE%2CEND_DATE&time%3E=2017-09-27T00%3A00%3A00Z

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

1 participant