IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13661


Ignore:
Timestamp:
Jun 5, 2007, 3:12:53 PM (19 years ago)
Author:
Paul Price
Message:

Merging pswarpDataLoad and pswarpDataSave into single function, pswarpLoop.

Location:
trunk/pswarp/src
Files:
1 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/Makefile.am

    r13315 r13661  
    77        pswarpArguments.c               \
    88        pswarpCleanup.c                 \
    9         pswarpDataLoad.c                \
    10         pswarpDataSave.c                \
     9        pswarpLoop.c                    \
    1110        pswarpDefine.c                  \
    1211        pswarpDefineSkycell.c           \
  • trunk/pswarp/src/pswarp.c

    r12764 r13661  
    3737
    3838    // load and warp
    39     if (!pswarpDataLoad (config)) {
    40         psErrorStackPrint(stderr, "error reading input data\n");
    41         exit (1);
    42     }
    43 
    44     // write out result image
    45     if (!pswarpDataSave (config)) {
    46         psErrorStackPrint(stderr, "error writing output data\n");
     39    if (!pswarpLoop(config)) {
     40        psErrorStackPrint(stderr, "error warping data\n");
    4741        exit (1);
    4842    }
  • trunk/pswarp/src/pswarp.h

    r12523 r13661  
    1414# define PSASTRO_RECIPE "PSASTRO" // Name of the recipe to use
    1515
    16 // a single pswarpMap converts coordinates from one image to a second image 
     16// a single pswarpMap converts coordinates from one image to a second image
    1717// the linear model is only valid over a limited range of pixels
    1818typedef struct {
     
    2727typedef struct {
    2828    pswarpMap ***maps;
    29     int nXpts, nYpts;                   // number of x,y samples in the grid
    30     int nXpix, nYpix;                   // x,y spacing in src image pixels of grid samples
    31     int xMin,  yMin;                    // coordinate of first grid sample
     29    int nXpts, nYpts;                   // number of x,y samples in the grid
     30    int nXpix, nYpix;                   // x,y spacing in src image pixels of grid samples
     31    int xMin,  yMin;                    // coordinate of first grid sample
    3232} pswarpMapGrid;
    3333
     
    3535bool pswarpParseCamera (pmConfig *config);
    3636bool pswarpDefine (pmConfig *config);
    37 bool pswarpDataLoad (pmConfig *config);
    38 bool pswarpDataSave (pmConfig *config);
     37bool pswarpLoop (pmConfig *config);
    3938void pswarpCleanup (pmConfig *config);
    4039bool pswarpTransformReadout (pmReadout *output, pmReadout *input, pmConfig *config);
Note: See TracChangeset for help on using the changeset viewer.