Changeset 3658 in Sophya for trunk/AddOn/TAcq/tstminifits.cc
- Timestamp:
- Oct 18, 2009, 11:10:33 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/tstminifits.cc
r3542 r3658 58 58 mff.setDTypeNaxis(MF_Float32, sx, sy); 59 59 mff.Open("tmf.fits", MF_Write); 60 // Exemple d'ajout d'information dans l'entete FITS 61 mff.AddKeyI("CleI_A", 12); 62 mff.AddKeyD("CleD_B", 3.1415, " Valeur de Pi"); 63 mff.AddKeyS("CleS_C", "Prog. tstminifits", " Cle de type string"); 64 // Ajout de date-heure dans l'entete FITS 65 TimeStamp tsc; 66 string cdtu=tsc.ToString(); 67 mff.AddKeyS("DATEOBS", cdtu.c_str(), " Observation Time (YYYY-MM-DDThh:mm:ss UT) "); 60 68 mff.WriteI(ta.Data(), sx*sy); 61 69 } … … 65 73 mff.setDTypeNaxis(MF_Int16, sx, sy); 66 74 mff.Open("tmf2.fits", MF_Write); 75 TimeStamp tsc; 76 string cdtu=tsc.ToString(); 77 mff.AddKeyS("DATE", cdtu.c_str(), " File Creation time(YYYY-MM-DDThh:mm:ss UT) "); 67 78 mff.WriteF(arr.Data(), sx*sy); 68 79 }
Note:
See TracChangeset
for help on using the changeset viewer.