Hello,
I’ve been trying to find a spatial data source that includes both sea surface temperature and bottom depth. Between the ECCO, HYCOM and NOAA websites I can find any number of variants with one or the other, but not one with both together. I’m trying to avoid merging separate topographical and SST data sources during remote download processing – repeatability concerns associated with subsampling resolutions, efficiency concerns using a large lookup grid (experimented doing this part post-extraction in R). So I’m trying to find a data source in which the two variables conveniently coexist and will remain the same (across updates) for a given location and date-time, unless a change is simply a consequence of edit revisions. Hoping for global, but North Atlantic would suffice. Anybody know of an option here?
Motivation – I’m fitting tracks of various shark species tagged with popoffs, where tag measures of sea surface temperature are reconciled with satellite measures of sea surface temperature to estimate the locations of the animals. The tags also monitor depth, so I would simply like to eliminate satellite SST candidates associated with bottom depths that are shoaler than the maximum diving depth of an animal for a given day.
Mark Fowler
Population Ecology Division
Bedford Inst of Oceanography
Dept Fisheries & Oceans
Dartmouth NS Canada
B2Y 4A2
Tel. (902) 426-3529
Fax (902) 426-9710
Email
Mark....@dfo-mpo.gc.ca
The time range will vary by tag, and we have over two hundred of these so far between 2005 and 2015. I see from the data.html link you provided that I can specify the date range (and spatial window) in the URL, which I'm familiar with. And as you say, selecting at Level 0 gets the SST. And I download a day at a time with error trapping (just a network hiccup carry on, recurrent failure stop trying). I use R for this, spin through a number of tags at a time. And we do have some Greenland sharks above 80N.
The data.html link solves the SST problem. But I'm still not seeing an equivalent for the bathymetry. How do I pick out the bottom depth? I've got depth_GLBa0.08_09.nc in R right now, and I can figure out how to pull dates and locations, but not the bottom depth. And can it be accessed by URL?
I'm thinking about how to efficiently merge the bottom depths and SST values at the same locations, maybe nothing more involved than using the same window in a URL?
Michael,
Now I can access the topography by URL – note this did not work trying to drill down in the catalog, but your hyperlink path did the trick Same applies to data.html – I cannot find a way to get to it without using your hyperlink. Similarly I cannot drill back up from your hyperlinks. Probably something wrong with the system at my end. In any case, I’m operational. Thank you very much.
I was using the default ‘netcdf’ format (netcdf3), which is equivalent to the NOAA ERDDAP format I’m familiar with, and the NOAA site is OPENDAP. Switched to netcdf4. In either case I can see the box where I expect the URL to be displayed, but not the URL (window pasted below). Clicking submit will download the extraction with netcdf4, but fail with netcdf as described earlier.
Without an URL I went to the subset documentation and tried to figure it out, but neither of the ‘disable’ variables are mentioned there. And I just tried the same thing cabbing from the URL you provided. That gets me closer (the more typical HTTP 500 error below) but still not there. This has to do with the OPENDAP? Although the NOAA targets were OPENDAP, I’m not aware what that has to do with the netcdf functions in R.
Error in download.file(link, dest, mode = "wb") :
In addition: Warning message:
In download.file(link, dest, mode = "wb") :
cannot open: HTTP status was '500 Internal Server Error'

From: Michael McDonald [mailto:michael....@hycom.org]
Sent: September 2, 2015 11:12 AM
To: HYCOM.org Forum
Cc: michael....@hycom.org; Fowler, Mark
Subject: Re: FW: associating SST and bottom depth
Never try and "guess" netcdf subset urls. The URL is displayed at the bottom of the interactive form page - which can be copied and pasted to the command line if you want to download via wget.
I can see the URL by switching from Explorer to Chrome, and in Chrome both netcdf and netcdf4 work interactively. But still at a loss how to pass the URL to R’s download.file function correctly (tried both netcdf and netcdf4).
Error in download.file(link, dest, mode = "wb") :
In addition: Warning message:
In download.file(link, dest, mode = "wb") :
cannot open: HTTP status was '500 Internal Server Error'
From: Michael McDonald [mailto:michael....@hycom.org]
Sent: September 2, 2015 11:12 AM
To: HYCOM.org Forum
Cc: michael....@hycom.org; Fowler, Mark
Subject: Re: FW: associating SST and bottom depth
Never try and "guess" netcdf subset urls. The URL is displayed at the bottom of the interactive form page - which can be copied and pasted to the command line if you want to download via wget.
Maybe nothing to do with the file functions. Tried the actual query interactively using Chrome (screenshot below). But this fails with…
last (-1) must be >= first (0)

From: Michael McDonald [mailto:michael....@hycom.org]
Sent: September 2, 2015 11:12 AM
To: HYCOM.org Forum
Cc: michael....@hycom.org; Fowler, Mark
Subject: Re: FW: associating SST and bottom depth
Never try and "guess" netcdf subset urls. The URL is displayed at the bottom of the interactive form page - which can be copied and pasted to the command line if you want to download via wget.
And I did figure out HYCOM uses the 0-360 longitude scale. Switching to this results in...
HTTP Status 500 - Internal Server Error
Status 500 - Internal Server Error
THREDDS Data Server Version 4.6 -- Documentation
Snapshot from Chrome, showing the URL being submitted:

From: Michael McDonald [mailto:michael....@hycom.org]
Sent: September 2, 2015 11:12 AM
To: HYCOM.org Forum
Cc: michael....@hycom.org; Fowler, Mark
Subject: Re: FW: associating SST and bottom depth
Never try and "guess" netcdf subset urls. The URL is displayed at the bottom of the interactive form page - which can be copied and pasted to the command line if you want to download via wget.
Hi Michael,
I was using -180 to 180 until my last attempt yesterday, and noticed that scrolling over the ‘Choose Spatial Subset’ map displayed 0-360 longitude coordinates, so switched. BTW I could not actually choose the window using that map, could not figure out a mouse-click combo that would produce a box.
The full download worked fine:
trying URL 'http://ncss.hycom.org/thredds/ncss/datasets/GLBa0.08/expt_91.1/topo/depth_GLBa0.08_09.nc?var=bathymetry&accept=netcdf'
Content type 'application/x-netcdf' length unknown
opened URL
downloaded 169.8 Mb
But subsetting (now back to -180 to 180) does not seem to work… (also tried this without &horizStride=1)
Error in download.file(link, dest, mode = "wb") :
In addition: Warning message:
In download.file(link, dest, mode = "wb") :
cannot open: HTTP status was '500 Internal Server Error'
From: Michael McDonald [mailto:michael....@hycom.org]
Sent: September 3, 2015 7:11 PM
To: HYCOM.org Forum
Cc: michael....@hycom.org; Fowler, Mark
Subject: Re: FW: associating SST and bottom depth
You are likely having a web browser issue.
Michael,
Some progress, at least now I know I can subset.
Content type 'application/x-netcdf' length unknown
opened URL
downloaded 7076 bytes
But if that means we don’t have bottom depth for the originally requested window I’m out of luck. And it doesn’t make sense. There is no spot on earth we don’t have that information. Are you able to obtain the depths for:
From: Michael McDonald [mailto:michael....@hycom.org]
Sent: September 3, 2015 7:11 PM
To: HYCOM.org Forum
Cc: michael....@hycom.org; Fowler, Mark
Subject: Re: FW: associating SST and bottom depth
You are likely having a web browser issue.