Release notes¶
v1.3.3 (unreleased)¶
New Features¶
- Added a pluggable system of "parsers" for generating virtual references from different filetypes. These follow the
virtualizarr.parsers.typing.Parser
typing protocol, and returnManifestStore
objects wrapping obstore stores. (#498, #601) - Adds a Zarr parser to
open_virtual_dataset
, which allows opening Zarr V3 stores as virtual datasets. (#271) By Raphael Hagen. - Added experimental ManifestStore (#490).
- Added
ManifestStore.to_virtual_dataset()
method (#522). By Tom Nicholas. - Added experimental
open_virtual_mfdataset
function (#345, #349). By Tom Nicholas. - Added
datatree_to_icechunk
function for writing anxarray.DataTree
to an Icechunk store (#244). By Chuck Daniels. - Added a
.virtualize
custom accessor toxarray.DataTree
, exposing the methodxarray.DataTree.virtualize.to_icechunk()
for writing anxarray.DataTree
to an Icechunk store (#244). By Chuck Daniels.
Breaking changes¶
- As
virtualizarr.open_virtual_dataset
now uses parsers, it's API has changed. #601) - Which variables are loadable by default has changed. The behaviour is now to make loadable by default the
same variables which
xarray.open_dataset
would create indexes for: i.e. one-dimensional coordinate variables whose name matches the name of their only dimension (also known as "dimension coordinates"). Pandas indexes will also now be created by default for these loadable variables. This is intended to provide a more friendly default, as often you will want these small variables to be loaded (or "inlined", for efficiency of storage in icechunk/kerchunk), and you will also want to have in-memory indexes for these variables (to allowxarray.combine_by_coords
to sort using them). The old behaviour is equivalent to passingloadable_variables=[]
andindexes={}
. (#335, #477) by Tom Nicholas. - Moved
ChunkManifest
,ManifestArray
etc. to be behind a dedicated.manifests
namespace. (#620, #624) By Tom Nicholas.
Deprecations¶
Bug fixes¶
- Fixed bug causing ManifestArrays to compare as not equal when they were actually identical (#501, #502) By Tom Nicholas.
- Fixed bug causing coordinates to be demoted to data variables when writing to Icechunk (#574, #588) By Tom Nicholas.
Documentation¶
- Added new docs page on how to write a custom parser for bespoke file formats (#452, #580) By Tom Nicholas.
- Added new docs page on how to scale VirtualiZarr effectively#590. By Tom Nicholas.
- Documented the new [
virtualizarr.open_virtual_mfdataset
] function #590. By Tom Nicholas. - Added MUR SST virtual and zarr icechunk store generation using lithops example. (#475) by Aimee Barciauskas.
- Added FAQ answer about what data can be virtualized (#430, #532) By Tom Nicholas.
- Switched docs build to use mkdocs-material instead of sphinx (#615) By Max Jones.
Internal Changes¶
ManifestArrays
now internally use zarr.core.metadata.v3.ArrayV3Metadata. This replaces theZArray
class that was previously used to store metadata about manifest arrays. (#429) By Aimee Barciauskas. Notable internal changes:- Make zarr-python a required dependency with a minimum version
>=3.0.2
. - Specify a minimum numcodecs version of
>=0.15.1
. - When creating a
ManifestArray
, themetadata
property should be anzarr.core.metadata.v3.ArrayV3Metadata
object. There is a helper functioncreate_v3_array_metadata
which should be used, as it has some useful defaults and includesconvert_to_codec_pipeline
(see next bullet). - The function
convert_to_codec_pipeline
ensures the codec pipeline passed toArrayV3Metadata
has valid codecs in the expected order (ArrayArrayCodec
s,ArrayBytesCodec
,BytesBytesCodec
s) and includes the requiredArrayBytesCodec
using the default for the data type. - Note:
convert_to_codec_pipeline
uses the zarr-python functionget_codec_class
to convert codec configurations (i.e.dict
s with a name and configuration key, see parse_named_configuration) to valid Zarr V3 codec classes. - Parser changes are minimal.
- Writer changes:
- Kerchunk uses Zarr version format 2 so we convert
ArrayV3Metadata
toArrayV2Metadata
using theconvert_v3_to_v2_metadata
function. This means theto_kerchunk_json
function is now a bit more complex because we're convertingArrayV2Metadata
filters and compressor to serializable objects. - zarr-python 3.0 does not yet support the big endian data type. This means that FITS and NetCDF-3 are not currently supported (zarr-python issue #2324).
- zarr-python 3.0 does not yet support datetime and timedelta data types (zarr-python issue #2616).
- Make zarr-python a required dependency with a minimum version
- The continuous integration workflows and developer environment now use pixi (#407).
- Added
loadable_variables
kwarg toManifestStore.to_virtual_dataset
. (#543) By Tom Nicholas.
v1.3.2 (3rd Mar 2025)¶
Small release which fixes a problem causing the docs to be out of date, fixes some issues in the tests with unclosed file handles, but also increases the performance of writing large numbers of virtual references to Icechunk!
New Features¶
Breaking changes¶
- Minimum supported version of Icechunk is now
v0.2.4
(#462) By Tom Nicholas.
Deprecations¶
Bug fixes¶
Documentation¶
Internal Changes¶
- Updates
store.set_virtual_ref
tostore.set_virtual_refs
inwrite_manifest_virtual_refs
(#443) By Raphael Hagen.
v1.3.1 (18th Feb 2025)¶
New Features¶
- Examples use new Icechunk syntax
Breaking changes¶
- Reading and writing Zarr chunk manifest formats are no longer supported. (#359), (#426). By Raphael Hagen.
Deprecations¶
Bug fixes¶
Documentation¶
Internal Changes¶
v1.3.0 (3rd Feb 2025)¶
This release stabilises our dependencies - you can now use released versions of VirtualiZarr, Kerchunk, and Icechunk all in the same environment!
It also fixes a number of bugs, adds minor features, changes the default reader for HDF/netCDF4 files, and includes refactors to reduce code redundancy with zarr-python v3. You can also choose which sets of dependencies you want at installation time.
New Features¶
- Optional dependencies can now be installed in groups via pip. See the installation docs. (#309) By Tom Nicholas.
- Added a
.nbytes
accessor method which displays the bytes needed to hold the virtual references in memory. (#167, #227) By Tom Nicholas. - Upgrade icechunk dependency to
>=0.1.0a12
. (#406) By Julia Signell. - Sync with Icechunk v0.1.0a8 (#368) By Matthew Iannucci. This also adds support
for the
to_icechunk
method to add timestamps as checksums when writing virtual references to an icechunk store. This is useful for ensuring that virtual references are not stale when reading from an icechunk store, which can happen if the underlying data has changed since the virtual references were written. - Add
group=None
keyword-only parameter to theVirtualiZarrDatasetAccessor.to_icechunk
method to allow writing to a nested group at a specified group path (rather than defaulting to the root group, when no group is specified). (#341) By Chuck Daniels.
Breaking changes¶
- Passing
group=None
(the default) toopen_virtual_dataset
for a file with multiple groups no longer raises an error, instead it gives you the root group. This new behaviour is more consistent withxarray.open_dataset
. (#336, #338) By Tom Nicholas. - Indexes are now created by default for any loadable one-dimensional coordinate variables.
Also a warning is no longer thrown when
indexes=None
is passed toopen_virtual_dataset
, and the recommendations in the docs updated to match. This also means thatxarray.combine_by_coords
will now work when the necessary dimension coordinates are specified inloadable_variables
. (#18, #357, #358) By Tom Nicholas. - The
append_dim
andlast_updated_at
parameters of theVirtualiZarrDatasetAccessor.to_icechunk
method are now keyword-only parameters, rather than positional or keyword. This change is breaking only where arguments for these parameters are currently given positionally. (#341) By Chuck Daniels. - The default backend for netCDF4 and HDF5 is now the custom
HDFVirtualBackend
replacing the previous default which was a wrapper around the kerchunk backend. (#374, #395) By Julia Signell. - Optional dependency on kerchunk is now the newly-released v0.2.8. This release of kerchunk is compatible with zarr-python v3.0.0, which means a released version of kerchunk can now be used with both VirtualiZarr and Icechunk. (#392, #406, #412) By Julia Signell and Tom Nicholas.
Deprecations¶
Bug fixes¶
- Fix bug preventing generating references for the root group of a file when a subgroup exists. (#336, #338) By Tom Nicholas.
- Fix bug in HDF reader where dimension names of dimensions in a subgroup would be incorrect. (#364, #366) By Tom Nicholas.
- Fix bug in dmrpp reader so _FillValue is included in variables' encodings. (#369) By Aimee Barciauskas.
- Fix bug passing arguments to FITS reader, and test it on Hubble Space Telescope data. (#363) By Tom Nicholas.
Documentation¶
- Change intro text in readme and docs landing page to be clearer, less about the relationship to Kerchunk, and more about why you would want virtual datasets in the first place. (#337) By Tom Nicholas.
Internal Changes¶
- Add netCDF3 test. (#397) By Tom Nicholas.
v1.2.0 (5th Dec 2024)¶
This release brings a stricter internal model for manifest paths, support for appending to existing icechunk stores, an experimental non-kerchunk-based HDF5 reader, handling of nested groups in DMR++ files, as well as many other bugfixes and documentation improvements.
New Features¶
- Add a
virtual_backend_kwargs
keyword argument to file readers and toopen_virtual_dataset
, to allow reader-specific options to be passed down. (#315) By Tom Nicholas. - Added append functionality to
to_icechunk
(#272) By Aimee Barciauskas.
Breaking changes¶
- Minimum required version of Xarray is now v2024.10.0. (#284) By Tom Nicholas.
- Minimum required version of Icechunk is now v0.1.1. (#419) By Tom Nicholas.
- Minimum required version of Kerchunk is now v0.2.8. (#406) By Julia Signell.
- Opening kerchunk-formatted references from disk which contain relative paths now requires passing the
fs_root
keyword argument viavirtual_backend_kwargs
. (#243) By Tom Nicholas.
Deprecations¶
Bug fixes¶
- Handle root and nested groups with
dmrpp
backend (#265) By Ayush Nag. - Fixed bug with writing of
dimension_names
into zarr metadata. (#286) By Tom Nicholas. - Fixed bug causing CF-compliant variables not to be identified as coordinates (#191) By Ayush Nag.
Documentation¶
- FAQ answers on Icechunk compatibility, converting from existing Kerchunk references to Icechunk, and how to add a new reader for a custom file format. (#266) By Tom Nicholas.
- Clarify which readers actually currently work in FAQ, and temporarily remove tiff from the auto-detection. (#291, #296) By Tom Nicholas.
- Minor improvements to the Contributing Guide. (#298) By Tom Nicholas.
- More minor improvements to the Contributing Guide. (#304) By Doug Latornell.
- Correct some links to the API. (#325) By Tom Nicholas.
- Added links to recorded presentations on VirtualiZarr. (#313) By Tom Nicholas.
- Added links to existing example notebooks. (#329, #331) By Tom Nicholas.
Internal Changes¶
- Added experimental new HDF file reader which doesn't use kerchunk, accessible by importing
virtualizarr.readers.hdf.HDFVirtualBackend
. (#87) By Sean Harkins. - Support downstream type checking by adding py.typed marker file. (#306) By Max Jones.
- File paths in chunk manifests are now always stored as absolute URIs. (#243) By Tom Nicholas.
v1.1.0 (22nd Oct 2024)¶
New Features¶
- Can open
kerchunk
reference files withopen_virtual_dataset
. (#251, #186) By Raphael Hagen & Kristen Thyng. - Adds defaults for
open_virtual_dataset_from_v3_store
in (#234) By Raphael Hagen. - New
group
option onopen_virtual_dataset
enables extracting specific HDF Groups. (#165) By Scott Henderson. - Adds
decode_times
to open_virtual_dataset (#232) By Raphael Hagen. - Add parser for the OPeNDAP DMR++ XML format and integration with open_virtual_dataset (#113) By Ayush Nag.
- Load scalar variables by default. (#205) By Gustavo Hidalgo.
- Support empty files (#260) By Justus Magin.
- Can write virtual datasets to Icechunk stores using
virtualize.to_icechunk
(#256) By Matt Iannucci.
Breaking changes¶
- Serialize valid ZarrV3 metadata and require full compressor numcodec config (for #193) By Gustavo Hidalgo.
- VirtualiZarr's
ZArray
,ChunkEntry
, andCodec
no longer subclasspydantic.BaseModel
(#210) ZArray
's__init__
signature has changed to matchzarr.Array
's (#210)
Deprecations¶
- Depreciates cftime_variables in open_virtual_dataset in favor of decode_times. (#232) By Raphael Hagen.
Bug fixes¶
- Exclude empty chunks during
ChunkDict
construction. (#198) By Gustavo Hidalgo. - Fixed regression in
fill_value
handling for datetime dtypes making virtual Zarr stores unreadable (#206) By Timothy Hodson
Documentation¶
- Adds virtualizarr + coiled serverless example notebook (#223) By Raphael Hagen.
Internal Changes¶
- Refactored internal structure significantly to split up everything to do with reading references from that to do with writing references. (#229) (#231) By Tom Nicholas.
- Refactored readers to consider every filetype as a separate reader, all standardized to present the same
open_virtual_dataset
interface internally. (#261) By Tom Nicholas.
v1.0.0 (9th July 2024)¶
This release marks VirtualiZarr as mostly feature-complete, in the sense of achieving feature parity with kerchunk's logic for combining datasets, providing an easier way to manipulate kerchunk references in memory and generate kerchunk reference files on disk.
Future VirtualiZarr development will focus on generalizing and upstreaming useful concepts into the Zarr specification, the Zarr-Python library, Xarray, and possibly some new packages. See the roadmap in the documentation for details.
New Features¶
- Now successfully opens both tiff and FITS files. (#160, #162) By Tom Nicholas.
- Added a
.rename_paths
convenience method to rename paths in a manifest according to a function. (#152) By Tom Nicholas. - New
cftime_variables
option onopen_virtual_dataset
enables encoding/decoding time. (#122) By Julia Signell.
Breaking changes¶
- Requires numpy 2.0 (for #107). By Tom Nicholas.
Deprecations¶
Bug fixes¶
- Ensure that
_ARRAY_DIMENSIONS
are dropped from variable.attrs
. (#150, #152) By Tom Nicholas. - Ensure that
.attrs
on coordinate variables are preserved during round-tripping. (#155, #154) By Tom Nicholas. - Ensure that non-dimension coordinate variables described via the CF conventions are preserved during round-tripping. (#105, #156) By Tom Nicholas.
Documentation¶
- Added example of using cftime_variables to usage docs. (#169, #174) By Tom Nicholas.
- Updated the development roadmap in preparation for v1.0. (#164) By Tom Nicholas.
- Warn if user passes
indexes=None
toopen_virtual_dataset
to indicate that this is not yet fully supported. (#170) By Tom Nicholas. - Clarify that virtual datasets cannot be treated like normal xarray datasets. (#173) By Tom Nicholas.
Internal Changes¶
- Refactor
ChunkManifest
class to store chunk references internally using numpy arrays. (#107) By Tom Nicholas. - Mark tests which require network access so that they are only run when
--run-network-tests
is passed a command-line argument to pytest. (#144) By Tom Nicholas. - Determine file format from magic bytes rather than name suffix (#143) By Scott Henderson.
v0.1 (17th June 2024)¶
v0.1 is the first release of VirtualiZarr!! It contains functionality for using kerchunk to find byte ranges in netCDF files, constructing an xarray.Dataset containing ManifestArray objects, then writing out such a dataset to kerchunk references as either json or parquet.