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_readmodelspec.pro


NAME: barrel_sp_readmodelspec.pro DESCRIPTION: Spectral model file reader for barrel folding routines. File format must be 3 columns, start-energy, end-energy, flux per keV at center of the bin. REQUIRED INPUTS: fname spectrum file name phebins energy channel boundaries desired (may or may not match file) phmean energy channel centers OPTIONAL INPUTS: none OUTPUTS: outspec model spectrum in flux per keV at the values phmean CALLS: none STATUS: Tested with artificial data, both with and without interpolation TO BE ADDED: N/A REVISION HISTORY: Version 1.0 DMS 7/24/12 Version 3.4 DMS 4/17/14: The interpolation kills a single-bin (monoenergetic) flux or other narrow features. Replace "interpol" with "hsi_rebinner" for rebinning to our bins. Warning: our bins are broad so we will lose some information about where within the bin the flux actually is. Use method=1, model=2 (precise monoenergetic) for mono. models instead.

Routines

top source barrel_sp_readmodelspec

barrel_sp_readmodelspec, fname, phebins, phmean, outspec

Parameters

fname
phebins
phmean
outspec

File attributes

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