From f419e92809cc9aa30935ca50be81bad22283d94b Mon Sep 17 00:00:00 2001 From: matthias muntwiler Date: Tue, 16 Jun 2020 14:31:51 +0200 Subject: [PATCH] bugfix in angle scan processing --- pearl/pearl-anglescan-panel.ipf | 2 +- pearl/pearl-anglescan-process.ipf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pearl/pearl-anglescan-panel.ipf b/pearl/pearl-anglescan-panel.ipf index ed49cf3..8c85e02 100644 --- a/pearl/pearl-anglescan-panel.ipf +++ b/pearl/pearl-anglescan-panel.ipf @@ -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) diff --git a/pearl/pearl-anglescan-process.ipf b/pearl/pearl-anglescan-process.ipf index 1ad0593..82852fb 100644 --- a/pearl/pearl-anglescan-process.ipf +++ b/pearl/pearl-anglescan-process.ipf @@ -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