void print_usage | ( | OptionParser & | flags | ) |
void add_options | ( | OptionParser & | flags | ) |
References g.
void get_bandpass | ( | float * | lc, | |
float * | lw | |||
) |
References g.
Referenced by mkimage(), and mkimage_list().
void add_wcs | ( | const FitsHeader & | infile, | |
const MArray< float, 2 > & | Image, | |||
const ifu & | vpIFU, | |||
FitsOut & | O | |||
) |
References add_wcs(), g, ifu::get_ifu_dim_x(), ifu::get_ifu_dim_y(), rad, and astro::radec2deg().
void mkimage_list | ( | list< pix > & | lpix, | |
const ifu & | IFU, | |||
const VFrame & | vframe, | |||
const float | aperture, | |||
const float | offx, | |||
const float | offy | |||
) |
append brightness values in a bandpass in each fiber to a list<pix>
References __maxx__, __minx__, __ysize__, Extractor::extract_aperture(), get_bandpass(), VFrame::get_data(), VFrame::get_distortion(), VFrame::get_extractor(), ifu::get_fiber_x(), ifu::get_fiber_y(), ifu::get_fibernum(), ifu::get_target_fiber(), ifu::get_target_unit(), and Distortion::map_xy_wavelength().
Referenced by mkimage_dither_files(), and mkimage_single_files().
MArray<float,2> mkimage_regrid | ( | const list< pix > & | lpix, | |
const float | pix_size, | |||
const ifu & | IFU | |||
) |
References g, ifu::get_fiberd(), ifu::get_ifu_max_x(), ifu::get_ifu_max_y(), ifu::get_ifu_min_x(), ifu::get_ifu_min_y(), maxx(), maxy(), minx(), and miny().
Referenced by mkimage_dither_files(), and mkimage_single_files().
MArray<float,2> mkimage | ( | const ifu & | IFU, | |
const Extractor & | E, | |||
const Distortion & | D, | |||
const MArray< float, 2 > & | I, | |||
const float | aperture, | |||
const int | fd, | |||
const bool | regions, | |||
const float | offx, | |||
const float | offy | |||
) |
create 2D image with round 'pixels' of size fd set to the flux in the fibers optionally, output a ds9 regions file with the fiber numbers Quick and dirty ...
References __maxx__, __minx__, __ysize__, Extractor::extract_aperture(), g, get_bandpass(), ifu::get_fiber_x(), ifu::get_fiber_y(), ifu::get_fiberd(), ifu::get_fibernum(), ifu::get_fibersep(), ifu::get_ifu_dim_x(), ifu::get_ifu_dim_y(), Distortion::map_xy_wavelength(), ifu::nfibx_, and ifu::nfiby_.
void mkimage_dither_files | ( | const list< string > & | files, | |
const ifu & | IFU, | |||
int | argc, | |||
char * | argv[] | |||
) |
Combine a set of dithers into a single image
References add_wcs(), VFrame::frame_mode(), g, mkimage_list(), mkimage_regrid(), prepend_filename(), VFrame::read_data_and_models(), VFrame::split_frame_mode, version, and write_cmd_line().
Referenced by main().
void mkimage_single_files | ( | const list< string > & | files, | |
const ifu & | IFU, | |||
int | argc, | |||
char * | argv[] | |||
) |
call mkimage() on a list of files
References __LEFTSPECTGR__, add_wcs(), g, VFrame::get_header(), mkimage_list(), mkimage_regrid(), prepend_filename(), VFrame::read_distortions(), VFrame::read_frames(), version, and write_cmd_line().
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References add_options(), g, mkimage_dither_files(), mkimage_single_files(), print_usage(), and version.
const string version = "$Id: apimage.cpp 1035 2015-07-16 16:16:26Z drory $" |
struct globals g |