This class encapsulates information about the IFU: fiber diameter and relative fiber positions
ifu::ifu | ( | bool | quiet = false |
) | [inline] |
ifu::ifu | ( | const string & | filename, | |
bool | quiet = false | |||
) | [inline] |
References init_from_file().
ifu::ifu | ( | const ifu & | other | ) | [inline] |
void ifu::init_from_file | ( | const string & | filename | ) |
References init_from_stream().
Referenced by ifu(), and Projector::read_fibers().
float ifu::get_fiber_x | ( | const int | fnum | ) | const [inline] |
int ifu::get_target_unit | ( | const int | fnum | ) | const [inline] |
Returns the target unit spectrograph for a given fiber number.
References targetunit_.
Referenced by find_nearest_fiber(), Projector::find_res_elems(), Projector::find_res_elems_aperture(), Projector::find_res_elems_ell_aperture(), main(), and mkimage_list().
int ifu::get_target_fiber | ( | const int | fnum | ) | const [inline] |
Returns the target fiber given fiber number.
References targetfiber_.
Referenced by Projector::find_res_elems(), Projector::find_res_elems_aperture(), Projector::find_res_elems_ell_aperture(), main(), and mkimage_list().
int ifu::find_fiber | ( | const int | fnum, | |
const int | spec | |||
) | const [inline] |
Return IFU fiber number for target fiber on one spectrograph
References targetfiber_, and targetunit_.
Referenced by main().
float ifu::get_fiber_id | ( | const int | fnum | ) | const [inline] |
float ifu::get_fiber_y | ( | const int | fnum | ) | const [inline] |
float ifu::get_fiberd | ( | void | ) | const [inline] |
References fiberd_.
Referenced by SourceSimulator::add_sersic_source_to_images(), SourceSimulator::AddSky(), Projector::find_res_elems(), Projector::find_res_elems_aperture(), Projector::find_res_elems_ell_aperture(), Projector::init_flux_fractions(), PointSourceDetector::make_image_header(), mkimage(), mkimage_regrid(), and DitherEnvironment::setup_grid_limits().
int ifu::get_fibernum | ( | ) | const [inline] |
References x_.
Referenced by SourceSimulator::AddContSource(), SourceSimulator::AddLineSource(), SourceSimulator::AddSersicContSource(), emission_line_plot(), find_nearest_fiber(), Projector::find_res_elems(), Projector::find_res_elems_aperture(), Projector::find_res_elems_ell_aperture(), main(), mkimage(), mkimage_list(), and Projector::read_fibers().
int ifu::get_nf_row | ( | const int | row | ) | const [inline] |
References nx_.
Referenced by Projector::find_res_elems(), and Projector::find_res_elems_aperture().
float ifu::get_ifu_min_x | ( | void | ) | const [inline] |
References x_.
Referenced by get_ifu_dim_x(), mkimage_regrid(), and DitherEnvironment::setup_grid_limits().
float ifu::get_ifu_max_x | ( | void | ) | const [inline] |
References x_.
Referenced by get_ifu_dim_x(), mkimage_regrid(), and DitherEnvironment::setup_grid_limits().
float ifu::get_ifu_min_y | ( | void | ) | const [inline] |
References y_.
Referenced by get_ifu_dim_y(), mkimage_regrid(), and DitherEnvironment::setup_grid_limits().
float ifu::get_ifu_max_y | ( | void | ) | const [inline] |
References y_.
Referenced by get_ifu_dim_y(), mkimage_regrid(), and DitherEnvironment::setup_grid_limits().
float ifu::get_ifu_dim_x | ( | void | ) | const [inline] |
References get_ifu_max_x(), and get_ifu_min_x().
float ifu::get_ifu_dim_y | ( | void | ) | const [inline] |
References get_ifu_max_y(), and get_ifu_min_y().
int ifu::get_num_fibers | ( | const int | tu | ) | const [inline] |
Returns total number of fibers for a specific unit spectrograph.
References targetunit_.
Referenced by main().
int ifu::get_num_fibers | ( | ) | const [inline] |
References fibernum_.
void ifu::init_from_stream | ( | istream & | is | ) | [protected] |
References __LEFTSPECTGR__, __RIGHTSPECTGR__, fiberd_, fibernum_, fibersep_, fid_, nfibx_, nfiby_, nx_, quiet_, readNextLineFromStream(), targetfiber_, targetunit_, throughput_, x_, and y_.
Referenced by init_from_file(), and operator>>().
void ifu::post_init | ( | void | ) | [protected] |
istream& operator>> | ( | istream & | os, | |
ifu & | i | |||
) | [friend] |
ostream& operator<< | ( | ostream & | os, | |
const ifu & | i | |||
) | [friend] |
int ifu::nfibx_ |
Referenced by init_from_stream(), and mkimage().
int ifu::nfiby_ |
Referenced by init_from_stream(), and mkimage().
bool ifu::quiet_ [protected] |
Referenced by init_from_stream().
vector<float> ifu::x_ [protected] |
Referenced by get_fiber_x(), get_fibernum(), get_ifu_max_x(), get_ifu_min_x(), init_from_stream(), and operator<<().
vector<float> ifu::y_ [protected] |
Referenced by get_fiber_y(), get_ifu_max_y(), get_ifu_min_y(), init_from_stream(), and operator<<().
vector<int> ifu::fid_ [protected] |
Referenced by get_fiber_id(), and init_from_stream().
vector<int> ifu::targetunit_ [protected] |
Referenced by find_fiber(), get_num_fibers(), get_target_unit(), init_from_stream(), and operator<<().
vector<int> ifu::targetfiber_ [protected] |
Referenced by find_fiber(), get_target_fiber(), init_from_stream(), and operator<<().
vector<float> ifu::throughput_ [protected] |
Referenced by init_from_stream(), and operator<<().
vector<int> ifu::nx_ [protected] |
Referenced by get_nf_row(), and init_from_stream().
float ifu::fiberd_ [protected] |
Referenced by get_fiberd(), init_from_stream(), and operator<<().
float ifu::fibersep_ [protected] |
Referenced by get_fibersep(), init_from_stream(), and operator<<().
int ifu::fibernum_ [protected] |
Referenced by get_num_fibers(), and init_from_stream().