Changeset 3658 in Sophya for trunk/AddOn/TAcq/tstminifits.cc


Ignore:
Timestamp:
Oct 18, 2009, 11:10:33 AM (16 years ago)
Author:
ansari
Message:

1/ Gestion multi-fibre ds RAcqMemZoneMgr et les DMAReader/DiskWriter (brproc.cc)
2/ Possibilite d'ajout de mot cle ds l'entete FITS par la classe MiniFITSFile

Reza , 18/10/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/tstminifits.cc

    r3542 r3658  
    5858    mff.setDTypeNaxis(MF_Float32, sx, sy);
    5959    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) ");
    6068    mff.WriteI(ta.Data(), sx*sy);
    6169    }
     
    6573    mff.setDTypeNaxis(MF_Int16, sx, sy);
    6674    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) ");
    6778    mff.WriteF(arr.Data(), sx*sy);
    6879    }
Note: See TracChangeset for help on using the changeset viewer.