[NeXus-committee] data array orientation

Koennecke Mark (PSI) mark.koennecke at psi.ch
Thu Apr 26 16:09:43 BST 2018


Ben,


> Am 26.04.2018 um 16:51 schrieb Benjamin Watts <benjamin.watts at psi.ch>:
> 
> Hi Everyone,
>    When writing an image to an array, there is the age-old question of whether the first array element corresponds to the top-left pixel, or the bottom-left pixel of the image. Is there any convention in NeXus about which to use, or an attribute to specify? I don't find anything specific in the documentation. This has become an issue for me because I have been following one image orientation convention and another beamline has followed the other and now a user wants a switch in the data analysis software to flip the image. I would assuming that the first data element corresponds to the first element of each axis array and so the image orientation could be detected by looking at whether the values in the sample_y array were increasing or decreasing in value. But perhaps I am missing something?
> 

my quick answer is that it does not matter anymore. You properly define offsets and vectors for the x and y axis of the detector in its depends_on chain 
and you can transform to your hearts delight.

Cheers,

    Mark


> Cheers,
> Ben
> _______________________________________________
> NeXus-committee mailing list
> NeXus-committee at nexusformat.org
> http://lists.nexusformat.org/mailman/listinfo/nexus-committee




More information about the NeXus-committee mailing list