TileDB
TileDB copied to clipboard
how to watch the value in the tiledb-arrays ?
i know about tiledb-cli(to hard to use). do you have anyother thing to watch just like hdfview?
A TileDB array written by the TileDB Embedded library can be read via C or C++ with the library itself, or with any of the available API bindings. The Python example you use here 'simply' keeps it in the most minimal native data type, which happens to not print very prettily. Potentially one could pass it into a pandas
data.frame as an alternative.
I work on the R bindings. R has native data.frame objects, and we offer a few more so there you can do the following:
~/git/tiledb/examples/cpp_api(dev)$ ./writing_dense_global
1
2
-2147483648
-2147483648
3
4
-2147483648
-2147483648
5
6
-2147483648
-2147483648
7
8
-2147483648
-2147483648
~/git/tiledb/examples/cpp_api(dev)$ Rscript -e 'print(tiledb::tiledb_array("writing_dense_global_array", return_as="data.frame")[1:2,1:2])'
rows cols a
1 1 1 1
2 1 2 2
3 2 1 3
4 2 2 4
~/git/tiledb/examples/cpp_api(dev)$
Here the Rscript
command-line tool comes with R, I then submit one compound expression to print a subset'ed part. Depending on the language you prefer you could create similar viewers -- we just haven't written anything 'pretty' that displays two-dimensional arrays in a compact form.
i know how to read the array from *.tdb by c++. But i want to see the data of array,attribute,metadata and others at the same time.something like hdfview will give you convenient and audio-visual tools to check all the info about your field-data
Following up on this issue: we do have a CLI tool with a dump
capability, please see: https://github.com/TileDB-Inc/TileDB-CLI