Changeset 409 in Sophya for trunk/Poubelle/archTOI.old


Ignore:
Timestamp:
Sep 22, 1999, 11:56:54 AM (26 years ago)
Author:
ansari
Message:

nouvelles toi

Location:
trunk/Poubelle/archTOI.old
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/Makefile

    r405 r409  
    77         ssthandler.o toiinterpolator.o gpsparser.o asigps.o \
    88         auxinterpgps.o tsid.o archparam.o dyffttools.o fft_mayer.o \
    9          formepulse.o pisteetoile.o sstetoile.o transfelec.o
     9         formepulse.o pisteetoile.o sstetoile.o transfelec.o \
     10         gyrohandler.o
    1011        $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm
    1112archdump: archtoidump.o archeopsfile.o decompress.o archeops.o ssthandler.o
     
    1415archeopsfile.o: archeopsfile.cc archeopsfile.h archeops.h \
    1516 archeops_28.h ssthandler.h gpsparser.h compress.h
     17#       cxx  -O -g -I../cfitsio  -c archeopsfile.cc -o archeopsfile.o -assume noaligned_objects
    1618archtoi.o: archtoi.cc archeopsfile.h archeops.h archeops_28.h \
    1719 ssthandler.h gpsparser.h toisvr.h toiiter.h auxgps.h tsid.h archtoi.h \
     
    5456fft_mayer.o: fft_mayer.cc mayer_fft.h trigtbl.h
    5557archparam.o: archparam.cc archparam.h
     58gyrohandler.o: gyrohandler.cc gyrohandler.h archeops.h archeops_28.h
  • trunk/Poubelle/archTOI.old/archeopsfile.cc

    r408 r409  
    675675}
    676676#endif
    677  
     677
    678678long ArcheopsFile::searchNextBlock(long pos) {
    679679  static char* buffer = 0;
     
    692692    //if (read<taille_maxi_block_archeops*2) return -1;
    693693    // EA 150999 changed i+=4 to i++ -> unaligned, but can lose bytes in flight recorder
    694     for (size_t i=4; i<read; i++) {
    695       if (*(int4*)(buffer+i) == debswp) {
     694#ifndef __DECCXX
     695#define __unaligned
     696#endif
     697     for (size_t i=4; i<read; i++) {
     698      if (*(__unaligned int4*)(buffer+i) == debswp) {
    696699        cout << "trying to skip " << i << " bytes to pos="<<pos+i << endl;
    697700        return pos+i;
     
    704707}
    705708
    706  
     709
    707710
    708711
     
    931934}
    932935
     936double ArcheopsFile::getMuVBolo2T(int ibolo, int imesure) {
     937  return getMuVBolo2(ibolo, imesure) - getDACV(ibolo);
     938}
    933939
    934940// SST, gyros...
  • trunk/Poubelle/archTOI.old/archeopsfile.h

    r408 r409  
    135135  double getDACV(int ibolo); // offset en microvolt
    136136  double getDACI(int ibolo); // courant en picoAmps
     137  double getMuVBolo2T(int ibolo, int imesure); // avec soustraction dacV
    137138 
    138139  // SST, gyros, etc
  • trunk/Poubelle/archTOI.old/gpsparser.cc

    r350 r409  
    8383 
    8484  // UTC
     85  if (*p < '0' || *p > '9') return;
    8586  double t;
    8687  sscanf(p, "%lg", &t);
     
    9495 
    9596  // LATITUDE
     97  if (*p < '0' || *p > '9') return;
    9698  sscanf(p, "%lg", &t);
    9799  int d = int(t/100); t -= d*100;
     
    108110
    109111  // LONGITUDE
     112  if (*p < '0' || *p > '9') return;
    110113  sscanf(p, "%lg", &t);
    111114  d = int(t/100); t -= d*100;
     
    130133 
    131134  // NSAT
     135  if (*p < '0' || *p > '9') return;
    132136  sscanf(p, "%d", &nsat);
    133137  p += 2;
     
    136140 
    137141  // HDOP
     142  if (*p < '0' || *p > '9') return;
    138143  sscanf(p, "%lg", &hdop);
    139144  while (*p != ',' && p<fence) p++;
     
    142147 
    143148  // Altitude
     149  if (*p < '0' || *p > '9') return;
    144150  sscanf(p, "%lg", &alt);
    145151  while (*p != ',' && p<fence) p++;
     
    152158
    153159  // Geoid separation
     160  if (*p < '0' || *p > '9') return;
    154161  sscanf(p, "%lg", &gsep);
    155162  while (*p != ',' && p<fence) p++;
Note: See TracChangeset for help on using the changeset viewer.