IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 21, 2008, 1:33:36 PM (17 years ago)
Author:
bills
Message:

Added a program to replace streaks and to compare two image files
(comparsion not complete yet)
Split streaksremove.c up so to make it less wieldy and to facilitate
reusing the io functions.

Location:
trunk/magic/remove/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src

    • Property svn:ignore
      •  

        old new  
        11streaksremove
         2streaksreplace
         3streakscompare
  • trunk/magic/remove/src/warpedpixels.c

    r20778 r20816  
    5757    if (!fits) {
    5858        psError(PS_ERR_IO, false, "failed to open skycell file: %s", fileName);
    59         streaksremoveExit("", PS_EXIT_DATA_ERROR);
     59        streaksExit("", PS_EXIT_DATA_ERROR);
    6060    }
    6161    psMetadata *header = psFitsReadHeader(NULL, fits);
    6262    if (!header) {
    6363        psError(PS_ERR_IO, false, "failed to read fixts header from skycell file: %s", fileName);
    64         streaksremoveExit("", PS_EXIT_DATA_ERROR);
     64        streaksExit("", PS_EXIT_DATA_ERROR);
    6565    }
    6666    // set up astrometry for conversion from skycell image to sky
     
    6868    if (!wcs) {
    6969        psError(PS_ERR_IO, false, "failed to read astrometry  from skycell file: %s", fileName);
    70         streaksremoveExit("", PS_EXIT_DATA_ERROR);
     70        streaksExit("", PS_EXIT_DATA_ERROR);
    7171    }
    7272    int naxis1 = psMetadataLookupS32(NULL, header, "NAXIS1");
     
    9999        if (!pmAstromWCStoSky(&sky, wcs, &pt[i])) {
    100100            psError(PS_ERR_IO, false, "failed to convert pt %d of %s to sky coords: %s", fileName);
    101             streaksremoveExit("", PS_EXIT_DATA_ERROR);
     101            streaksExit("", PS_EXIT_DATA_ERROR);
    102102        }
    103103        strkPt p;
     
    105105        if (!skyToCell(&p, sf->astrom, sky.r, sky.d)) {
    106106            psError(PS_ERR_IO, false, "failed to convert pt %d of %s to sky coords: %s", fileName);
    107             streaksremoveExit("", PS_EXIT_DATA_ERROR);
     107            streaksExit("", PS_EXIT_DATA_ERROR);
    108108        }
    109109        pt[i].x = p.x;
Note: See TracChangeset for help on using the changeset viewer.