Skip to content

Commit 9e89a4b

Browse files
rename OPENDAP to CDMDataset for HYCOM (issue #18)
1 parent a14dc6f commit 9e89a4b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/HYCOM.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function HYCOM(url,cachedir; chunks = 60)
55
:sea_surface_height_above_geoid => "surf_el",
66
)
77

8-
return OPENDAP(
8+
return CDMDataset(
99
NCDataset,
1010
DefaultDict{Symbol,String,String}(url),
1111
cachedir = cachedir,

test/test_hycom.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ using Test
33
using NCDatasets
44
using Dates
55

6-
#=
76
# todo: test new URL once HYCOM dataset is back again
87
# since to 2018-12-04 to Present *3-hourly* (state 2022-07-21)
9-
#url = "https://tds.hycom.org/thredds/dodsC/GLBy0.08/expt_93.0"
8+
url = "https://tds.hycom.org/thredds/dodsC/GLBy0.08/expt_93.0"
109

1110

1211
# URL from https://www.hycom.org/data/glbu0pt08/expt-91pt0
@@ -27,8 +26,8 @@ yr = [42, 44.5];
2726

2827
t0 = DateTime(2019,1,2);
2928
t1 = DateTime(2019,1,4);
30-
t0 = DateTime(2013,9,1);
31-
t1 = DateTime(2013,9,4);
29+
#t0 = DateTime(2013,9,1);
30+
#t1 = DateTime(2013,9,4);
3231
tr = [t0-Dates.Day(1), t1+Dates.Day(1)]
3332

3433
ROMS.download(ds,:sea_surface_height_above_geoid,
@@ -44,4 +43,3 @@ T,(x,y,z,t) = ROMS.load(
4443
ds,:sea_water_potential_temperature,
4544
longitude = xr, latitude = yr, time = tr)
4645

47-
=#

0 commit comments

Comments
 (0)