kmo_copy(7) Copy a section of a cube to another cube, image or spectrum

SYNOPSIS

esorex kmo_copy [OPTIONS] FILE.sof

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.

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.

BASIC PARAMETERS

--ifu Use this parameter to apply the operation to a specific IFU.

--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.

--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.

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=<NAXIS1> --ysize=<NAXIS2>
                                           --zsize=<NAXIS3> --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
   --------              -----  -----------                    -------- -------
   <none or any>         F3I    Data cube                         Y        1   
   or                                                                          
   <none or any>         F2I    Image                                          
   or                                                                          
   <none or any>         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                      

OPTIONS

--ifu <long>
Specific IFU to process (long; default: -1). The full name of this option for the EsoRex configuration file is kmos.kmo_copy.ifu [default = -1].
--autocrop <bool>
Crop automatically NaN values at borders (bool; default: False). The full name of this option for the EsoRex configuration file is kmos.kmo_copy.autocrop [default = False].
--x <long>
Start value in first dimension (pixels). (long; default: 1). The full name of this option for the EsoRex configuration file is kmos.kmo_copy.x [default = 1].
--y <long>
Start value in second dimension (pixels). (long; default: 1). The full name of this option for the EsoRex configuration file is kmos.kmo_copy.y [default = 1].
--z <long>
Start value in third dimension (pixels). (long; default: 1). The full name of this option for the EsoRex configuration file is kmos.kmo_copy.z [default = 1].
--xsize <long>
Length in first dimension (pixels). (long; default: 1). The full name of this option for the EsoRex configuration file is kmos.kmo_copy.xsize [default = 1].
--ysize <long>
Length in second dimension (pixels). (long; default: 1). The full name of this option for the EsoRex configuration file is kmos.kmo_copy.ysize [default = 1].
--zsize <long>
Length in third dimension (pixels). (long; default: 1). The full name of this option for the EsoRex configuration file is kmos.kmo_copy.zsize [default = 1].

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.

VERSION

kmo_copy 1.3.19

AUTHOR

Alex Agudo Berbel <[email protected]>

BUG REPORTS

Please report any problems to [email protected]. Alternatively, you may send a report to the ESO User Support Department <[email protected]>.

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