Next Previous Up Contents
Next: fit
Up: Command Reference
Previous: Command Reference


A.1 copymodel

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:
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>]
Parameters:
ifmt = ymodel|galaxev|starburst99|svotar|sideways-vot
Defines the format of the file given by the in parameter. See Section 4 for a list of known formats.

[Default: ymodel]

in = <model-file>
Input model data files. The format is given by the 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
Gives the format in which the output will be written. The basic format is 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>
Gives the name of the output file to which the model data will be written in ymodel format.

[Default: -]

x = <expr>
Formula for the X (wavelength) values in the output model file in terms of the X values in the input model file. The default value of "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>
Gives a name for the output X axis, such as "Wavelength". This does not affect processing, but may be used to annotate the displayed or output results, so it is a good idea to supply a value if known to reduce confusion.
xunit = <value>
Gives a unit for the output X axis, such as "Angstrom". This does not affect processing, but may be used to annotate the displayed or output results, so it is a good idea to supply a value if known to reduce confusion.
y = <expr>
Formula for the Y (flux) values in the output model file in terms of the Y values in the input model file. The default value of "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>
Gives a name for the output Y axis, such as "Flux". This does not affect processing, but may be used to annotate the displayed or output results, so it is a good idea to supply a value if known to reduce confusion.
yunit = <value>
Gives a unit for the output Y axis, such as "Jansky". This does not affect processing, but may be used to annotate the displayed or output results, so it is a good idea to supply a value if known to reduce confusion.


Next Previous Up Contents
Next: fit
Up: Command Reference
Previous: Command Reference

Yafit - Yet Another Fitting Tool
User Guide