AustralianAntarcticDivision / blueant

Environmental data for Antarctic and Southern Ocean science
https://australianantarcticdivision.github.io/blueant/
Other
15 stars 2 forks source link

oceancolor bad/illegal url #22

Closed ryanreisinger closed 4 years ago

ryanreisinger commented 4 years ago

Attempting to download oceancolor chlrophyll-a concentration as follows:

library(bowerbird)
library(blueant)

my_directory <- tempdir()
cf <- bb_config(local_file_root = my_directory)
src <- sources(name="Oceandata SeaWiFS Level-3 mapped monthly 9km chl-a")
src$user <- your_username # I use a valid username in the real case
src$password <- your_password # I use a valid password in the real case
cf <- bb_add(cf, src)
status <- bb_sync(cf, verbose = TRUE)

Results in the following error:

Mon Apr 27 11:51:31 2020
Synchronizing dataset: Oceandata SeaWiFS Level-3 mapped monthly 9km chl-a
--------------------------------------------------------------------------------------------

 this dataset path is: D:\R\temp\RtmpAbhksx/oceandata.sci.gsfc.nasa.gov/SeaWiFS/Mapped
Downloading file list ... 

157 files to download
Downloading: https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/S19972441997273.L3m_MO_CHL_chlor_a_9km.nc ... 
-> GET /cgi/getfile/S19972441997273.L3m_MO_CHL_chlor_a_9km.nc HTTP/1.1
-> Host: oceandata.sci.gsfc.nasa.gov
-> Authorization: Basic cnlhbi5yLnJlaXNpbmdlckBnbWFpbC5jb206eHJWVzRiOFM3NDhmNTZu
-> User-Agent: libcurl/7.64.1 r-curl/4.3 httr/1.4.1
-> Accept-Encoding: gzip, deflate
-> Cookie: app-obdaac=689d4bf0829319305d2b5c2dcef72ad1abd72450--df6b48a0bd4b17e2d523986863d4b881584f04cb
-> Accept: application/json, text/xml, application/xml, */*
-> 
<- HTTP/1.1 302 Found
<- Server: nginx
<- Date: Mon, 27 Apr 2020 18:53:15 GMT
<- Transfer-Encoding: chunked
<- Connection: keep-alive
<- Keep-Alive: timeout=60
<- Location: /ob/getfile/S19972441997273.L3m_MO_CHL_chlor_a_9km.nc
<- Referrer-Policy: no-referrer
<- Expect-CT: max-age=31536000, enforce
<- Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
<- Content-Security-Policy: upgrade-insecure-requests; default-src 'self' oceancolor.gsfc.nasa.gov data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' www.google-analytics.com www.googletagmanager.com cdn.earthdata.nasa.gov dap.digitalgov.gov data:; style-src 'self' 'unsafe-inline' code.jquery.com cdn.earthdata.nasa.gov; img-src 'self' data: oceancolor.gsfc.nasa.gov www.google-analytics.com cdn.earthdata.nasa.gov
<- 
There was a problem synchronizing the dataset: Oceandata SeaWiFS Level-3 mapped monthly 9km chl-a.
The error message was: URL using bad/illegal format or missing URL 
raymondben commented 4 years ago

Thanks for the report @ryanreisinger - could you reinstall blueant and try again pls?

ryanreisinger commented 4 years ago

Thanks for the update, @raymondben. Works like a charm now -- at least for the one source I've tried ("Oceandata VIIRS Level-3 mapped 32-day 9km chl-a").