[PIPE2D-1596] exclude HSC and Gaia filters not covered by PFS spectra in the focal plane fitting: take #2 Created: 25/Nov/24  Updated: 05/Dec/24  Resolved: 05/Dec/24

Status: Done
Project: DRP 2-D Pipeline
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: Masayuki Tanaka Assignee: Masayuki Tanaka
Resolution: Done Votes: 0
Labels: flux-calibration
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File fluxCalQA_v114716.png     PNG File fluxCalQA_v114903.png     PNG File gaia_lr_brn.png     PNG File gaia_lr_br.png     PNG File gaia_lr_rn.png     PNG File gaia_mr_bm(1).png     PNG File gaia_mr_bmn.png     PNG File hsc_lr_br(1).png     PNG File hsc_lr_brn(1).png     PNG File hsc_lr_rn.png     PNG File hsc_mr_bmn.png     PNG File hsc_mr_bm.png     PNG File hsc_mr_mn.png    
Epic Link: flux calibration
Reviewers: price

 Description   

This is a ticket continued from PIPE2D-1582 and addresses the wavelength windows to inter/extrapolate PFS spectra to measure the HSC and Gaia broad-band fluxes for the focal plane fitting. The assumption here is that we first apply the 'master' flux calibration vector to pfsMerged so that we can ignore the discontinuities between the dichroics and telluric absorption lines.



 Comments   
Comment by Masayuki Tanaka [ 25/Nov/24 ]

For PS1 and HSC filters:

case available arms filters to use
1 brn grizy
2 rn (i.e. b is missing) izy
3 br griz
4 bmn grizy (interpolate between bm and mn)
5 mn izy (extrapolate m to b a bit and interpolate between mn)
6 bm gri (interpolate between bm)

PIPE2D-1427 defined the table for PS1, but I suggest to update PS1 cases 3 and 6 to above so that we applly the same inter/extrapolation to both PS1 and HSC.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

Case 1: all arms are available and we use grizy. No inter/extrapolation needed.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 2: b is missing and we use izy No inter/extrapolation needed.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 3: n is missing and we use griz. No inter/extrapolation needed.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 4: all arms in the medium resolution. Interpolate between the arms and use grizy.

The wavelength windows for the interpolation are:

fittingRangeMR = ((590.,610.),(610.,630.), (720.,740.),(740.,760.), (835.,855.),(855.,875.), (970.,990.),(990.,1010.))

Each of the gray shaded area in the plot here has two separate (but adjacent)  windows. For the interpolation, we can combine the two. For extrapolation (case 5), we fit a linear function to the two windows. Note the windows are narrower than my previous suggestion.

 

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 5: b is missing. Extrapolate to b from m just a little bit and interpolate between m and n. Use izy.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 6: n is missing. Interpolate between  b and m. Use gri.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

 

 

 

 

Now Gaia:

case available arms filters to use
1 brn G, Bp, Rp
2 rn (i.e. b is missing) Rp
3 br G, Bp, Rp
4 bmn G, Bp, Rp
5 mn -
6 bm G, Bp

I made a change to case 5, where I now suggest to ignore and do not use for the focal plane fitting. Also, I do not use Rp in case 6 as it is a little scary.

Gaia filters extends shortwards of 380nm, which PFS does not cover. I suggest:

  1. We use Gaia G and Bp responses truncated at 380nm (i.e., we ignore the responses at shorter wavelengths).
  2. Estimate Gaia G and Bp magnitudes from the PFS spectra (let me denote them as G_truncated and Bp_truncated).
  3. G_full = G_truncted + 0.017
  4. Bp_full = Bp_truncated + (0.09967094 + 0.03244092·x + 0.04070014·x² - 0.03007215·x³ - 0.03245733·x⁴ + 0.02247528·x⁵), where x is g_HSC - r_HSC. I could have used PS1 instead of HSC.

We do this after the inter/extrapolations between the arms described below are applied.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 1: all arms. We simply measure the synthetic fluxes in G_truncaed, Bp_truncated, Rp, g_HSC, and r_HSC. Then we compute G_full, Bp_full.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 2: b is missing. We extrapolate r to the blue a little bit. The wavelength windows are:

fittingRangeLR = ((650.,670.),(670.,690.), (900.,920.),(920.,940.))

We linearly extrapolate first two windows (and use the remaining two windows in case 3).

 

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 3: n is missing. Extrapolate r to n a little bit and use G, Bp, and Rp.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 4: all arms in medium resolution. Interpolate between b and m, and m and n. Use G, Bp, and Rp. The interpolation windows are:

fittingRangeMR = ((590.,610.),(610.,630.), (720.,740.),(740.,760.), (835.,855.),(855.,875.), (970.,990.),(990.,1010.))

These are the same windows as used for the HSC and PS1 filters for medium resolution.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

case 6: n is missing. Interpolate between b and m, and extrapolate m to n. Use G and Bp. The extrapolation to n is a bit scary, but G should be fine as the extrapolation covers a limited part of the G-band. It covers a significant fraction of Rp, and let' not use Rp.

Comment by Masayuki Tanaka [ 25/Nov/24 ]

I hope my comments above are clear, but let me know, sogo.mineo . This is very complicated.

Comment by Masayuki Tanaka [ 04/Dec/24 ]

Thank you, sogo.mineo for implementing this feature. I think the code works OK. The left figure is a medium-resolution Gaia visit and the calibration accuracy is similar to PS1 visits in low resolution (I am a little concerned about the overall normalization offset in pfsSingle, but most FLUXSTDs have low-S/N in this visit and I would not worry too much about it). The 2nd is medium-resolution PS1 and is again similar.

Comment by sogo.mineo [ 04/Dec/24 ]

Could you review this PR?

Comment by sogo.mineo [ 05/Dec/24 ]

Merged. Thanks for reviewing.

Generated at Tue Apr 08 16:06:32 JST 2025 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.