[INSTRM-484] Update FITS headers based on Subaru feedback of MCS example PFSC00005800 Created: 10/Sep/18 Updated: 29/May/23 Resolved: 29/May/23 |
|
| Status: | Done |
| Project: | Instrument control development |
| Component/s: | ics_actorkeys |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Epic | Priority: | Normal |
| Reporter: | hassan | Assignee: | cloomis |
| Resolution: | Done | Votes: | 0 |
| Labels: | FITS, ICS | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Epic Name: | |
||||||||||||||||
| Description |
|
In the email [PFS-Soft-Subaru:551] Hisanori Furusawa raised the following comments on the MCS FITS file example supplied by cloomis. These comments should be reviewed and implemented.
|
| Comments |
| Comment by hassan [ 17/Sep/18 ] |
|
Child tasks for this epic and corresponding priorities will be created within the next few days. |
| Comment by cloomis [ 02/Oct/18 ] |
|
1. |
| Comment by hassan [ 03/Oct/18 ] |
|
Hisanori Furusawa or a member of the Subaru/NAOJ teams: could you please respond to the questions Craig has added in the above section, for your comments 4, 6, 7, 8, 9, 21 and 22? Thanks. |
| Comment by Hisanori Furusawa [ 04/Oct/18 ] |
|
1. 5. 6. So we do not need to do anything? 7. So we do not need to do anything? 8. If there is no filter, what should we put in? 9. So we do not need to do anything? 10. Sure. (Inline command for EXTEND, DET-ID) 12. |
| Comment by Hisanori Furusawa [ 04/Oct/18 ] |
|
The above is my quick response, but some of them apparently needs Onodera-san & Eric's attention. I will check with them, too. |
| Comment by hassan [ 09/Oct/18 ] |
|
cloomis: can you look at the additional questions from Hisanori Furusawa? |
| Comment by monodera [ 09/Oct/18 ] |
|
I'm looking into it. Sorry for not very prompt response. |
| Comment by monodera [ 10/Oct/18 ] |
|
FYI, the current table is available here: https://docs.google.com/spreadsheets/d/1chczRkX_Thif3FYD8ScgN7CgZQv1XNjcysYzEqPqfl4/edit?usp=sharing I'm still working on the translation of the Subaru FITS rule https://www.naoj.org/staff/monodera/subaru-fits/ja/header/regulation/, but I believe Google translate works nicely. 3. I'll add a description for NAXIS[1-2] to clarify that it's not mandatory when NAXIS=0. 4. The ranges for keywords listed here are the following. OBS-ALOC: {Observation,Standby}
OBS-MOD: {IMAG,SPEC,IPOL,SPOL}_* (e.g., IMAG for HSC)
FOC-POS: {Cassegrain,COUDE,Nasmyth-IR,Nasmyth-Opt,PRIME}
IMR-TYPE: {BLUE,RED,IR,NONE}
6. I don't think there are any problems to include M2-POS3 and M2-ANG3 as optional keywords in the list. I'll work on it. 7. I don't see major problems which potentially cause confusion. 9. I will talk to Eric. As long as the value is taken from Gen2 as "FITS.SBR.M2-TYPE", it will be corrected automatically. We will let you know when we will make a change. DATA-TYP = {ACQUISITION,BIAS,COMPARISON,DARK,DOMEFLAT,DOMEFLAT_ON,DOMEFLAT_OFF,FLAT,FOCUSING,OBJECT,SKYFLAT,STANDARD,STANDARD_STAR,TEST}
16. Is it DATA-TYP or IMR-TYPE? 21. I still don't have clear description of the rule for MEF. What I have currently in mind is that keywords common to all extensions are put in the primary header, and other keywords relevant to each extension are present in the corresponding header. 22. So far I don't see major problems for keywords used for tiled-compression, but see items 23 and 24. |
| Comment by cloomis [ 10/Oct/18 ] |
|
Thanks for the spreadsheet! All the cards in one machine-parseable file, yay! A couple of immediate questions: 4. OBS-MOD: PFS is a spectrograph, so the instrument and the science detectors are always SPEC. Should the MCS and AGCC images be IMAG? [Also, the names listed in the spreadsheet are the long form ("Imaging" vs. "IMAG")] For both of those, can I just use whatever value is in the keyword? Or should that be checked against the legal/expected values? 14. DATA-TYP: So for the science detectors, we should use "COMPARISON" for arc lamp exposures, and "OBJECT" for science exposures? And for the MCS, "OBJECT" for the exposures of the illuminated PFI? Or "ACQUISITION"? And a general question: 17. There are various tables on the NAOJ FITS site showing per-instrument formats. Should I only use the ones in the spreadsheet you are developing? |
| Comment by eric [ 10/Oct/18 ] |
|
LST
OBS-ALOC
OBS-MOD
FOC-POS
IMR-TYPE
UT, UT-STR, UT-END
HST, HST-STR, HST-END
M2-POS3, M2-ANG3
FILTER01
M2-TYPE
|
| Comment by cloomis [ 12/Oct/18 ] |
|
monodera eric Both descriptions contain "Typical angle of instrument rotator during the exposure (degree)." Both cards are optional. We care about one sensible value; which should PFS use and put in the header? |
| Comment by Hisanori Furusawa [ 12/Oct/18 ] |
|
IMGROT is for the field rotation w.r.t. the sky at Nasmys foci, while INSROT is that for Cassegrain's, so only the INSROT should matter for MCS. |
| Comment by eric [ 12/Oct/18 ] |
|
Concur with Furusawa-san's comment.
|
| Comment by cloomis [ 16/Oct/18 ] |
|
What is the correct way to determine if the system (telescope focus and rotator, at least) is configured correctly for PFS, and thus we can use the associate keywords to fill in the focus and rotator cards, generate valid WCS cards, and calculate PFI geometry? I'd like to avoid putting silly values in headers, and to be able to warn about unexpected configurations. FITS.SBR.TELFOCUS == 'P_OPT2' looks like a plausible test, from looking at both the spreadsheet and the HSC headers. But is that sufficient to tell us that both the FITS.SBR.INSROT and FITS.SBR.FOC-VAL will be correct for PFS? If so, can we then also drop IMR-TYP? |
| Comment by eric [ 16/Oct/18 ] |
|
I think that is a reasonable test. If it is set so, then the other keywords can be assumed to be correct for the configuration (although this depends on the day and night crews setting the telescope up correctly from the TWS side). As for dropping IMR-TYP, I think Onodera-san or Furusawa-san should comment on that. I'd say if HSC doesn't include it then PFS shouldn't need to either. But that's just an opinion. |
| Comment by Hisanori Furusawa [ 16/Oct/18 ] |
|
I believe that we should simply drop IMR-TYP for non-Nasmyth instruments. |
| Comment by monodera [ 16/Oct/18 ] |
|
I agree to drop IMR-TYPE and other keywords related to the image rotator. For checks of TELFOCUS, you can test allowed values like INSROT > a && INSROT < b to be more conservative. |
| Comment by cloomis [ 17/Oct/18 ] |
|
Please look at https://www.dropbox.com/s/frj8pd1m51b6oy1/PFSC00011400.fits. [I should have filled it with 0s instead of the camera noise. Sorry. ] 1
2
3
4
5
8
10
11 Fixed 12
13 Fixed 14 Fixed 15
16
17
18
20 Fixed 24 Fixed |
| Comment by cloomis [ 24/Oct/18 ] |
|
The MCS and P_OPT2 are mounted on the telescope, and PFS is set as the instrument.
|
| Comment by eric [ 24/Oct/18 ] |
|
IMR-TYP is most likely undefined for this combination, since it refers to the NS_OPT image rotator. From the comments above, I thought you had dropped it as suggested by Furusawa-san.
FOC-POS may need to be updated to handle this configuration. We'll look into it. |
| Comment by eric [ 24/Oct/18 ] |
|
Re: FOC-POS. See my comment above:
So, we'll add it.
|
| Comment by eric [ 24/Oct/18 ] |
|
Added FITS.PFS.FOC-POS |
| Comment by cloomis [ 24/Oct/18 ] |
|
Oops. My mistake on IMR-TYP – somehow I did not drop it as promised. |
| Comment by Hisanori Furusawa [ 26/Oct/18 ] |
|
congrats to your successful engineering! sorry for my delay, but here is a quick summary of my reviewing PFSC00011400.fits. I see big improvements have been done - thank you for your efforts, so the remaining are mostly something to be tuned with Gen2/telescope and/or new rule. 1. mandatory keywords: 2. optional but suitable keywords: 3. check valid value ranges (and default values) 4. value format 5. validity of WCS keywords is TBD |
| Comment by hassan [ 10/Dec/18 ] |
|
1. cloomis to add LST |
| Comment by yuki.moritani [ 29/May/23 ] |
|
Comments on newer sample is discussed under INSTRM-1531 , so I close this ticket. |