IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2007, 5:14:16 PM (19 years ago)
Author:
jhoblitt
Message:

add flatcorr tables

File:
1 edited

Legend:

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

    r15569 r15576  
    13091309    }
    13101310
     1311    {
     1312        psDB            *dbh;
     1313        psFits          *fits;
     1314
     1315        dbh = psDBInit("localhost", "test", NULL, "test");
     1316        if (!dbh) {
     1317            exit(EXIT_FAILURE);
     1318        }
     1319
     1320        // open a temp
     1321        fits = psFitsOpen(TMP_FILENAME, "r");
     1322        if (!fits) {
     1323            exit(EXIT_FAILURE);
     1324        }
     1325
     1326        if (!flatcorrRunInsertFits(dbh, fits)) {
     1327            exit(EXIT_FAILURE);
     1328        }
     1329
     1330        if (!psFitsClose(fits)) {
     1331            exit(EXIT_FAILURE);
     1332        }
     1333
     1334        psDBCleanup(dbh);
     1335    }
     1336
     1337    {
     1338        psDB            *dbh;
     1339        psFits          *fits;
     1340
     1341        dbh = psDBInit("localhost", "test", NULL, "test");
     1342        if (!dbh) {
     1343            exit(EXIT_FAILURE);
     1344        }
     1345
     1346        // open a temp
     1347        fits = psFitsOpen(TMP_FILENAME, "r");
     1348        if (!fits) {
     1349            exit(EXIT_FAILURE);
     1350        }
     1351
     1352        if (!flatcorrExpInsertFits(dbh, fits)) {
     1353            exit(EXIT_FAILURE);
     1354        }
     1355
     1356        if (!psFitsClose(fits)) {
     1357            exit(EXIT_FAILURE);
     1358        }
     1359
     1360        psDBCleanup(dbh);
     1361    }
     1362
    13111363    exit(EXIT_SUCCESS);
    13121364}
Note: See TracChangeset for help on using the changeset viewer.