Changeset 359 in Sophya


Ignore:
Timestamp:
Aug 6, 1999, 4:29:38 PM (26 years ago)
Author:
ansari
Message:

gps aux

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

Legend:

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

    r355 r359  
    11CXX=cxx
    22CFITSIODIR=../cfitsio
    3 CPPFLAGS=-O -I$(CFITSIODIR)
     3#CPPFLAGS=-O -I$(CFITSIODIR)
     4CPPFLAGS=-g -I$(CFITSIODIR)
    45LDLIBS=-L$(CFITSIODIR) -lcfitsio
    56archtoi: archtoimain.o archtoi.o archeopsfile.o decompress.o toiiter.o toisvr.o archeops.o \
    6          ssthandler.o toiinterpolator.o gpsparser.o
     7         ssthandler.o toiinterpolator.o gpsparser.o asigps.o \
     8         auxinterpgps.o
    79        $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm
    810archdump: archtoidump.o archeopsfile.o decompress.o archeops.o ssthandler.o
    911        $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm
    1012
    11 archeops.o: archeops.c  archeops.h
    12 decompress.o: decompress.c archeops.h compress.h
     13archeops.o: archeops.c archeops_28.c archeops.h archeops_28.h
     14decompress.o: decompress.c archeops.h archeops_28.h compress.h
    1315archeopsfile.o: archeopsfile.cc archeopsfile.h archeops.h \
    14   ssthandler.h compress.h
    15 archtoi.o: archtoi.cc archeopsfile.h archeops.h  \
    16  ssthandler.h toisvr.h toiiter.h archtoi.h
    17 archtoidump.o: archtoidump.cc archeopsfile.h archeops.h  \
    18  ssthandler.h archtoi.h toisvr.h toiiter.h
    19 archtoimain.o: archtoimain.cc archeopsfile.h archeops.h  \
    20  ssthandler.h archtoi.h toisvr.h toiiter.h
    21 ssthandler.o: ssthandler.cc ssthandler.h archeops.h
    22 test.o: test.cc archeopsfile.h archeops.h  ssthandler.h \
    23  archtoi.h toisvr.h toiiter.h
     16 archeops_28.h ssthandler.h gpsparser.h compress.h
     17archtoi.o: archtoi.cc archeopsfile.h archeops.h archeops_28.h \
     18 ssthandler.h gpsparser.h toisvr.h toiiter.h auxgps.h archtoi.h \
     19 $(CFITSIODIR)/fitsio.h $(CFITSIODIR)/longnam.h asigps.h auxinterpgps.h
     20archtoidump.o: archtoidump.cc archeopsfile.h archeops.h archeops_28.h \
     21 ssthandler.h gpsparser.h archtoi.h toisvr.h toiiter.h auxgps.h \
     22 $(CFITSIODIR)/fitsio.h $(CFITSIODIR)/longnam.h
     23archtoimain.o: archtoimain.cc archeopsfile.h archeops.h archeops_28.h \
     24 ssthandler.h gpsparser.h archtoi.h toisvr.h toiiter.h auxgps.h \
     25 $(CFITSIODIR)/fitsio.h $(CFITSIODIR)/longnam.h
     26asigps.o: asigps.cc asigps.h auxinterpgps.h auxgps.h
     27auxinterpgps.o: auxinterpgps.cc auxinterpgps.h auxgps.h \
     28 $(CFITSIODIR)/fitsio.h $(CFITSIODIR)/longnam.h archtoi.h toisvr.h toiiter.h \
     29 archeopsfile.h archeops.h archeops_28.h ssthandler.h gpsparser.h
     30gpsparser.o: gpsparser.cc gpsparser.h archeops.h archeops_28.h
     31ssthandler.o: ssthandler.cc ssthandler.h archeops.h archeops_28.h
    2432toiinterpolator.o: toiinterpolator.cc toiinterpolator.h
    2533toiiter.o: toiiter.cc toiiter.h archeopsfile.h archeops.h \
    26   ssthandler.h toiinterpolator.h
     34 archeops_28.h ssthandler.h gpsparser.h auxgps.h toiinterpolator.h
    2735toisvr.o: toisvr.cc toisvr.h toiiter.h archeopsfile.h archeops.h \
    28   ssthandler.h
    29 gpsparser.o: gpsparser.cc gpsparser.h archeops.h
     36 archeops_28.h ssthandler.h gpsparser.h auxgps.h
  • trunk/Poubelle/archTOI.old/archtoi.h

    r356 r359  
    6060  int fitsStatus;
    6161  int fitsLine;
    62   ofstream* ostr;
     62  ostream* ostr;
    6363};
    6464
  • trunk/Poubelle/archTOI.old/asigps.cc

    r358 r359  
    88void ASIGPS::readFile(string const& filename) {
    99  ifstream f(filename.c_str());
     10  double omjd=0;
    1011  while (f) {
    1112    char line[200];
     
    4748    p+=5;
    4849    if (*p != 'm') continue;
     50    if (mjd < omjd) continue;
     51    omjd = mjd;
    4952    AddValue(mjd, lat, lon, alt);
    5053  }
  • trunk/Poubelle/archTOI.old/auxinterpgps.cc

    r358 r359  
    5454  int fitsLine = 1;
    5555  for (set<elem>::iterator i = elems.begin(); i != elems.end(); i++,fitsLine++) {
    56     fits_write_col_dbl(fptr, 1, fitsLine, 1, 1, &(*i).mjd, &fitsStatus);
    57     fits_write_col_dbl(fptr, 2, fitsLine, 1, 1, &(*i).lat, &fitsStatus);
    58     fits_write_col_dbl(fptr, 3, fitsLine, 1, 1, &(*i).lon, &fitsStatus);
    59     fits_write_col_dbl(fptr, 4, fitsLine, 1, 1, &(*i).alt, &fitsStatus);
     56    fits_write_col_dbl(fptr, 1, fitsLine, 1, 1, (double*) &(*i).mjd, &fitsStatus);
     57    fits_write_col_dbl(fptr, 2, fitsLine, 1, 1, (double*) &(*i).lat, &fitsStatus);
     58    fits_write_col_dbl(fptr, 3, fitsLine, 1, 1, (double*) &(*i).lon, &fitsStatus);
     59    fits_write_col_dbl(fptr, 4, fitsLine, 1, 1, (double*) &(*i).alt, &fitsStatus);
    6060  }
    6161
Note: See TracChangeset for help on using the changeset viewer.