[PIPE2D-1221] Create fiber flats from 2023 Apr/May engineering data Created: 13/May/23 Updated: 27/May/23 Resolved: 27/May/23 |
|
| Status: | Done |
| Project: | DRP 2-D Pipeline |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Normal |
| Reporter: | price | Assignee: | price |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
During the 2023 Apr/May engineering run, we obtained data from which to generate fiber flats for n1. Build fiber flats and install in a new calib repository ( |
| Comments |
| Comment by rhl [ 13/May/23 ] |
|
How does this relate to PIPE2D-1194? |
| Comment by price [ 13/May/23 ] |
|
That one says "based on lab flats". It may not be necessary once these are available, but I don't know the true goal of that ticket (looks like something to do with persistence). |
| Comment by price [ 17/May/23 ] |
|
From my notes:
|
| Comment by price [ 18/May/23 ] |
|
The new n1 flat doesn’t serve to flatten the data: the “flattened” data still has strong detector features visible. I’m thinking that this must be the result of persistence, but perhaps I’ve missed something?
|
| Comment by rhl [ 18/May/23 ] |
|
Can we see some images too, please? |
| Comment by price [ 18/May/23 ] |
|
In the below image, the unflattened image is shown on the left, and the flattened image is on the right.
|
| Comment by rhl [ 18/May/23 ] |
|
That's depressing. What does the flat look like? |
| Comment by price [ 18/May/23 ] |
|
|
| Comment by rhl [ 18/May/23 ] |
|
What's the ratio of the pre- and post-flattened images? The flat looks fine, so I don't understand why it didn't work better. With proper handling of 0/0 |
| Comment by price [ 18/May/23 ] |
|
The ratio of the pre- and post-flattened images is the flat. If you look carefully, the flat has removed high-frequency structure. The bright features are smeared out in the post-flattened image. |
| Comment by rhl [ 18/May/23 ] |
|
Yes, the ratio should be the flat modulo bugs. However, something is wrong. If you take two quartz exposures and divide one by the other you should get something close to unity; right? Your findings suggest that the dithered flat code isn't equivalent to that procedure. |
| Comment by price [ 27/May/23 ] |
|
The problem was due to the normalisation of the individual exposures, wherein we measure the fiber profile, extract spectra, and produce a model image which we use to normalise the exposure. This process naturally samples things nicely in the spatial dimension (through the combination of reducing every row of every fiber to a single number, and then dithering). The problem is that because we have been dividing by the actual spectra, the normalised image didn't contain any structure in the spectral dimension. I've been trying to deal with that by applying a median filter to each spectrum, and I like the results I get with a median filter of half-width 400 pixels. rhl has suggested we normalise by an average spectrum, which will require future developement (PIPE2D-1226). I have installed the flats in CALIB-2023-04-v2. |