You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I want to recover the reciprocal space grid of a DataCube instance in $Å^{-1}$ with the k-space origin at the center of the diffraction pattern. But it looks like there is a problem with the DataCube.calibrate() method in reciprocal space.
After
datacube.get_probe_size()
qx0_mean and qy0_mean are well stored in datacube.calibration
Q_pixel_size=0.00814368# in Å^-1, calibrated on Si sample.datacube.calibration.set_Q_pixel_size(Q_pixel_size)
datacube.calibration.set_Q_pixel_units('A^-1')
datacube.calibration.set_R_pixel_size(1.04527)
datacube.calibration.set_R_pixel_units('nm')
The reciprocal space grid is not centered at the origin like I expected:
so qpixsize is taken into account after centering the reciprocal space origin in pixel unit.
This modification fixed the issue for me, but maybe the method is not intended to work as I want it to.
Is there something I misunderstood here or is it a problem indeed?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi!$Å^{-1}$ with the k-space origin at the center of the diffraction pattern. But it looks like there is a problem with the DataCube.calibrate() method in reciprocal space.
I want to recover the reciprocal space grid of a DataCube instance in
After
qx0_mean and qy0_mean are well stored in datacube.calibration
Then, when I set the pixel sizes:
The reciprocal space grid is not centered at the origin like I expected:
Here, I expected$Å^{-1}$ .
datacube.qxx.min()
anddatacube.qxx.max()
to be around -1 and +1, respectively, inIt looks like the problem comes from the DataCube.calibrate() method in datacube.py.
Lines 94 and 95
should be:
so qpixsize is taken into account after centering the reciprocal space origin in pixel unit.
This modification fixed the issue for me, but maybe the method is not intended to work as I want it to.
Is there something I misunderstood here or is it a problem indeed?
Thanks!
The text was updated successfully, but these errors were encountered: