Skip to content

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

Description

@drf5n

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions