On Tue, 13 Apr 2004, Rankin, SE (Stephen) wrote:
> Mark, Peter,
>
> I just used FIGARO bbody command:
>
> body 2.7 logar=true in=! xstart=0 xstep=0.05 xend=6
> xunit="log10(10**-3*micron)" XLABEL="wavelength"
>
> Then tried to view the file with Treeview and SPLAT, but the x-axis only
> gets the label "Axis 1". How do I get the correct label?
You'll note it's not just the label, the axis values are wrong too.
This is a known deficiency in the java NDF handling - it doesn't
handle NDF AXIS components, which is how BBODY stores its coordinate
information. It can only cope with WCS components. Although AST/WCS
is more modern and much more capable, as you see, AXIS is still out there.
While AXIS capabilities are on the to-do list, I'm not really spending
any time on array/ndx stuff at the moment, so there's no plan to do it
any time soon.
You can get round this by getting KAPPA to generate a WCS component from
the AXIS one. If your NDF is called blackbod.sdf, then
wcsadd blackbod axis wavelength unit
should do the trick.
Your next question will probably be: "why does SPLAT/Treeview display
'Angstrom' rather than 'log10(10**-3*micron)' for the units?".
I don't know - I *think* this is probably something Peter or David
are better placed to answer (the corresponding AST Axis does have
its Unit attribute set to the right value).
> I am also getting a very irritating rolling error message in the terminal in
> which I started Treeview (when you are trying to do other things in the same
> terminal it is irritating):
I'm not sure why exactly you're getting these warnings, probably something
OS- or filesystem-specific caused by SPLAT's use of preferences?
Other than the obvious (redirect to /dev/null etc) it is possible
to configure to avoid such messages, e.g.:
% cp java/etc/logging.properties /some/where/logging.properties
edit /some/where/logging.properties so it says ".level = SEVERE"
% treeview -Djava.util.logging.config.file=/some/where/logging.properties args
but this is obviously a pain.
Mark
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|