-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* this should work * better naming * only one download * add download test * joinpath does not work on windows * test also downloading the bathymetry * test dowloading bathymetry * restore tests * gracefull downloading * try it now * fix typo * make sure we delete the previous data before testing the download * should work * test distributed downloading * Update test_distributed_utils.jl * fix the download * generalize the downloader * generalize more * generalize filename * download_progress is part of the downloading utilities * better docstring * better docstring * change docstring * fix tests * distribute among tasks * whoops added wrong file * correct looping * bugfix
- Loading branch information
1 parent
b73c67c
commit 6d3d822
Showing
12 changed files
with
149 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
include("runtests_setup.jl") | ||
|
||
using ClimaOcean.ECCO: metadata_path | ||
|
||
@testset "Availability of JRA55 data" begin | ||
@info "Testing that we can download all the JRA55 data..." | ||
for name in ClimaOcean.DataWrangling.JRA55.JRA55_variable_names | ||
|
||
fts = ClimaOcean.JRA55.JRA55_field_time_series(name; time_indices=2:3) | ||
end | ||
end | ||
|
||
@testset "Availability of ECCO data" begin | ||
@info "Testing that we can download ECCO data..." | ||
for variable in keys(ClimaOcean.ECCO.ECCO4_short_names) | ||
metadata = ECCOMetadata(variable) | ||
filepath = metadata_path(metadata) | ||
isfile(filepath) && rm(filepath; force=true) | ||
ClimaOcean.ECCO.download_dataset(metadata) | ||
end | ||
end | ||
|
||
@testset "Availability of the Bathymetry" begin | ||
@info "Testing that we can download the bathymetry..." | ||
dir="./" | ||
filename="ETOPO_2022_v1_60s_N90W180_surface.nc" | ||
filepath=joinpath(dir, filename) | ||
isfile(filepath) && rm(filepath; force=true) | ||
download_bathymetry(; dir, filename) | ||
end |