Changeset 669 in Sophya for trunk/SophyaLib/SkyT/easyTest.cc


Ignore:
Timestamp:
Nov 29, 1999, 5:59:13 PM (26 years ago)
Author:
ansari
Message:

Adaptation a PPersist de SpectralResponse - Suite 1 , Sophie 29/11/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyT/easyTest.cc

    r668 r669  
    55#include "tvector.h"
    66#include "squarefilt.h"
     7#include "gaussfilt.h"
    78#include "trianglefilt.h"
    89
    9 #include "iobjspecresp.cc"
    1010
    1111int
     
    1515//   SR_ReadSelf(in);
    1616//   cout << " " << endl;
    17 
    18     PInPersist in2("outTF");
    19     SR_ReadSelf(in2);
    20     cout << " " << endl;
    2117
    2218  cout << "BlackBody!" << endl;
     
    9288  freqmax = vecOfNuRSV(SRVmaxVal-1);
    9389  SpecRespVec mySRV(vecOfNuRSV, vecOfFDeNuRSV);
     90
     91// Test ecriture en PPF
     92  {
     93  cout << " Writing mySRV (RadSpecVec to PPF " << endl;
     94  POutPersist s("srvec.ppf");
     95  s << mySRV;
     96  }
     97  {
     98  cout << " Reading  mySRV from PPF " << endl;
     99  PInPersist s("srvec.ppf");
     100  SpecRespVec srv;
     101  s >> srv;
     102  cout << srv;
     103  }
     104
    94105  double SRV    = mySRV.IntegratedSpect(freqmin,freqmax);
    95106  double logSRV = mySRV.logIntegratedSpect(freqmin,freqmax);
     
    158169  cout << "read and write things in file...ppersist!" << endl;
    159170  TriangleFilter myTF2(10,200,20,40);
    160   POutPersist outTF("outTF");
    161   myTF2.WriteSelf(outTF);
    162171//   PInPersist inTF("outTF");
    163172//   myTF2.ReadSelf(inTF);
    164  
     173
     174  {  // Test IO PPF GaussianFilter
     175  cout << " Writing  GaussianFilter gf(276., 39.6, 0.794, 27., 690.) to PPF " << endl;
     176  GaussianFilter gf(276., 39.6, 0.794, 27., 690.);
     177  POutPersist s("fgauss.ppf");
     178  s << gf ;
     179  }
     180  {
     181  cout << " Reading  GaussianFilter from PPF " << endl;
     182  PInPersist s("fgauss.ppf");
     183  GaussianFilter gf2;
     184  s >> gf2;
     185  cout << gf2 << endl;
     186  }
    165187
    166188}
Note: See TracChangeset for help on using the changeset viewer.