Hi,
I'm using 64 bit star-hawaiki and trying to access data in NDF
extensions using my own routines. I have tried following the
instructions at http://www.starlink.ac.uk/docs/sun33.htx/node66.html
For example enquiring the presence of a structure with:
CALL NDF_XSTAT( INDF, 'MORE', THERE, STATUS )
where INDF is an already opened NDF for which I've successfully mapped the data array and MORE is the name of the extension,
always returns THERE = FALSE even when the MORE structure is clearly present.
Similarly using
INCLUDE 'DAT_PAR'
CHARACTER * ( DAT__SZLOC ) LOC
INTEGER OFFSET
...
CALL NDF_XLOC( INDF, 'MORE', 'READ', LOC, STATUS )
doesn't work and returns the value
<NOT A LOCATOR>
in the variable LOC. For both NDF_XSTAT and NDF_XLOC, STATUS is returned with a non-zero value (a large integer value).
Is there perhaps a problem here in 64 bit mode or am I using the wrong subroutine calls? Are there any alternative calls
I can use - I'm ultimately wanting to read the value in MORE.FIGARO.HJD0 (see below).
Here are the contents of the NDF for which I want to access the MORE structure:
% hdstrace dyntimes
DYNTIMES<NDF>
DATA_ARRAY<ARRAY> {structure}
DATA(12)<_REAL> 300,300,300,300,300,300,300,300,300,
300,300,300
BAD_PIXEL<_LOGICAL> FALSE
ORIGIN(1)<_INTEGER> 1
AXIS(1)<AXIS> {structure}
DATA_ARRAY<ARRAY> {structure}
ORIGIN(1)<_INTEGER> 1
DATA(12)<_REAL> 0,91536.9,183074,274611,366147,
... 732295,823832,915369,1006910
MORE<EXT> {structure}
FIGARO<EXT> {structure}
HJD0<_REAL> 42512.5
End of Trace.
Many thanks,
John Barnes
--
**********************************************************
John Barnes
Centre for Astrophysics Research,
Science& Technology Research Institute
University of Hertfordshire,
College Lane, Hatfield.
Herts AL10 9AB. UK
Tel: 01707 285162
http://star-www.herts.ac.uk/~jbarnes
**********************************************************
|