Return the inference-data format implied by path.
An existing directory or a name ending in .zarr is "zarr". Any
other path, including one without a suffix, is "netcdf".
- Parameters:
path (str | Path) – File or store path.
- Return type:
IdataFormat
- Returns:
"netcdf" or "zarr".