TileDB-Inc / TileDB-CF-Py

TileDB interface with awareness of the CF metadata conventions
https://tiledb-inc.github.io/TileDB-CF-Py/
MIT License
19 stars 3 forks source link

Option to add compression when converting netCDF to tileDB #97

Closed eggio closed 3 years ago

eggio commented 3 years ago

Adding the option to a add tileDB filters (https://tiledb-inc-tiledb.readthedocs-hosted.com/en/1.6.3/tutorials/filters.html), exspecially compression to the converter.

jp-dark commented 3 years ago

Hi @eggio. You can currently add filters to the converter after it has been generated (see following comment). I am planning on adding a default attribute filter to the add_array_creator and add_array_converter methods in the NetCDF4ConverterEngine. I can also add the ability to set default attribute, dimension, and offset filters in the from_file and from_group methods in the NetCDF4ConverterEngine. Would that satisfy this feature request?

jp-dark commented 3 years ago

Examples below show how to set filters for the TileDB arrays generated from the NetCDF4ConverterEngine. It assumes filter_list is a FilterList object. For example,

filter_list = tiledb.FilterList([tiledb.ZstdFilter(level=7)])
eggio commented 3 years ago

Thanks alot! Sorry for creating an Issue but i couldn't find it anywhere how to do it. I don't mind if you delete it.