IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2006, 6:32:18 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.43

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/pop.c

    r9173 r9187  
    298298        psF32           ccd_temp;
    299299        psF64           posang;
    300 
    301         dbh = psDBInit("localhost", "test", NULL, "test");
    302         if (!dbh) {
    303             exit(EXIT_FAILURE);
    304         }
    305 
    306         if (!rawDetrendExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) {
     300        char            obstype[256];
     301
     302        dbh = psDBInit("localhost", "test", NULL, "test");
     303        if (!dbh) {
     304            exit(EXIT_FAILURE);
     305        }
     306
     307        if (!rawDetrendExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&obstype)) {
    307308            exit(EXIT_FAILURE);
    308309        }
     
    330331        psF32           ccd_temp;
    331332        psF64           posang;
    332 
    333         dbh = psDBInit("localhost", "test", NULL, "test");
    334         if (!dbh) {
    335             exit(EXIT_FAILURE);
    336         }
    337 
    338         if (!rawScienceExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) {
     333        char            obstype[256];
     334
     335        dbh = psDBInit("localhost", "test", NULL, "test");
     336        if (!dbh) {
     337            exit(EXIT_FAILURE);
     338        }
     339
     340        if (!rawScienceExpPop(dbh, (char **)&exp_tag, (char **)&camera, (char **)&telescope, (char **)&exp_type, &imfiles, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&obstype)) {
    339341            exit(EXIT_FAILURE);
    340342        }
     
    362364        psF32           ccd_temp;
    363365        psF64           posang;
    364 
    365         dbh = psDBInit("localhost", "test", NULL, "test");
    366         if (!dbh) {
    367             exit(EXIT_FAILURE);
    368         }
    369 
    370         if (!rawImfilePop(dbh, (char **)&exp_tag, (char **)&class, (char **)&class_id, (char **)&uri, (char **)&exp_type, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang)) {
     366        char            obstype[256];
     367
     368        dbh = psDBInit("localhost", "test", NULL, "test");
     369        if (!dbh) {
     370            exit(EXIT_FAILURE);
     371        }
     372
     373        if (!rawImfilePop(dbh, (char **)&exp_tag, (char **)&class, (char **)&class_id, (char **)&uri, (char **)&exp_type, (char **)&filter, &airmass, &ra, &decl, &exp_time, &bg, &bg_stdev, &bg_mean_stdev, &alt, &az, &ccd_temp, &posang, (char **)&obstype)) {
    371374            exit(EXIT_FAILURE);
    372375        }
Note: See TracChangeset for help on using the changeset viewer.