bugfix in angle scan processing
This commit is contained in:
parent
ef9d08e5f5
commit
f419e92809
@ -380,7 +380,7 @@ static function do_crop(check, [force])
|
||||
endif
|
||||
|
||||
if ((crop_theta >= 10) && (crop_theta < 90))
|
||||
crop_strip_theta(process_data, 0, crop_theta, process_theta, process_tilt, process_phi)
|
||||
crop_strip_theta(process_data, -0.1, crop_theta + 0.1, process_theta, process_tilt, process_phi)
|
||||
endif
|
||||
|
||||
if (strlen(crop_rows) > 0)
|
||||
|
@ -714,9 +714,9 @@ function crop_strip_theta(strip, theta_lo, theta_hi, theta, tilt, phi)
|
||||
variable nx = dimsize(strip, 0)
|
||||
variable ny = numpnts(idx)
|
||||
|
||||
theta = theta[idx]
|
||||
tilt = tilt[idx]
|
||||
phi = phi[idx]
|
||||
theta[0, ny-1] = theta[idx]
|
||||
tilt[0, ny-1] = tilt[idx]
|
||||
phi[0, ny-1] = phi[idx]
|
||||
redimension /n=(ny) theta, tilt, phi
|
||||
|
||||
duplicate /free strip, strip_copy
|
||||
|
Loading…
x
Reference in New Issue
Block a user