guiwitz / napari-sediment

https://guiwitz.github.io/napari-sediment/napari_sediment.html
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

raw -> .zarr of Geotek data #71

Closed Epta13 closed 2 months ago

Epta13 commented 3 months ago

As we spoke, the conversion of Geotek data files, which are already white corrected, should be done in the preprocessing, just untick white correction.

This is the pixel spectum before conversion, an it looks OK: pixel_no_proc

Once this the conversion without white correction is done, the spectrum is manipulated: pixel_corr

Can we fix this?

guiwitz commented 3 months ago

The reason for this is that when no processing is made, the data are never scaled properly. In the standard case, the corrected values are converted to integers by multiplying the data with 2**12 and here that never happens. So floats are wrongly directly saved as integers.

I added now a generic option to save data as floats ("Save as floats tickbox"). This can be used for this specific case, but also in general if you prefer to save the actual data instead of the ones scaled as integers (the reason for saving as integers is that it takes much less space). This is available thanks to 6f4346f.