copymodel
is used to prepare files containing model spectra,
ready for fitting by the fit
task.
It takes model data in one of the forms described in Section 4
as input, optionally manipulates it in accordance with the parameters,
and writes the output to a .ymod
file suitable for
input into other fitting tasks.
The main manipulations which can be performed are changing the
X and Y values (using the x
and y
parameters)
and labelling the axes and their units.
See Section 3.2 for some more discussion and examples.
Usage: copymodel [-help] [-debug] in=<model-file> [ifmt=ymodel|galaxev|starburst99|svotar|sideways-vot] [out=<out-file>] [ofmt=ymodel-fits|ymodel-votable|ymodel-votable-binary] [x=<expr>] [y=<expr>] [xname=<value>] [xunit=<value>] [yname=<value>] [yunit=<value>]
ifmt = ymodel|galaxev|starburst99|svotar|sideways-vot
in
parameter.
See Section 4 for a list of known formats.
[Default: ymodel
]
in = <model-file>
ifmt
parameter.
Multiple model files (in the same format) may be specified
by giving this parameter multiple times.
ofmt = ymodel-fits|ymodel-votable|ymodel-votable-binary
ymodel
, but it is possible
to choose which variant (FITS, VOTable etc) of that format
is used by specifying this parameter. It doesn't matter much
which is used though there may be performance implications.
[Default: ymodel-votable
]
out = <out-file>
ymodel
format.
[Default: -
]
x = <expr>
x
" simply makes the one
equal to the other, however it is possible to use algebraic
expressions here in terms of x
and y
(the Y values from the input model file).
Normal arithmetic operators as well as some special functions
may be used - see Section 6.
[Default: x
]
xname = <value>
xunit = <value>
y = <expr>
y
" simply makes the one
equal to the other, however it is possible to use algebraic
expressions here in terms of y
and x
(the X values from the input model file).
Normal arithmetic operators as well as some special functions
such as abToJansky()
may be used -
see Section 6.
[Default: y
]
yname = <value>
yunit = <value>