IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 16, 2006, 11:48:15 PM (20 years ago)
Author:
magnier
Message:

finished tests for non-linear WCS conversions

Location:
trunk/psModules/test/astrom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/astrom

    • Property svn:ignore
      •  

        old new  
        99tap_pmAstrometryWCS_DVO2
        1010tap_pmAstrometryWCS_DVO3
         11tap_pmAstrometryWCS_DVO
  • trunk/psModules/test/astrom/tap_pmAstrometryWCS_DVO3.c

    r10775 r10786  
    2020void test2x(); // small rotation with central offset
    2121void test3x(); // 2nd order term with central offset
    22 void test3inv(); // 2nd order term with central offset
    2322
    2423int main (void)
    2524{
    26     plan_tests(984);
    27 
    28     diag("pmAstromWriteWCS tests compared with DVO coords routines");
    29 
    30     //    test1();
    31     //    test2();
    32     //    test3();
    33     //    test1x();
     25    plan_tests(991);
     26
     27    note("pmAstromWriteWCS tests compared with DVO coords routines");
     28
     29    test1();
     30    test2();
     31    test3();
     32    test1x();
    3433    test2x();
    35     //    test3x();
    36     //    test3inv();
     34    test3x();
    3735
    3836    return exit_status();
     
    4139void test1()
    4240{
    43     diag("test pmAstromReadWCS");
     41    note("test pmAstromReadWCS");
    4442    psMemId id = psMemGetId();
    4543
     
    7371
    7472    psMetadata *header2 = psMetadataAlloc();
    75     status = pmAstromWriteWCS (header2, fpa, chip);
     73    status = pmAstromWriteWCS (header2, fpa, chip, 0.001);
    7674    pmAstromWCS *wcs = pmAstromWCSfromHeader(header2);
    7775
     
    131129void test2()
    132130{
    133     diag("test pmAstromReadWCS");
     131    note("test pmAstromReadWCS");
    134132    psMemId id = psMemGetId();
    135133
     
    165163
    166164    psMetadata *header2 = psMetadataAlloc();
    167     status = pmAstromWriteWCS (header2, fpa, chip);
     165    status = pmAstromWriteWCS (header2, fpa, chip, 0.001);
    168166    psMetadataConfigWrite (header2, "head2.md");
    169167
     
    225223void test3()
    226224{
    227     diag("test pmAstromReadWCS");
     225    note("test pmAstromReadWCS");
    228226    psMemId id = psMemGetId();
    229227
     
    260258
    261259    psMetadata *header2 = psMetadataAlloc();
    262     status = pmAstromWriteWCS (header2, fpa, chip);
     260    status = pmAstromWriteWCS (header2, fpa, chip, 0.001);
    263261    psMetadataConfigWrite (header2, "head2.md");
    264262
     
    320318void test1x()
    321319{
    322     diag("test pmAstromReadWCS");
     320    note("test pmAstromReadWCS");
    323321    psMemId id = psMemGetId();
    324322
     
    352350
    353351    psMetadata *header2 = psMetadataAlloc();
    354     status = pmAstromWriteWCS (header2, fpa, chip);
     352    status = pmAstromWriteWCS (header2, fpa, chip, 0.001);
    355353    pmAstromWCS *wcs = pmAstromWCSfromHeader(header2);
    356354
     
    410408void test2x()
    411409{
    412     diag("test pmAstromReadWCS");
     410    note("test pmAstromReadWCS");
    413411    psMemId id = psMemGetId();
    414412
     
    418416    coords.crval1 = 0.0;
    419417    coords.crval2 = 0.0;
    420     coords.crpix1 = 20.0;
    421     coords.crpix2 = 50.0;
     418    coords.crpix1 = 50.0;
     419    coords.crpix2 = -20.0;
    422420    coords.cdelt1 = 1.0/3600;
    423421    coords.cdelt2 = 1.0/3600;
     
    444442
    445443    psMetadata *header2 = psMetadataAlloc();
    446     status = pmAstromWriteWCS (header2, fpa, chip);
     444    status = pmAstromWriteWCS (header2, fpa, chip, 0.001);
    447445    psMetadataConfigWrite (header2, "head2.md");
    448446
     
    504502void test3x()
    505503{
    506     diag("test pmAstromReadWCS");
     504    note("test pmAstromReadWCS");
    507505    psMemId id = psMemGetId();
    508506
     
    539537
    540538    psMetadata *header2 = psMetadataAlloc();
    541     status = pmAstromWriteWCS (header2, fpa, chip);
     539    status = pmAstromWriteWCS (header2, fpa, chip, 0.001);
    542540    psMetadataConfigWrite (header2, "head2.md");
    543541
     
    654652    plan_tests(0);
    655653
    656     diag("pmAstrometryWCS tests compared with DVO coords routines : SKIPPED (libdvo not available)");
     654    note("pmAstrometryWCS tests compared with DVO coords routines : SKIPPED (libdvo not available)");
    657655
    658656    return exit_status();
Note: See TracChangeset for help on using the changeset viewer.