On Tue, 11 Dec 2007, Tim Jenness wrote:
> The SCUBA-2 FTS team are using java to do their data processing. They are
> using starjava in some places (since they are reading and writing NDFs) but
> there are a couple of things that they want to be able to do but don't know
> how (and I have no idea):
Tim,
the parts of starjava which I am responsible for use only the jnihds
package, which is a complete (?) interface to all the HDS routines.
The relevant native methods are in the HDSObject class, and the
uk.ac.starlink.hds package provides some useful utility routines.
I had forgotten, but looking I see there is a class
uk.ac.starlink.hds.NdfMaker which will write an NDF, but I don't
think it does much other than write TITLE, LABEL, DATA, VARIANCE,
QUALITY etc - it doesn't do anything very smart.
So using the JNIHDS package, I think the short answer is that you'd
need to do everything by hand using HDS primitives.
Peter may be able to supply more information about NDF access via SPLAT
classes.
Mark
--
Mark Taylor Astronomical Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|