[DAMD-127] Definition of pfsReference Created: 21/Dec/21 Updated: 15/Jul/22 Resolved: 18/Feb/22 |
|
| Status: | Done |
| Project: | Data Model |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Normal |
| Reporter: | Takuji Yamashita | Assignee: | Takuji Yamashita |
| Resolution: | Done | Votes: | 0 |
| Labels: | flux-calibration | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Reviewers: | hassan | ||||||||||||||||||||||||
| Description |
|
We have pfsReference which includes the best-fit model template (or set) of flux standards. pfsReference is generated from `calculateReferenceFlux` and then is passed to `fluxCalibrate`. The datamodel definition has been not yet fixed and is not mentioned in datamodel.txt. We propose its definition here. Although this definition can change because we are developing flux calibration, we share our thought with you and we would like to get feedback from you. We will update datamodel.txt according to the discussion here. |
| Comments |
| Comment by Takuji Yamashita [ 21/Dec/21 ] |
|
And, in this case, how do we implement the pfsReference class? We inherit PfsFiberArraySet and then add new HDUs and new dedicated methods (e.g., read/write an FITS file)? Or we make a new class for it? |
| Comment by price [ 22/Dec/21 ] |
|
Don't worry about the implementation for now. It's probably a new class, but it shouldn't be hard to put together once we've agreed on the datamodel. 1. Can we use the same wavelength scale for each fiber, and save a large fraction of the space? I expect all the models use a common wavelength scale. |
| Comment by Takuji Yamashita [ 22/Dec/21 ] |
|
1. You are right. We can use the same wavelength scale for all the fibers. We use the header keywords instead. |
| Comment by rhl [ 22/Dec/21 ] |
|
I think you almost always end up wanting binary flags (or an enum) not a simple bool. |
| Comment by sogo.mineo [ 22/Dec/21 ] |
|
I think that PfsReference may contain small amount of "metadata" in its strict meaning "data that describes data", but that "debug" information should go into another file. I think PfsReference should concisely contain just such information as is necessary and sufficient for later tasks, especially when you worry about the size of the wavelength array. A "PDF" contains 60,000 float numbers per fiber, which is already far larger than the wavelength array, and the proposal reads there will be 6 arrays of this size. The separate file for debugging will make no sense to common users. By making it a separate file, we can make its creation optional. |
| Comment by Takuji Yamashita [ 11/Jan/22 ] |
|
I have discussed with Mineo-san and Tanaka-san off-line. The data volume of PDFs is much large, and I do not expect the PDFs themselves are useful for users. So, I propose to remove the PDFs' extension from pfsReference, and I revised the pfsReference definition as follows. We can save the PDFs as a separate file for developers.
|
| Comment by Takuji Yamashita [ 28/Jan/22 ] |
|
I would appreciate it if you could give me your comments on the updated version. If there is no further comment, we will go with this. |
| Comment by rhl [ 03/Feb/22 ] |
|
Could we just need to save the parameters of the chosen reference star, and provide a function to regenerate the reference spectrum? If we later wanted to generate denormalised products for users who only want to look at FITS files that'd be possible, but if they're using the sciDB then we'd just provide the code (similar to the way that PSFs are handled in hsc) |
| Comment by Takuji Yamashita [ 04/Feb/22 ] |
|
It is possible. One thing that I am concerned about is that it takes a certain amount of time for a user to regenerate a set of model templates because the current code (RBF interpolation) needs several seconds for each template. |
| Comment by Takuji Yamashita [ 07/Feb/22 ] |
|
I have added the pfsRerence definition in datamodel.txt. I would like to ask you or a relevant person to review it. We need to make a new class of pfsReference in the datamodel module. Mineo-san will be assigned to its task in a separate branch. |
| Comment by hassan [ 15/Feb/22 ] |
|
Proposed text looks fine to me. Minor comment added to pull request. |
| Comment by Takuji Yamashita [ 18/Feb/22 ] |
|
The branch has been merged to master. |