FIT2D may be started automatically from the operating system command line to run a macro file. (The macro file may or may not close FIT2D.) The option to start-up in macro mode is -mac and must be followed by the name (or a path and name) of a valid macro file. ( -MAC, +mac, and +MAC may also be used.) For creation of macro files see Section 19, Page .
When FIT2D is started in macro mode it will not prompt for the size of the program arrays or if variance arrays are to be created. By default the program arrays will be set to 10001000 pixels and no variance arrays will be created. If this is not suitable for the macro, the program arrays may be created a different size by using the -dim option and variance arrays may be created by using the -var option (see below). Alternatively the DIMENSIONS command may be used within a macro to over-ride the defaults values.
To make complicated macros versatile ``variables'' may be used within the macros and their ``values'' may be changed to change the behaviour of the macro i.e. to parameterise the macro. This is most useful to allow the macro to work on different input and output files, but may also be used for other purposes. Thus, to make the macros versatile the -ivar, -lvar, -rvar, -svar options exist (see below).
Only one macro file may be opened so it only makes sense to specify one macro file on the command line. If more than one is specified, then only the first one will be used.