Skip to content

0.9dev: Fix multiscale dataset coordinate transformation table - #223

Open
clbarnes wants to merge 1 commit into
ome:0.9devfrom
clbarnes:fix/0.9-dataset-trans
Open

clbarnes wants to merge 1 commit into
ome:0.9devfrom
clbarnes:fix/0.9-dataset-trans

Conversation

@clbarnes

@clbarnes clbarnes commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Resolves ome/ngff #672 from @btbest .

At present this is an MVP change aligning the table content with the prose. However, I think we can do better.

  1. There MUST be exactly one coordinate transformation (which MAY be Sequence) - so why require an array?
  2. The input MUST be exactly {"path": "path/to/array"} - so why write it?
  3. The output MUST be exactly {"name": "nameOfFirstMultiscaleCoordinateSystem"} - so why write it?

IMO, most implementations will have separate internal constructs for the inner transformation (as used inside a wrapper transform like a Sequence) and for the edge-of-graph metadata composed of the transformation and input/output. As such I think implementations will be able to handle just an inner transform. I don't think we gain anything from keeping it an array. So my proposal is to change

// attributes.ome.multiscales[*].datasets[*]
{
  // ...
  "coordinateTransformations": [
    {
      "input": {"path": "path/to/array"},
      "output": {"name": "nameOfFirstMultiscaleCoordinateSystem"},
      "type": "scale",
      "scale": [2, 2, 2]
    }
  ]
}

to

// attributes.ome.multiscales[*].datasets[*]
{
  // ...
  "coordinateTransformation": {
    "type": "scale",
    "scale": [2, 2, 2]
  }
}

Which contains exactly the same information, re-uses data structures people are already working with, fewer opportunities for a footgun, and smaller.

@clbarnes clbarnes added the v0.9 label Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Automated Review URLs

@btbest

btbest commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

I would endorse the changes set as of right now (which is just the table fix and breaking down one bullet into two), but:

The output MUST be exactly {"name": "nameOfFirstMultiscaleCoordinateSystem"} - so why write it?

Careful: The output of the dataset transforms is what defines that coordinate system as the multiscale's intrinsic system. It's not required to be the first one in the list.

Relevant quotes:

        The output of the transformation MUST be the “[intrinsic](https://ngff.openmicroscopy.org/specifications/0.6/index.html#spec-hint-multiscales-intrinsic-coordinate-system)” coordinate system.

        The name field of output MUST be the name of a coordinate system.

        It MUST be the same value for every resolution level in a single multiscales

        The path field of output SHOULD be omitted.

The coordinate system referenced by all output fields of the coordinate transformations (the “[intrinsic](https://ngff.openmicroscopy.org/specifications/0.6/index.html#spec-hint-multiscales-intrinsic-coordinate-system)” coordinate system) will be a representation of the image in its native physical coordinate system. It should be used for viewing and processing unless a use case dictates otherwise.

@clbarnes

Copy link
Copy Markdown
Contributor Author

The output of the dataset transforms is what defines that coordinate system as the multiscale's intrinsic system. It's not required to be the first one in the list.

Hm, fair enough.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants