Hi.
Please could someone point me to some documentation for accessing and
modifying NDF datafiles using perl. I can see that there are numerous
routines used by programs such as setbolwt.pl; e.g. cmp_mod($xloc,
'BOLWT', '_REAL', 1, @vals, $status) & cmp_put1r($xloc, 'BOLWT',
$nbol, @weights, $status), but I can't find any documentation for
these routines.
If it helps, I am trying to open a datacube, measure the rms in each
pixel, and set any pixels to bad if the rms is greater than a
predefined value. [Please also shout if I can't do this with perl!]
At the moment, I am converting my cube to ascii, and reading it in
using the standard perl commands, but the NDF2ASCII is taking ages!
[I am dealing with about 20Gig of data].
Failing that, could anyone let me know how to open an NDF, read the
values into perl arrays, and write it back out again. I think that I
can wing the rest.
Thanks in advance,
Dave.
|