Changeset 669 in Sophya for trunk/SophyaLib/SkyT/tgrsr.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/tgrsr.cc

    r668 r669  
    2929  if ((narg < 5) || ((narg>1) && (strcmp(arg[1],"-h") == 0)) )  {
    3030    cout << " tgrsr : Generation of RadSpectraVec and SpecRespVec in FITS  " << endl;
    31     cout << " Usage: tgrsr 0/1 Params NPoints FitsFileName [ImageR4FITSName]" << endl;
     31    cout << " Usage: tgrsr 0/1 Params NPoints FitsFileName [ImageR4FITSName] [ppfname] " << endl;
    3232    cout << " 0 -> GaussianFilter  T = A exp(((nu-nu0)/dnu)^2" << endl;
    3333    cout << " Params : A,Nu0,DNu,MinFreq,MaxFreq " << endl;
     
    8282      img(k,1) = tnu(k);
    8383    }
     84    if ((typ == 0) && (narg > 6)) { // Writing to ppf  file
     85      cout << "writing SpecRespVec(" << npt << ") to PPF file: "
     86           << (string)(arg[6]) << endl;
     87      cout << sr ;
     88      cout << srv ;
     89      {
     90        POutPersist pos(arg[6]);
     91        pos << srv;
     92      }
     93      PrtTim("End of ImageR4->PPF ");
     94    }
     95
    8496  }
    8597  else { // Generation de RadSpectraVec from PowerLawSpectra
Note: See TracChangeset for help on using the changeset viewer.