diff --git a/src/DataWrangling/ECCO/ECCO_metadata.jl b/src/DataWrangling/ECCO/ECCO_metadata.jl index 7e3a9d99..17336be7 100644 --- a/src/DataWrangling/ECCO/ECCO_metadata.jl +++ b/src/DataWrangling/ECCO/ECCO_metadata.jl @@ -47,7 +47,7 @@ Base.summary(md::ECCOMetadata{<:AbstractCFDateTime, <:ECCO2Monthly}) = "ECCO2Mon Base.summary(md::ECCOMetadata{<:AbstractCFDateTime, <:ECCO4Monthly}) = "ECCO4Monthly $(md.name) metadata at $(md.dates)" """ - ECCOMetadata(name::Symbol; + ECCOMetadata(name::Symbol; dates = DateTimeProlepticGregorian(1993, 1, 1), version = ECCO4Monthly(), dir = download_ECCO_cache) @@ -77,9 +77,6 @@ function ECCOMetadata(name::Symbol; return ECCOMetadata(name, dates, version, dir) end -ECCOMetadata(name::Symbol, date, version=ECCO4Monthly(); dir=download_ECCO_cache) = - ECCOMetadata(name, date, version, dir) - # Treat ECCOMetadata as an array to allow iteration over the dates. Base.eltype(metadata::ECCOMetadata) = Base.eltype(metadata.dates) diff --git a/test/test_ecco.jl b/test/test_ecco.jl index 04a125d3..97f8dde7 100644 --- a/test/test_ecco.jl +++ b/test/test_ecco.jl @@ -185,7 +185,7 @@ end ocean = ocean_simulation(grid) date = DateTimeProlepticGregorian(1993, 1, 1) - set!(ocean.model, T=ECCOMetadata(:temperature, date), S=ECCOMetadata(:salinity, date)) + set!(ocean.model, T=ECCOMetadata(:temperature; dates=date), S=ECCOMetadata(:salinity; dates=date)) end end