Changeset 1120 in Sophya for trunk/SophyaProg


Ignore:
Timestamp:
Jul 31, 2000, 3:47:02 PM (25 years ago)
Author:
ansari
Message:

Adaptation de PMixer aux changements suivants :

  • Remplacement de l'ancienne classe Image<T> par une nouvelle, heritant

de TMatrix<T>

  • Remplacement des FitsIoServer par FITS_xxx<T>

Reza 31/7/2000

Location:
trunk/SophyaProg/PMixer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/PMixer/pmixer.h

    r933 r1120  
    1818#include "pexceptions.h"
    1919#include "datacards.h"
    20 #include "fitsioserver.h"
     20#include "ntuple.h"
     21#include "fiospherehealpix.h"
    2122#include "fitsspherehealpix.h"
    2223#include "fitstarray.h"
     24#include "cimage.h"
    2325
    2426#include "radspecvector.h"
  • trunk/SophyaProg/PMixer/skymixer.cc

    r1062 r1120  
    442442
    443443  if (dc.HasKey(key) ) {      // Reading FITS filter file
    444     FitsIoServer fios;
    445444    char ifnm[256];
    446445    strncpy(ifnm, dc.SParam(key, 1).c_str(), 255);
    447446    ifnm[255] = '\0';
    448     Matrix mtx(2,10);
    449     fios.load(mtx, ifnm);
     447    Matrix mtx;
     448    FITS_TArray<r_8> fios(ifnm, 2);   // $CHECK$ A passer em HDU=2 , Reza 31/7/2000
     449    mtx = fios;
    450450    double numin = dc.DParam(key, 2, 1.);
    451451    double numax = dc.DParam(key, 3, 9999.);
     
    496496    char * ifnm = BuildFITSFileName(dc.SParam(key, 0));
    497497    cout << " Reading Input FITS spectra file " << (string)ifnm << endl;
    498     FitsIoServer fios;
    499     Matrix mtx(2,10);
    500     fios.load(mtx, ifnm);
     498    Matrix mtx;
     499    FITS_TArray<r_8> fios(ifnm, 2);   // $CHECK$ A passer em HDU=2 , Reza 31/7/2000
     500    mtx = fios;
    501501    double numin = dc.DParam(key, 2, 1.);
    502502    double numax = dc.DParam(key, 3, 9999.);
  • trunk/SophyaProg/PMixer/tgrsr.cc

    r949 r1120  
    128128  PrtTim("End of filling ");
    129129
    130   FitsIoServer fios;
     130  {
    131131  cout << "\n Writing Matrix NRows= " << mtx.NRows() << "  NCols= "
    132132       << mtx.NCols() << " to FITS file: " << (string)(arg[4]) << endl;
    133   fios.save(mtx, arg[4]);
     133  FITS_TArray<r_8> fios(&mtx);
     134  fios.Write(arg[4]);   // $CHECK$ A passer em HDU=2 , Reza 31/7/2000
    134135  PrtTim("End of Matrix->FITS ");
     136  }
    135137
    136138  if (narg > 5) { // Writing ImageR4 fo FITS file
    137139    cout << "wrting ImageR4(" << npt << ", 2) to FITS file: "
    138140         << (string)(arg[5]) << endl;
    139     fios.save(img, arg[5]);
     141    FITS_TArray<r_4> fios(&img);
     142    fios.Write(arg[5]);
    140143    PrtTim("End of ImageR4->FITS ");
    141144  }
  • trunk/SophyaProg/PMixer/tgsky.cc

    r949 r1120  
    108108
    109109
    110  
    111   FitsIoServer fios;
    112   fios.save(sph, arg[4]);
     110  {
     111  FITS_SphereHEALPix<r_4> fios(&sph);
     112  fios.Write(arg[4]);
    113113  cout << "SphereHEALPix<float> written to FITS file " << (string)(arg[4]) << endl;
    114114  PrtTim("End of WriteFITS ");
    115 
    116115  }
    117   catch (PThrowable exc) {
    118     cerr << " tgsky: Catched Exception - Msg= " << exc.Msg() << endl;
     116  }
     117  catch (PThrowable & exc) {
     118    cerr << " tgsky: Catched Exception - Msg= " << exc.Msg()
     119         << " Type=" << (string)typeid(exc).name() << endl;
    119120  }
    120121  catch (...) {
Note: See TracChangeset for help on using the changeset viewer.