I've just had a quick look at the inter dependencies of the kaplibs sub
libraries in preparation for breaking them out into their own libraries.
AIF - no kaplibs dependencies
IRA - ditto
IRQ - ditto
CTG - ditto
LPG - uses CTG
FTS - use AIF + KPG1_SGDIG KPG1_SSAZ[RD]
KGS - uses kpg1_nmcol
KPG - uses IRA, IRQ
+ FTS1_FTWCS FTS1_RNANR and FTS1_RNAND
So the main issue is that FTS and KPG have circular dependencies. All the
others have a nice hierarchy (KGS is *almost* stand alone)
On the assumption that KPG is higher up in the hierarchy than FTS and so
is *allowed* to call FTS then that means that the 2 routines used by FTS
need another home (although the RNANx routines in FTS1 are clearly out of
place - nothing to do with fits headers and all to do with replacement of
NaN and Inf with VAL__BADx so should arguably be in primdat somewhere)
So we have
SGDIG - number of significant digits (primdat?)
SSAZx - scale an axis (BZERO/BSCALE)
Any thoughts?
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|