next up previous 79
Next: References
Up: Twodspec
Previous: Note on Menus


The Defaults File

This file (at present called twodspec_defaults.sdf) is used to allow the behaviour of programs to be varied. The elements have the following meanings:

FIT_HANDLER
If this has the value 1 then a condition handler is used during the fitting (this is in addition to the FIGARO default handler). This condition handler is not available with the Sun version.
OPT_STEP
This controls the size of jump between iterations in the fitting. The value multiplies the default.
TOLS
These are the values copied to the TOLS array in the results structure when a new results structure is created. Where appropriate the values will be multiplied by the dispersion.
USEPEAK
If this is 1 then the single component fitting will default to taking the peak as the centre, for guessing.
VACUUM
This is set to 1 to indicate wavelengths are values in vacuum.
AX1_LOG
If this is 1 it indicates that the first axis has a log scale (by default).
AX1_UNITS
The default units for the first axis.
RELATIVISTIC
Type integer, if absent, or of value 1, then a full relativistic furmula is used for Doppler shifts, otherwise the non-relativistic one is used.
DEC
FITS keywords to search to find declination of object (not yet used)
COR_DEC
Mutiplier for values from DEC to convert to degrees (not yet used)
RA
FITS keywords to search to find right ascension of object (not yet used)
COR_RA
Mutiplier for values from RA to convert to hours (not yet used)
EQUINOX
FITS keywords to search to find equinox
UT
FITS keywords to search to find UT
TELESCOP
FITS keywords to search to find telescope name (in form acceptable to SLALIB)
LONG_OBS
FITS keywords to search to find longitude of observatory
COR_LONG_OBS
Mutiplier for values from LONG_OBS to convert to degrees
LAT_OBS
FITS keywords to search to find latitude of observatory
COR_LAT_OBS
Mutiplier for values from LAT_OBS to convert to degrees

If the multipliers are absent they are taken as 1.0.

An example of a defaults file is given below (as shown by Figaro exam):

twodspec_defaults   Struct
  .FIT_HANDLER   Int     0
  .OPT_STEP      Float   1
  .TOLS[13]      Float   0.10000 3 -3 0.2000 8 1 5 1000 20 5 2.000E-3
                                                      .... 2.000E-3 3
  .USEPEAK       Int     1
  .VACUUM        Int     0
  .AX1_LOG       Int     0
  .AX1_UNITS[20]  Char   Angtroms
  .Z             Struct
    .DATA[1]     Float   0
  .COR_LAT_OBS[1]  Float 1
  .LAT_OBS[8,1]  Char    LAT_OBS
  .LONG_OBS[8,1]  Char   LONG_OBS
  .COR_LONG_OBS[1]  Float -1
In this case COR_LONG_OBS is used to correct for the value of longitude in the file's being positive east, whereas we want positive west. Note that you can have several values in each array, which would act as a search list (at present up to 5 values).



next up previous 79
Next: References
Up: Twodspec
Previous: Note on Menus

FIGARO A general data reduction system
Starlink User Note 86
Keith Shortridge, Horst Meyerdierks,
Malcolm Currie, Martin Clayton, Jon Lockley,
Anne Charles, Clive Davenhall,
Mark Taylor, Tim Ash, Tim Wilkins, Dave Axon,
John Palmer, Anthony Holloway and
Vito Graffagnino
2004 February 17
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council