| | 1 | == pswarp == |
| | 2 | |
| | 3 | (Up to the [wiki:IPP_Description IPP Description Page]) |
| | 4 | |
| | 5 | pswarp invocation (single input exposure set): |
| | 6 | |
| | 7 | {{{ |
| | 8 | pswarp -file input.fits output skycell : input.fits must define the astrometry of the input pixels, skycell defines target astrometry. |
| | 9 | pswarp -file input.fits -astrom astrom.cmf output skycell : astrom.cmf defines astrometry for input.fits |
| | 10 | }}} |
| | 11 | |
| | 12 | pswarp invocation (multiple inputs): |
| | 13 | {{{ |
| | 14 | pswarp -input file.mcd output skycell : input files are defined in the file.mdc |
| | 15 | }}} |
| | 16 | |
| | 17 | Example of input.mdc: |
| | 18 | {{{ |
| | 19 | INPUT MULTI |
| | 20 | |
| | 21 | INPUT METADATA |
| | 22 | INPUT STR RINGS.V3.skycell.1314.011.stk.1033022.fits # signal image filename |
| | 23 | MASK STR RINGS.V3.skycell.1314.011.stk.1033022.mask.fits # signal image filename |
| | 24 | VARIANCE STR RINGS.V3.skycell.1314.011.stk.1033022.wt.fits # signal image filename |
| | 25 | END |
| | 26 | |
| | 27 | INPUT METADATA |
| | 28 | INPUT STR RINGS.V3.skycell.1314.012.stk.1033023.fits # signal image filename |
| | 29 | MASK STR RINGS.V3.skycell.1314.012.stk.1033023.mask.fits # signal image filename |
| | 30 | VARIANCE STR RINGS.V3.skycell.1314.012.stk.1033023.wt.fits # signal image filename |
| | 31 | END |
| | 32 | }}} |
| | 33 | |
| | 34 | pswarp outline |
| | 35 | |
| | 36 | * generic initializations |
| | 37 | * pswarpArguments : parse the command line arguments |
| | 38 | * pswarpParseCamera : examine the input files and skycell, construct containers for the outputs (do not yet generate pixels) |
| | 39 | * pswarpOptions : set various options which may depend on the camera and command line arguments |
| | 40 | * pswarpDefineLayout : load astrometry information (headers only), determine the overlaps between the inputs and the outputs, generate the output pixels |
| | 41 | * pswarpLoop : loop over inputs & outputs, warp the inputs into the outputs, transform the input sources (if any), measure the new PSF model, convert input metadata to output metadata values |
| | 42 | * pswarpLoopBackground : equivalent to pswarpLoop, transform the background models |
| | 43 | * pswarpCleanup : write the outputs to disk, free memory |
| | 44 | |
| | 45 | NOTE: as of 2013.05.09 there has been a substantial re-work of pswarp to enable 'inverse warping', that is to say warping from skycells to the original focal plane. This modification drove a few specific changes: |
| | 46 | |
| | 47 | * the output format may now represent a full FPA output file (with chips and cells, etc). |
| | 48 | * there may now be multiple input 'exposures' (more accurately: file sets) so that a group of skycells can be warped to a single output image |
| | 49 | * the astrometric relationships / overlaps are calculated up front (in pswarpDefineLayout) before any pixels are loaded. This is necessary to avoid generating the output pixels in (for example) a full GPC1 FPA if only a few of the output pixels are needed. |
| | 50 | * the input files may now be specified in a metadata config file as illustrated above (similar to the inputs to ppStack & psphotStack). |
| | 51 | |
| | 52 | There are effectively 3 modes of operation : chip-to-warp (the traditional mode), chip-to-chip, and warp-to-chip. |