TA的每日心情 | 开心 2025-9-4 03:41 |
---|
签到天数: 862 天 [LV.10]以坛为家III
入门
- 积分
- 136
|
回帖奖励 +2 枚金币
DS用的惠更斯PSF函数是用来修改显示图像的设置,不是读取文本参数。可以参考下面这个宏;!This macro computes the PSF
! for the currently loaded lens, polychromatic,
! at the first field,
! and a 32x32 grid density (sampling = 1),
! data will be placed in vector 1,
! normalized to 1,
! no phase data,
! default image delta.
SETVECSIZE 4500
GETPSF 0, 1, 1, 1, 0, 0, 0
np = vec1(0)
IF (np == 0)
PRINT "PSF Computation aborted."
GOTO 1
ENDIF
IF (np ==-1)
PRINT "SETVECSIZE too small for PSF data."
GOTO 1
ENDIF
IF (np ==-2)
PRINT "Not enough system RAM for PSF data."
GOTO 1
ENDIF
PRINT "There are ", np, "data points, spaced ", vec1(np+1), "micrometers apart"
LABEL 1
|
|