log_rebin¶
-
ndmapper.lib.gmos.spec.ifu.log_rebin(*args, **kwargs)[source] [edit on github]¶ Resample the wavelength axis of each x-y-lambda data cube onto constant increments in log(wavelength), ie. constant redshift per pixel. The output WCS is defined according to the FITS paper III convention (equation 5).
This function depends on the
pyfuPyRAF/Python package, which must be installed separately.Parameters: inputs : DataFileList or DataFile
Data cubes with linear WCSs in wavelength (each one mapped to a FITS extension named ‘SCI’ for compatibility with PyFU), as produced by
resample_to_cubeormosaic.out_names :
str-like or list ofstr-like, optionalNames of output files containing the re-binned datacubes. If None (default), the names of the DataFile instances returned will be constructed from those of the corresponding input files, prefixed with ‘l’.
conserve_flux :
boolConserve flux per pixel? The default of False conserves flux density, which is appropriate for data that have been calibrated in physical flux units (per Angstrom, nm or micron), as opposed to counts or electrons per pixel.
Processing is currently performed using the PyFU function “pyflogbin”.
Returns: DataFileList
The output data cubes, resampled to logarithmic increments in wavelength.