IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35424


Ignore:
Timestamp:
Apr 22, 2013, 1:00:45 PM (13 years ago)
Author:
eugene
Message:

refactor to load astrometry from headers up front, making output format flexible

Location:
branches/eam_branches/ipp-20130419/pswarp/src
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/src/Makefile.am

    r35421 r35424  
    3535        pswarpDefine.c                  \
    3636        pswarpDefineBackground.c        \
    37         pswarpDefineSkycell.c   \
     37        pswarpDefineSkycell.c           \
     38        pswarpDefineLayout.c            \
    3839        pswarpErrorCodes.c              \
     40        pswarpLoadAstrometry.c          \
    3941        pswarpMapGrid.c                 \
    4042        pswarpMaskStats.c               \
    4143        pswarpMatchRange.c              \
     44        pswarpOverlaps.c                \
    4245        pswarpParseCamera.c             \
    4346        pswarpPixelsLit.c               \
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarp.c

    r35421 r35424  
    3939    }
    4040
     41# if (0)
     42    // XXX I'm going to add the new code before removing the old code.
     43    // load the input & output astrometry, find the output overlaps, generate the output pixels
     44    if (!pswarpDefineLayout(config)) {
     45        pswarpCleanup(config, statsFile);
     46    }
     47
     48    pswarpDumpOutput (config);
     49    exit (0);
     50# endif
     51
    4152    // load the skycell layout information:
    4253    //   read the output astrometry description
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarp.h

    r35421 r35424  
    172172// cleanup memory and exit
    173173void pswarpCleanup (pmConfig *config, pswarpStatsFile *statsFile) PS_ATTR_NORETURN;
     174
     175// load the astrometry header info and generate the tranformations
     176bool pswarpDefineLayout (pmConfig *config);
     177
     178// XXX function for testing
     179bool pswarpDumpOutput (pmConfig *config);
     180
     181// structure to describe approximate bounds for each fpa element (eg, chip)
     182// P,Q are a locally linear projection
     183typedef struct {
     184    psVector *Pmin;
     185    psVector *Pmax;
     186    psVector *Qmin;
     187    psVector *Qmax;
     188} pswarpBounds;
     189
     190bool pswarpFindOverlap (pmFPA *fpa, pswarpBounds *src, pswarpBounds *tgt);
     191psProjection *pswarpLocalFrame (pmFPA *fpa);
     192pswarpBounds *pswarpMakeBounds (pmFPA *fpa, psProjection *frame);
     193bool pswarpBoundsAppend(pswarpBounds *bounds, float Pmin, float Pmax, float Qmin, float Qmax);
     194pswarpBounds *pswarpBoundsAlloc();
     195
     196bool pswarpLoadAstrometry (pmConfig *config, pmFPAfile *astrom, pmFPAfile *target);
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpLoop.c

    r35421 r35424  
    9191    // }
    9292   
    93 
    9493    // Read the input astrometry
    9594    // XXX rather than use the activations here, this should just explicitly loop over the desired filerule
Note: See TracChangeset for help on using the changeset viewer.