Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-1044

Flux models for flux calibration must have wavelengths in vacuum

    Details

      Description

      AMBRE synthetic spectra are used for Yamashita-san's flux calibration, but their wavelengths are in air. They should be converted to those in vacuum.

      [ambre_to_vacuum (Halpha).png]: You see the blue curve (AMBRE) has the H alpha line at 656.28 nm, which is in-air value. It should be at 656.46 nm, as in the red curve.

      When λ_air is converted to λ_vacuum, the AMBRE synthetic spectra no longer have their sampling points at regular intervals. Down-sampling was formerly achieved by simply averaging neighboring bins, but it now needs a better resampling method. I interpolate the spectra with cubic splines, and integrate the cubic polynomials in each bin (scipy has this method).

      I am not sure of this, but I assume that the AMBRE synthetic spectra are dE / dλ_air. It means that the spectra must be multiplied by dλ_air / dλ_vacuum.

      [slant-bias.png]: Extrapolation (from 1200nm to 1300nm) was formerly done with a simple exponential function (black line). The red line is an AMBRE synthetic spectum to fit to. The pink region is not used in fitting, but is displayed for checking with eyes.  You see that the fit would be improved with some slant bias c' + d'x (green dotted line), or the 2nd-order term in the exponential (blue line). I use the 2nd-order-term method (blue line) for extrapolation rather than the slant-bias method (green line) because the former involves fewer number of parameters. 

      [compare_5500_g_5_m_1_a_0.4.png] The new flux models look like the middle pane. You see that extrapolation is improved indeed, though most of the improvement is not due to the 2nd order term but to a better fitting algorithm.

      The amplitude of the new flux models are 10^{32} times lower than the old ones because the new flux models are in erg/s/cm^2/Hz rather than nJy. I choose the former unit because the unit of flux models is not important anyway, and "10^{27}" as in the old flux models is so large that the values may be troublesome (flux^2 is infinity if flux is stored in float32).

      I will replace the old fluxmodeldata package with the new one after I write a script to pre-compute broadband fluxes.

        Attachments

        1. ambre_to_vacuum (Halpha).png
          ambre_to_vacuum (Halpha).png
          24 kB
        2. CaII_triplet.png
          CaII_triplet.png
          42 kB
        3. compare_5500_g_5_m_1_a_0.4.png
          compare_5500_g_5_m_1_a_0.4.png
          67 kB
        4. slant-bias.png
          slant-bias.png
          73 kB

          Activity

          Hide
          sogo.mineo sogo.mineo added a comment -

          The new package is here:

          https://hscdata.mtk.nao.ac.jp/hsc_bin_dist/pfs/fluxmodeldata-ambre-20220518-small.tar.xz

          I confirmed that drp_stella (before PIPE2D-506) works with this new package without raising exceptions. The broadband fluxes in the new package are a little larger than those in the old package (when the new ones are multiplied by 10^{32}), and the ratios (new flux) x 10^{32} / (old flux) are almost equal to the refractive index of the air. This fact verifies that the spectra in the new package are correct.

          Show
          sogo.mineo sogo.mineo added a comment - The new package is here: https://hscdata.mtk.nao.ac.jp/hsc_bin_dist/pfs/fluxmodeldata-ambre-20220518-small.tar.xz I confirmed that drp_stella (before  PIPE2D-506 ) works with this new package without raising exceptions. The broadband fluxes in the new package are a little larger than those in the old package (when the new ones are multiplied by 10^{32}), and the ratios (new flux) x 10^{32} / (old flux) are almost equal to the refractive index of the air. This fact verifies that the spectra in the new package are correct.
          Hide
          sogo.mineo sogo.mineo added a comment -

          The new package also contains (1) the script to convert the wavelengths, resample the spectra, and extrapolate them to 1300nm, and (2) the script to compute broadband fluxes. The scripts are dirty but I hope they will make the package falsifiable.

          Show
          sogo.mineo sogo.mineo added a comment - The new package also contains (1) the script to convert the wavelengths, resample the spectra, and extrapolate them to 1300nm, and (2) the script to compute broadband fluxes. The scripts are dirty but I hope they will make the package falsifiable.
          Hide
          sogo.mineo sogo.mineo added a comment -

          Could you review this ticket? I think some review is required in order to close this ticket, though I don't know the correct procedure, for this ticket does not involve any pull requests. The tarball in one of the comments is the only product of this ticket.

          Show
          sogo.mineo sogo.mineo added a comment - Could you review this ticket? I think some review is required in order to close this ticket, though I don't know the correct procedure, for this ticket does not involve any pull requests. The tarball in one of the comments is the only product of this ticket.
          Hide
          hassan hassan added a comment -

          Thanks sogo.mineo. I've been looking at the ticket and I'll pass you comments by early next week if that's OK. So far, your changes look good to me.

          Show
          hassan hassan added a comment - Thanks sogo.mineo . I've been looking at the ticket and I'll pass you comments by early next week if that's OK. So far, your changes look good to me.
          Hide
          hassan hassan added a comment -

          sogo.mineo is it possible to verify your changes by examining other stellar lines such as the CaII triplet at ~850nm ?

          Show
          hassan hassan added a comment - sogo.mineo is it possible to verify your changes by examining other stellar lines such as the CaII triplet at ~850nm ?
          Hide
          sogo.mineo sogo.mineo added a comment -


          These are CaII triplet. The blue lines ("air") are from the previous fluxmodeldata package. The red lines ("vacuum") are from the new package. The wavelength values represented by the vertical dotted lines were looked up in https://physics.nist.gov/PhysRefData/Handbook/Tables/calciumtable2_a.htm (air values) and http://classic.sdss.org/dr6/algorithms/linestable.html (vacuum values).

          Show
          sogo.mineo sogo.mineo added a comment - These are CaII triplet. The blue lines ("air") are from the previous fluxmodeldata package. The red lines ("vacuum") are from the new package. The wavelength values represented by the vertical dotted lines were looked up in https://physics.nist.gov/PhysRefData/Handbook/Tables/calciumtable2_a.htm (air values) and http://classic.sdss.org/dr6/algorithms/linestable.html (vacuum values).
          Hide
          hassan hassan added a comment -

          I think all the checks made by Mineo-san are sufficient to verify the air-to-vacuum conversion.

          Show
          hassan hassan added a comment - I think all the checks made by Mineo-san are sufficient to verify the air-to-vacuum conversion.
          Hide
          sogo.mineo sogo.mineo added a comment -

          Thanks for review. I close this ticket.

          Show
          sogo.mineo sogo.mineo added a comment - Thanks for review. I close this ticket.

            People

            • Assignee:
              sogo.mineo sogo.mineo
              Reporter:
              sogo.mineo sogo.mineo
              Reviewers:
              hassan
            • Votes:
              0 Vote for this issue
              Watchers:
              Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: