mikejohnson51 / opendap.catalog

Flexible backend for getting data from Web and local NetCDF resources into R
https://mikejohnson51.github.io/opendap.catalog
Other
7 stars 2 forks source link

Columbia IRI Require PW for some resources #1

Open mikejohnson51 opened 2 years ago

mikejohnson51 commented 2 years ago

To resolve this we need to see if a password can be passed to the system.

ATTN: @urskalbitzer

x [master*]> p = read_dap_file(URL = "http://iridl.ldeo.columbia.edu/SOURCES/.OSU/.PRISM/.monthly/dods", "prism")

x [master*]> p2 = read_dap_file(URL = "http://iridl.ldeo.columbia.edu/SOURCES/.UEA/.CRU/.TS4p05/.monthly/dods", "cru")

syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR
context: <html^><body><h1>401 Unauthorized</h1>User/password is required.</body></html>
Error in RNetCDF::open.nc(URL) : NetCDF: Authorization failure
Run `rlang::last_error()` to see where the error occurred.
urskalbitzer commented 2 years ago

Hi Mika, Thanks again looking into accessing the Cru TS4 data set. I am not sure if that if that is helpful, but apparently, it's the British Atmospheric Data Centre (BADC) that requires registration to access the data: https://iridl.ldeo.columbia.edu/SOURCES/.UEA/.CRU/.TS4p05/.getting_permission.html

However, it can be downloaded without registration here: https://crudata.uea.ac.uk/cru/data/hrg/ (but you already wrote that this is not helpful for the climateR package).

Can you use the Google Earth Interface? https://crudata.uea.ac.uk/cru/data/hrg/cru_ts_4.05/ge/ (apologies, but I don't really know how the accessing of the data works for packages like climateR that only get a subset of the data).

Best, Urs