Hi, everyone,
Can we get SNR and FWHM using the NAA peak in Osprey?
Thanks.
Helge
December 20, 2024, 5:47pm
2
Hi @stevehui ,
Not directly. But you can use Osprey’s internal functions and change the search ranges in there to achieve this. You can run them after OspreyProcess is finished.
% op_getSNR.m
% Jamie Near, McGill University 2014.
%
% USAGE:
% [SNR]=op_get_Multispectra_SNR(in,NAAppmmin,NAAppmmax,noiseppmmin,noiseppmmax);
%
% DESCRIPTION:
% Find the SNR of the NAA peak in a spectrum.
%
% INPUTS:
% in = input data in matlab structure format
%
% OUTPUTS:
% SNR = Estimated SNR of the input spectrum.
function [out,SNR]=op_get_Multispectra_SNR(in,MM);
out = in;
if nargin < 2
MM = 0;
end
This file has been truncated. show original
% op_get_Multispectra_LW.m
% Helge Zoellner, Johns Hopkins University 2014.
%
% USAGE:
% [FWHM]=op_get_Multispectra_LW(in);
%
% DESCRIPTION:
% Estimates the linewidth of a reference peak in the spectrum. By default,
% the reference peak is water, between 4.4 and 5.0 ppm. Two methods are
% used to estimate the linewidth: 1. FWHM is measured by simply taking the
% full width at half max of the reference peak. 2. The FWHM is measured by
% fitting the reference peak to a lorentzian lineshape and determine the FWHM of the
% best fit. The output FWHM is given by the average of these two measures.
%
% INPUTS:
% in = input spectrum in structure format.
%
% OUTPUTS:
% FWHM = Estimated linewidth of the input spectrum (in Hz).
This file has been truncated. show original
Best,
Helge
Thanks @Helge .
It works well by changing the searching range for NAA.