-
Type:
Task
-
Status: Done (View Workflow)
-
Priority:
Normal
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:2
This was reported by rhl on 2022-03-22 during preparations towards the 2022 PFS Collaboration meeting.
It appears that the scaling for pfsArm.flux values and pfsArm.sky values are different. For example, taking visit 71280 and looking at a line around 799.5 nm:
base, rerun = "/projects/HSC/PFS/Subaru", "hassans/sunss/subcont_applygains_calibpfi_fix_2022-03-22_18-40-11"
dataDir = os.path.join(base, "rerun", rerun)
calibRoot = os.path.join(base, "CALIB-PFI-20211220")
butler = dafPersist.Butler(dataDir, calibRoot=calibRoot)dataId = dict(visit=71280, arm="r", spectrograph=1)
Yields values of the order of a 1000 for the flux, but a factor of 10^5 lower for the sky:
pfsArm = butler.get("pfsArm", dataId)
indx = np.where((pfsArm.wavelength[10] >= 799.4) & (pfsArm.wavelength[10] <=799.9))
pfsArm.flux[10][indx]
array([6572.44310536, 7552.88526952, 5728.66099982, 1516.84257811,
193.36381803])pfsArm.sky[10][indx]
array([0.00693071, 0.0069277 , 0.00692467, 0.00692161, 0.00691854])