From 4df02d4f9aadbfe4aa31fcded748fce57519a70c Mon Sep 17 00:00:00 2001 From: Igor Pisarev Date: Mon, 9 Apr 2018 16:56:04 -0400 Subject: [PATCH] add docs about induvidual dataset attributes vs root attributes --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdc6da3..7678d96 100644 --- a/README.md +++ b/README.md @@ -29,19 +29,21 @@ The application expects a path to a directory structured as follows: ... ``` -Root attributes are used as defaults for all channels. They can be overridden by setting channel-specific attributes. - +Root attributes are used as defaults for all channels. They can be overridden by setting channel-specific attributes.
`s0`, `s1`, `s2` are standard N5 datasets that represent scale levels for each channel. `s0` corresponds to full resolution. Example of the `attributes.json` file: ```json { + "name":"some data", "scales":[[1,1,1],[2,2,1],[4,4,2],[8,8,4],[16,16,9],[32,32,17]], "pixelResolution":{"unit":"um","dimensions":[0.097,0.097,0.18]}, "affineTransform":[[1,-0.30,-0.25,0],[0,1.25,0,0],[0,0,0.85,0]] } ``` +Alternatively, scales and pixel resolution can be stored and queried as attributes of individual scale level datasets. The attribute keys for individual values are `downsamplingFactors` and `pixelResolution`. Thus, root attributes or channel group attributes are not mandatory. + ### Viewer state The changes made to the viewer state are saved automatically to `bdv-settings.xml` file in the root N5 directory: