Документ взят из кэша поисковой машины. Адрес оригинального документа : http://xmm.vilspa.esa.es/sas/8.0.0/doc/cifdiff.ps.gz
Дата изменения: Wed Jul 2 03:28:02 2008
Дата индексирования: Tue Oct 2 10:27:43 2012
Кодировка:

Поисковые слова: с р с п п п п п п п п р п р п п
XMM-Newton Science Analysis System Page: 1
cifdi
July 1, 2008
Abstract
List the di erences between two Calibration Index Files.
1 Instruments/Modes
Instrument Mode
n/a n/a
2 Use
pipeline processing no
interactive analysis yes
3 Description
cifdi takes two Calibration Index Files (CIFs) and writes to a le the names of the CCF components
that are in one CIF but not in the other. Refer to [1] for a description of the CCF naming convention.
4 Parameters
This section documents the parameters recognized by this task (if any).
Parameter Mand Type Default Constraints
calindex1set yes e ccf.cif
Name of the rst calibration index set.
calindex2set yes e ccf.cif
Name of the second calibration index set.
with le no b no
xmmsas 20080701 1801-8.0.0

XMM-Newton Science Analysis System Page: 2
Write the output to an ascii le?
out le no f cifdi .asc
Name of the output ascii le.
5 Errors
This section documents warnings and errors generated by this task (if any). Note that warnings and
errors can also be generated in the SAS infrastructure libraries, in which case they would not be docu-
mented here. Refer to the index of all errors and warnings available in the HTML version of the SAS
documentation.
6 Input Files
1. Two Calibration Index Files. See cifbuild.
7 Output Files
1. A plain text le.
8 Algorithm
string c1 = stringParameter("calindex1set");
string c2 = stringParameter("calindex2set");
CalIndex cif1 = CalIndexSet(c1).calibrationIndex("cif1");
CalIndex cif2 = CalIndexSet(c2).calibrationIndex("cif2");
ofstream out(stringParameter("outfile").c_str());
cif1.sort(CcfConstituent::compare);
cif2.sort(CcfConstituent::compare);
CalIndex cif3("cif3");
set_difference(cif1.begin(), cif1.end(), cif2.begin(), cif2.end(), back_inserter(cif3), CcfConstituent::compare);
out << "CCF constituents that are in " << c1 << " but not in " << c2 << ":" << endl;
if(cif3.size() == 0)
out << "** none **" << endl;
else
for(CalIndex::const_iterator i = cif3.begin(); i != cif3.end(); i++)
out << (*i)->name() << endl;
xmmsas\_20080701\_1801-8.0.0

XMM-Newton Science Analysis System Page: 3
// repeat swapping cif1 and cif2
9 Comments

References
[1] ESA. Interface control document for the XMM current calibration le. Technical Report XMM-GEN-
ICD-0005, ESA/SSD, Dec 2001. Issue 4.0.
xmmsas 20080701 1801-8.0.0