void print_usage | ( | util::OptionParser & | flags | ) |
void add_options | ( | util::OptionParser & | flags | ) |
References g.
void mask_wavelength | ( | MArray< float, 2 > & | In, | |
MArray< float, 2 > & | In_e, | |||
const Distortion & | D, | |||
const float | wavelength, | |||
const float | width | |||
) |
Mask a region around a particular wavelength. Used mainly to mask 5577.
References Distortion::map_wf_x(), and Distortion::map_xy_wavelength().
Referenced by main().
void mask_cosmics | ( | const MArray< float, 2 > & | In, | |
const FiberModel & | F, | |||
const Distortion & | D, | |||
MArray< float, 2 > & | In_e | |||
) |
Crude and quick median-based cosmic filter
References immedian::ImMedian< T >::evaluateBox(), FiberModel::get_cumulative_fiberflux(), and rad.
Referenced by main().
MArray<bool,1> find_continuum_sources | ( | const Continuum & | C, | |
const float | sn_thresh | |||
) |
References g, and Continuum::get_sn_fiber().
Referenced by main().
MArray<float,2> try_read_error_file | ( | const string & | filename, | |
const MArray< float, 2 > & | In, | |||
bool * | haveerror | |||
) |
References prepend_filename().
Referenced by main().
void save_file | ( | const string & | filename, | |
MArray< float, 2 > | Out, | |||
FitsHeader | header, | |||
const string & | cmdline | |||
) |
Save Out in the filename
[in] | filename,: | name of the output file |
[in] | Out,: | Marray to save |
[in] | header,: |
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References add_options(), enable_sigfpe(), find_continuum_sources(), g, FiberModel::init_from_file(), Distortion::init_from_file(), mask_cosmics(), mask_wavelength(), prepend_filename(), print_usage(), SuperSky::propagate_error(), save_file(), SuperSky::set_continuum(), SuperSky::set_scaling(), SuperSky::set_spline_file(), SuperSky::sky_error_for_line(), SuperSky::subtract_sky(), SuperSky::subtract_sky_quick(), try_read_error_file(), version, and write_cmd_line().
const string version = "$Id: subtractsky.cpp 998 2015-05-22 12:23:42Z drory $" |
struct globals g |