[INSTRM-493] Provide FITS card formatting table Created: 20/Sep/18  Updated: 05/Mar/20  Resolved: 05/Mar/20

Status: Done
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: cloomis Assignee: cloomis
Resolution: Done Votes: 0
Labels: FITS
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: INSTRM-484

 Description   

We are required to provide a keyword dictionary that describes the value format and possible enumeration for each keyword. I believe something like the following should work. This is adapted from existing instruments: (FOCAS/HSC/AO188), and has examples adapted from AO188. Whitespace-delimited.

Note that we will auto-generate this list from our internal reference code (ics_actorkeys, so the units are not in the comment in this table; they are in the FITS headers.

I separated out the optional Value List in order to allow longer comments. Please comment if this is not acceptable.

There does not seems to be a standard type for types – I see C-like, FITS-like, Fortran-like.

Cardname  Format  Type     Units    Comment                        Value list
---------+-------+--------+--------+------------------------------+----------
D_IMRMOD  %12s    string   -        IMR tracking mode              SID,NON-SID,ADI,STOP,OTHER
D_IMRANG  %9.3f   float    deg      IMR angle                      -

Too make it slightly more readable here is a table of the same data:

Cardname Format Type Units Comment Value list
D_IMRMOD %12s string   IMR tracking mode SID,NON-SID,ADI,STOP,OTHER
D_IMRANG %9.3f float deg IMR angle  


 Comments   
Comment by cloomis [ 02/Oct/18 ]

This covers items 1, 5, part of 12, 16, 17 from INSTRM-484

Comment by cloomis [ 05/Mar/20 ]

I am closing this ticket, but expect that there will be smaller change requests.
The primary command is cardFormats filename=/tmp/foo.md. The filename must be .md or .csv; the output is formatted appropriately.

Merged at e2de9f1, tagged 2.1.5

Generated at Sat Feb 10 16:25:35 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.