# Interactive reduction with floydsspec

\label{sec:efosc-spec}

floydsspec is the executable used to perform the interactive reduction. In this section we will present the syntax and main options available to use this task. When the pipeline is installed, floydsspec should be run in the directory containing the raw FLOYDS data. The script is able to recognize the different types of data and lead the reducer to perform all the steps described above. floydsspec does not need input file lists if all the raw data are in the directory where the user is running it. A list of files can be given as input if the user wishes to reduce only a subset of data. Option “-h” will show all available options.

$floydsspec (basic command)$floydsspec -h   (help on options)
$floydsspec listfiles (to only reduce data included in listfiles)$floydsspec  -i   -A  (recommended syntax: interactive, automatic [see below])
Usage: floydsspec   [listfile -i -A -C --listflat list (use raw flat frames from this list) .....]

Options:
--version             show program's version number and exit
-h, --help            show this help message and exit
-i, --interactive     run the script in interactive mode [recommended]
-c, --classify        try to classify the reduced spectrum using SNID (if
installed)
-C, --cosmic          removes cosmic rays using lacosmic
-v, --verbose
-A, --Automatic       extract spectrum with previous parameters in the
database
-t, --trace           trace extraction with another frame
-d, --dispersion      interactively choose the disperasion line where
aperture and background are selected
-r REBIN, --rebin=REBIN
rebin blue part [pixels]
--fringing=FRINGING   fringing correction      [1] response,   [2] computed
on 1d images minimizing scatter,   [3] using apflatten
--noflat              skip flat correction
--listsens=LISTSENS   use sensitivity curve from this list
--listflat=LISTFLAT   use the raw frames in this list for the flat
--listarc=LISTARC     use the raw frames in this list for the arc
--listatmo=LISTATMO   use the closest telluric file from this list for
the telluric correction

The options --listatmo allows you to use a specific telluric file1 to correct for atmospheric absorption from a list of files you provide. The option --listsens allows you to use a specific sensitivity function from a list of sensitivity functions that you provide. These files must have been produced with the FLOYDS pipeline. The option -i turns on the interactive mode for extraction, line identification, wavelengh calibration checking, and computing the sensitivity function. If the interactive mode is not on, all these steps are done automatically. The option -A allows the user to rereduce some of the spectra from one night, but not all. You can choose which spectra to extract again and which ones should be skipped.

1. The telluric file is a spectrum equal to one everywhere except where there are telluric lines.