ZarrDatasets
ZarrDatasets.ZarrDataset
— Typeds = ZarrDataset(url::AbstractString,mode = "r";
- _omitcode = 404,
+ _omitcode = [404,403],
maskingvalue = missing)
ZarrDataset(f::Function,url::AbstractString,mode = "r";
- maskingvalue = missing)
Open the zarr dataset at the url or path url
. Only the read-mode is currently supported. ds
supports the API of the JuliaGeo/CommonDataModel.jl. The experimental _omitcode
allows to work-around servers that return HTTP error different than 404 for missing chunks.
Example:
using ZarrDatasets
+ maskingvalue = missing)
Open the zarr dataset at the url or path url
. The mode can only be "r" (read-only) or "c" (create). ds
supports the API of the JuliaGeo/CommonDataModel.jl. The experimental _omitcode
allows to work-around servers that return a HTTP error different than 404 for missing chunks.
Example:
using ZarrDatasets
url = "https://s3.waw3-1.cloudferro.com/mdl-arco-time-035/arco/MEDSEA_MULTIYEAR_PHY_006_004/med-cmcc-ssh-rean-d_202012/timeChunked.zarr"
ds = ZarrDataset(url);
# see the metadata
@@ -21,4 +21,4 @@
zos1 = ZarrDataset(url) do ds
ds["zos"][:,:,end,1]
-end # implicit call to close(ds)
Differences between Zarr and NetCDF files
- All metadata (in particular attributes) is stored in JSON files for the Zarr format with the following implications:
- JSON does not distinguish between integers and real numbers. They are all considered as generic numbers. Whole numbers are loaded as
Int64
and decimal numbersFloat64
. It is not possible to store the number1.0
as a real number. - The order of keys in a JSON document is undefined. It is therefore not possible to have a consistent ordering of the attributes or variables.
- The JSON standard does not allow NaN, +Inf, -Inf (https://github.com/capnproto/capnproto/issues/261).
- JSON does not distinguish between integers and real numbers. They are all considered as generic numbers. Whole numbers are loaded as