PyNOT : flux2d

Flux Calibration

Once the instrument response function has been determined for a given dispersive element using pynot response, the flux calibration can be applied to a 2-dimensional spectrum by running the command pynot flux2d. This command requires three arguments:
  1. The 2D spectrum (must be wavelength-calibrated and rectified)
  2. The response function calculated by pynot response
  3. The desired filename of the output, given by command line option -o
PyNOT verifies that the science spectrum that you want to flux calibrate has been observed with the same instrumental setting.

Airmass and Exposure Time

The code automatically tries to determine the airmass of the observation from the FITS header. If this is not possible, the command line will prompt you for the value of the airmass. After you enter the value and press the RETURN key, the code will continue. Similarly, if the code cannot read the exposure time from the FITS header, the command line will ask you for this value, which must be given in seconds.

Example Syntax

pynot flux2d -o OUTPUT input response


Full example of command line syntax:

pynot flux2d [-h] -o OUTPUT input response



Overview of parameters

input
Input filename of 2D spectrum
response
Reference response function from 'PyNOT-response'
--output (-o)
Output filename of flux-calibrated 2D spectrum [REQUIRED]