Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
isisscripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
20
Issues
20
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
remeis
isisscripts
Commits
6a74c14d
Commit
6a74c14d
authored
Apr 03, 2023
by
Ole Koenig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
foucalc: Add help info about paralyzable/non-paralyzable deadtime
parent
168c3911
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/data/timing/foucalc.sl
src/data/timing/foucalc.sl
+3
-2
src/data/timing/psdcorr_zhang.sl
src/data/timing/psdcorr_zhang.sl
+5
-0
No files found.
src/data/timing/foucalc.sl
View file @
6a74c14d
...
...
@@ -12,6 +12,7 @@ define foucalc()
%\qualifier{avgbkg}{array of average background rates for each energy band}
%\qualifier{numinst}{[\code{=1}] number of activated PCUs on XTE, required for noise correction}
%\qualifier{deadtime}{[\code{=1e-5}] detector deadtime in seconds}
%\qualifier{nonparalyzable}{Set this qualifier if the deadtime is non-paralyzable}
%\qualifier{fmin}{minimum frequency used for RMS calculation}
%\qualifier{fmax}{maximum frequency used for RMS calculation}
%\qualifier{RMS}{DEPRECATED, use rms qualifier instead.}
...
...
@@ -63,7 +64,7 @@ define foucalc()
% non-noise-corrected (raw) and noise-corrected coherence function and its one-sigma uncertainty\n
% * \code{lag}, \code{errlag}:
% time lag and its one-sigma uncertainty\n
%\seealso{makepsd, cross_power_density, colacal}
%\seealso{makepsd, cross_power_density, colacal
, psdcorr_zhang
}
%!%-
{
variable lc, dimseg;
...
...
@@ -188,7 +189,7 @@ define foucalc()
variable sigrms = sqrt( sum(signormpsd[[idxmin:idxmax-1]] * df) );
variable noirms = sqrt( sum(noinormpsd[[idxmin:idxmax-1]] * df) );
variable errrms = sqrt((
4.*sigrms^2*noirms^2+2.*noirms^4)/(
numseg*length(idx)*sigrms^2));
variable errrms = sqrt((
2.*sigrms^2*noirms^2+noirms^4)/(2.*
numseg*length(idx)*sigrms^2));
set_struct_field(rmsquant, "sigrms"+istr, sigrms);
set_struct_field(rmsquant, "errrms"+istr, errrms);
set_struct_field(rmsquant, "noirms"+istr, noirms);
...
...
src/data/timing/psdcorr_zhang.sl
View file @
6a74c14d
...
...
@@ -22,7 +22,12 @@ define psdcorr_zhang(totrate, tseg, dimseg)
%\function{psdcorr_zhang}
%\synopsis{Timing Tools: Poisson Noise and Deadtime Correction (Zhang)}
%\usage{(freq, psd) = psdcorr_zhang(totrate, tseg, dimseg);}
%\qualifiers{
%\qualifier{nonparalyzable}{Set this qualifier if the deadtime is non-paralyzable}
%}
%\description
% The deadtime is assumed to be paralyzable by default.
%
% Inputs:
% totrate - total countrate of all instruments
% tseg - realtime length of the lc segments used for psd calculation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment