Skip to content

Commit 0fc2168

Browse files
committed
Fix tests
1 parent e1137b5 commit 0fc2168

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/datasets.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ h = get_var_handle(ds_nc, "tas")
2121
end
2222

2323
@testset "Reading Zarr" begin
24-
p = "gs://cmip6/CMIP/NCAR/CESM2/historical/r9i1p1f1/Amon/tas/gn/"
25-
ds_zarr = to_dataset(p)
24+
p = "gs://cmip6/CMIP6/HighResMIP/CMCC/CMCC-CM2-HR4/highresSST-present/r1i1p1f1/6hrPlev/psl/gn/v20170706/"
25+
ds_zarr = to_dataset(p)
2626
vn = get_varnames(ds_zarr)
27-
@test sort(vn) == ["lat", "lat_bnds", "lon", "lon_bnds", "tas", "time", "time_bnds"]
28-
@test get_var_dims(ds_zarr, "tas") == ["lon", "lat", "time"]
27+
@test sort(vn) == ["lat", "lat_bnds", "lon", "lon_bnds", "psl", "time", "time_bnds"]
28+
@test get_var_dims(ds_zarr, "psl") == ["lon", "lat", "time"]
2929
@test get_var_dims(ds_zarr, "time") == ["time"]
30-
@test get_var_dims(ds_zarr, "time_bnds") == ["nbnd", "time"]
31-
@test get_var_attrs(ds_zarr,"tas")["long_name"] == "Near-Surface Air Temperature"
32-
h = get_var_handle(ds_zarr, "tas")
33-
@test all(isapprox.(h[1:2,1:2,1], [244.39726 245.79759; 244.39726 245.7486]))
30+
@test get_var_dims(ds_zarr, "time_bnds") == ["bnds", "time"]
31+
@test get_var_attrs(ds_zarr,"psl")["long_name"] == "Sea Level Pressure"
32+
h = get_var_handle(ds_zarr, "psl")
33+
@test all(isapprox.(h[1:2,1:2,1], [99360.8 99334.9; 99360.8 99335.4]))
3434
@test allow_parallel_write(ds_zarr) == true
3535
@test allow_missings(ds_zarr) == true
3636
end

0 commit comments

Comments
 (0)