.TH KMO_COPY "7" "2.1.0" "kmo_copy" "kmos recipes" .SH NAME kmo_copy \- Copy a section of a cube to another cube, image or spectrum .SH SYNOPSIS esorex .B kmo_copy [OPTIONS] FILE.sof .SH DESCRIPTION With this recipe a specified region of an IFU\-based cube (F3I), image (F2I) or vector (F1I) can be copied to a new FITS file. One can copy just a plane out of a cube (any orientation) or a vector out of an image etc. By default the operation applies to all IFUs. The input data can contain noise frames which is then copied in the same manner as the input data. .PP It is also possible to extract a specific IFU out of a KMOS FITS structure with 24 IFU extensions or 48 extensions if noise is present. .PP .SS BASIC PARAMETERS \-\-ifu Use this parameter to apply the operation to a specific IFU. .PP \-\-x \-\-y \-\-z These are the start values in each dimension. The first pixel is adressed with 1. \-\-xsize \-\-ysize \-\-zsize These are the extents in each dimension to copy. .PP \-\-autocrop If set to TRUE all borders containing NaN values are cropped. Vectors will be shortened, images and cubes can get smaller. In This special case following parameters can be omitted: \-\-x, \-\-y, \-\-z, \-\-xsize, \-\-ysize and \-\-zsize. .PP Examples: \-\-\-\-\-\-\-\-\- extract a cube\-section of a cube: esorex kmo_copy \-\-x=3 \-\-y=2 \-\-z=1 \-\-xsize=2 \-\-ysize=3 \-\-zsize=6 copy.sof extract plane: esorex kmo_copy \-\-x=3 \-\-y=2 \-\-z=1 \-\-xsize=2 \-\-ysize=3 copy.sof extract vector just of IFU 4: esorex kmo_copy \-\-x=3 \-\-y=2 \-\-z=1 \-\-ysize=3 \-\-ifu=4 copy.sof extract whole IFU 4: esorex kmo_copy \-\-x=1 \-\-y=1 \-\-z=1 \-\-xsize= \-\-ysize= \-\-zsize= \-\-ifu=4 copy.sof extract scalar: esorex kmo_copy \-\-x=3 \-\-y=2 \-\-z=1 copy.sof with copy.sof: F3I.fits DATA Input files: DO KMOS category Type Explanation Required #Frames \-\-\-\-\-\-\-\- \-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\- \-\-\-\-\-\-\- F3I Data cube Y 1 or F2I Image or F1I Vector (All inputs with or without noise frame) Output files: DO KMOS category Type Explanation \-\-\-\-\-\-\-\- \-\-\-\-\- \-\-\-\-\-\-\-\-\-\-\- COPY F3I or Cropped input data F2I or F1I .SH OPTIONS .TP \fB\-\-ifu\fR \fI\fR Specific IFU to process (int; default: \-1). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_copy.ifu\fR [default = \fI\-1\fR]. .TP \fB\-\-autocrop\fR \fI\fR Crop automatically NaN values at borders (bool; default: False). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_copy.autocrop\fR [default = \fIFalse\fR]. .TP \fB\-\-x\fR \fI\fR Start value in first dimension (pixels). (int; default: 1). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_copy.x\fR [default = \fI1\fR]. .TP \fB\-\-y\fR \fI\fR Start value in second dimension (pixels). (int; default: 1). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_copy.y\fR [default = \fI1\fR]. .TP \fB\-\-z\fR \fI\fR Start value in third dimension (pixels). (int; default: 1). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_copy.z\fR [default = \fI1\fR]. .TP \fB\-\-xsize\fR \fI\fR Length in first dimension (pixels). (int; default: 1). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_copy.xsize\fR [default = \fI1\fR]. .TP \fB\-\-ysize\fR \fI\fR Length in second dimension (pixels). (int; default: 1). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_copy.ysize\fR [default = \fI1\fR]. .TP \fB\-\-zsize\fR \fI\fR Length in third dimension (pixels). (int; default: 1). The full name of this option for the EsoRex configuration file is \fBkmos.kmo_copy.zsize\fR [default = \fI1\fR]. .PP Note that it is possible to create a configuration file containing these options, along with suitable default values. Please refer to the details provided by the 'esorex \-\-help' command. .SH SEE ALSO The full documentation for the kmos pipeline can be downloaded as a PDF file using the following URL: .IP .B ftp://ftp.eso.org/pub/dfs/pipelines/kmos/kmos\-pipeline\-manual\-2.9.pdf .PP An overview over the existing ESO pipelines can be found on the web page \fBhttps://www.eso.org/sci/software/pipelines/\fR. .PP Basic documentation about the EsoRex program can be found at the esorex (1) man page. .PP It is possible to call the pipelines from python using the python\-cpl package. See \fBhttps://packages.python.org/python\-cpl/index.html\fR for further information. .PP The other recipes of the kmos pipeline are .IR kmo_arithmetic (7), .IR kmo_fit_profile (7), .IR kmo_fits_strip (7), .IR kmo_make_image (7), .IR kmo_noise_map (7), .IR kmo_rotate (7), .IR kmo_shift (7), .IR kmo_sky_mask (7), .IR kmo_stats (7), .IR kmos_combine (7), .IR kmos_dark (7), .IR kmos_extract_spec (7), .IR kmos_flat (7), .IR kmos_gen_reflines (7), .IR kmos_gen_telluric (7), .IR kmos_illumination (7), .IR kmos_reconstruct (7), .IR kmos_sci_red (7), .IR kmos_sky_tweak (7), .IR kmos_std_star (7), .IR kmos_test (7), .IR kmos_wave_cal (7) .SH VERSION kmo_copy 2.1.0 .SH AUTHOR Alex Agudo Berbel .SH BUG REPORTS Please report any problems to usd\-help@eso.org. Alternatively, you may send a report to the ESO User Support Department . .SH LICENSE This file is part of the CRIRES Instrument Pipeline Copyright (C) 2002,2003 European Southern Observatory This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111\-1307 USA