Changeset 1239 in Sophya for trunk/SophyaProg/PMixer/skymixer.cc


Ignore:
Timestamp:
Oct 18, 2000, 10:58:53 PM (25 years ago)
Author:
ansari
Message:

Modifs FITS , Reza 18/10/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/PMixer/skymixer.cc

    r1141 r1239  
    286286        << (string)(arg[2]) << endl;
    287287   {
    288      FITS_SphereHEALPix<float> fios2(outgs);
    289      fios2.Write(arg[2]);
     288     FitsOutFile fios(arg[2]);
     289     fios.firstImageOnPrimaryHeader(false); // Use secondary header
     290     fios << outgs ;
    290291   }
    291292   PrtTim("End of WriteFITS ");
     
    446447    ifnm[255] = '\0';
    447448    Matrix mtx;
    448     FITS_TArray<r_8> fios(ifnm, 2);   // $CHECK$ A passer em HDU=2 , Reza 31/7/2000
    449     mtx = fios;
     449    FitsInFile fiis(ifnm);
     450    fiis.firstImageOnPrimaryHeader(false); // Use secondary header HDU=2
     451    fiis >> mtx ;
    450452    double numin = dc.DParam(key, 2, 1.);
    451453    double numax = dc.DParam(key, 3, 9999.);
     
    497499    cout << " Reading Input FITS spectra file " << (string)ifnm << endl;
    498500    Matrix mtx;
    499     FITS_TArray<r_8> fios(ifnm, 2);   // $CHECK$ A passer em HDU=2 , Reza 31/7/2000
    500     mtx = fios;
     501    FitsInFile fiis(ifnm);
     502    fiis.firstImageOnPrimaryHeader(false); // Use secondary header HDU=2
     503    fiis >> mtx ;
    501504    double numin = dc.DParam(key, 2, 1.);
    502505    double numax = dc.DParam(key, 3, 9999.);
Note: See TracChangeset for help on using the changeset viewer.