Documentation for /home/davin/idl/socware/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

projects/barrel/barrel_sp_v3.5/

barrel_sp_fold_m2.pro


NAME: barrel_sp_fold_m2.pro DESCRIPTION: BARREL mid-level spectral folding routine method2 = single-parameter file-based spectrum, single drm REQUIRED INPUTS: subspec background subtracted count spectrum subspecerr its error bars modlfile Input model spectrum. Required format is starting energy boundary, ending energy boundary, flux it will be interpolated to phebins if necessary. Comment lines beginning with characters not = '0123456789.-' are allowed at the start. drm response matrix for correct payload altitude and chosen PID of electrons phebins energy channel boundaries (length = length of spectrum + 1) phmean energy channel centers (should have length = length of spectrum) -- this is for the photons dimension phwidth energy channel widths (should have length = length of spectrum) -- this is for the photons dimension ctwidth energy channel widths (should have length = length of spectrum) -- this is for the counts dimension usebins subset of energy channels (count space) to actually use for fitting maxcycles Maximum number of times to try rescaling range for fit parameters OPTIONAL INPUTS: quiet Don't make graphs + screen output verbose show some debugging info as fits go along OUTPUTS: params best fit parameters (only one in this case) param_ranges range on best fit parameter (1 sigma) modvals values of the fit function at the centers of the energy bins chisquare chi-square (not reduced) dof degrees of freedom associated with chisquare CALLS: barrel_sp_readmodelspec, barrel_sp_fitgrid2 STATUS: TO BE ADDED: REVISION HISTORY: Version 1.0 DMS 7/24/12 -- split out from barrel_folding as new middle layer; fixed "dof" to use "usebins" (at the same time as fixing "fitgrid1" to use "usebins") Version 2.3 DMS ;8/26/12 -- Removed redundant routine identifier from "message" Version 3.4 DMS 4/17/14 -- save elecmodel for best fit e- spectrum

Routines

top source barrel_sp_fold_m2

barrel_sp_fold_m2, subspec, subspecerr, modlfile, drm, phebins, phmean, phwidth, ctwidth, usebins, maxcycles, params, param_ranges, elecmodel, modvals, chisquare, dof, quiet=quiet, verbose=verbose

Parameters

subspec
subspecerr
modlfile
drm
phebins
phmean
phwidth
ctwidth
usebins
maxcycles
params
param_ranges
elecmodel
modvals
chisquare
dof

Keywords

quiet
verbose

File attributes

Modification date: Tue Oct 21 13:53:31 2014
Lines: 60