In response mainly to some (longstanding!) requests from Tim and Peter,
I've made a few changes to NDX and related packages:
1. NDX now has LABEL and UNITS components as well as TITLE, the
same as NDF does. There was no very good reason why these
weren't in in the first place.
The NDF and XML serialisations of an NDX implement these
components in the obvious way. The FITS serialisation maps the
'BUNIT' header to the UNITS component and can't store a LABEL.
2. NDF AXIS components are now properly supported; if you have an
NDX based on an NDF with an AXIS component, calling getAst()
on it will now give you a FrameSet with an AXIS frame which
has been correctly constructed from that NDF's AXIS component
if one exists (otherwise it's based on the PIXEL frame).
In some circumstances this can slow things down a bit
(large LutMaps), but that's progress.
Tim: sorry I took so much arm-twisting to get round to this.
I think I didn't know about/think of LutMaps when I first
looked at NDX and AXIS - it would have been a much bigger job
to get right without them.
3. The corresponding changes have been made in Treeview so that you
can see NDX UNITS and LABEL components, and WCS components contain
a correct AXIS frame where one is available from an NDF AXIS
component.
Probably this doesn't require action from anyone else, though there
may be changes to be made in Splat to take advantage of some of it.
These changes have been applied only on the CVS trunk (not the USSC219
release branch). If anyone sees anything playing up which looks like
a result of these changes, please let me know.
Mark
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|