Ignore:
Timestamp:
Apr 17, 2003, 3:47:34 PM (22 years ago)
Author:
cecile
Message:

nouveaux tuyaux de ring : theta, phi puis Nsamples mesures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/fitsringrdr.cc

    r2360 r2361  
    22//                               Christophe Magneville
    33//                               Reza Ansari
    4 // $Id: fitsringrdr.cc,v 1.4 2003-04-04 14:17:03 cecile Exp $
     4// $Id: fitsringrdr.cc,v 1.5 2003-04-17 13:47:34 cecile Exp $
    55
    66#include "fitsringrdr.h"
     
    7474void FITSRingReader::init() {
    7575
    76   declareOutput("CircTheta");
    77   declareOutput("CircPhi");
    7876  declareOutput("signal");
    79   openFile(fname);
     77  openFile(fname); 
    8078}
    8179
     
    121119
    122120void FITSRingReader::run() {
     121    cout << "!!!!!!! RING " <<  endl;
    123122
    124123  fits_lock();
     
    142141    fits_read_key(fptr, TDOUBLE, "CIRPHI", &phi, commt, &fstatus);
    143142    fits_read_key(fptr, TDOUBLE, "CIRAPER", &aperture, commt, &fstatus);
    144     fits_read_key(fptr, TLONG, "NSAMPLES", &nSamples, commt, &fstatus);
     143    fits_read_key(fptr, TLONG,   "NSAMPLES", &nSamples, commt, &fstatus);
    145144    fits_unlock();
    146     wontNeedBefore(ring*nSamples);
     145    wontNeedBefore(ring*(nSamples+2));
    147146    cout << "!!!!!!! RING " << ring << endl;
    148147   
     148    double data;
     149    fits_lock();
     150    putData(0, ring*(nSamples+2)+0,theta);
     151    putData(0, ring*(nSamples+2)+1,phi);
     152    fits_unlock();     
    149153    for (int i=0; i<nSamples; i++) {
    150       double data;
    151154      fits_lock();
    152155      fits_read_col_dbl(fptr,1,i+1,1,1,0,&data,&anyNul,&fstatus);
    153       putData(0, ring*nSamples+i,theta);
    154       putData(1, ring*nSamples+i,phi);
    155       putData(2, ring*nSamples+i,data);
     156      putData(0, ring*(nSamples+2)+2+i,data);
    156157      fits_unlock();     
    157158    }
Note: See TracChangeset for help on using the changeset viewer.