wright-group / WrightTools

Tools for loading, processing, and plotting multidimensional spectroscopy data.
http://wright.tools
MIT License
17 stars 8 forks source link

from_Solis: smarter import of array indices #972

Open ddkohler opened 3 years ago

ddkohler commented 3 years ago

Retain true ccd indices on cropped files by using the metadata. Currently handles cropped data correctly only for xindex.

Rotated files is trickier to handle; perhaps apply rotations by applying different transform (e.g. default axes are [xindex, yindex], but if the metadata indicates clockwise rotation, use axes [yindex, -xindex]. Unsure as of yet whether the raw output is already rotated.

Propose to parse the following metadata:

ksunden commented 3 years ago

Is this information even available in the file? I see in he table at the bottom some things (e.g. rotations/horizontal/vertical flips...) Perhaps more is added in other readout modes, but in full resolution image mode (which is the only mode we test against/have distributed files for), there is no indication of position.

ddkohler commented 3 years ago

yeah, the field {left,right,bottom,top} is there (at least when cropped).

I'll include a new dataset in PR.