IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2007, 12:28:16 PM (19 years ago)
Author:
eugene
Message:

a variety of fixes to get psastro working in chip and mosaic mode

  • various memory leaks
  • when loading mosaic data, the modification of the WCS for the common focal-plane scale was getting the offset wrong (fixed in psModules)
  • added some debugging dump; more plots still needed
  • error handling in psastroMosaicAstrom
  • loading chip and fpa dimensions from concepts
  • now reading chip concepts when reading objects (in psModules)
  • now supplying region and subdivisions for gradient measurements
  • grid search is now optional

-

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroUtils.c

    r11532 r12492  
    7979bool psastroUpdateChipToFPA (pmFPA *fpa, pmChip *chip, psArray *rawstars, psArray *refstars) {
    8080
    81     // XXX this region needs to be defined more intelligently
    82     // psRegion *region = pmChipExtent (chip);
    83     psRegion *region = psRegionAlloc (0, 2000, 0, 2000);
    84 
     81    psRegion *region = pmChipExtent (chip);
     82    region->x1 -= region->x0;
     83    region->y1 -= region->y0;
     84    region->x0 = 0;
     85    region->y0 = 0;
    8586    psFree (chip->fromFPA);
    8687    chip->fromFPA = psPlaneTransformInvert (NULL, chip->toFPA, *region, 20);
    87 
    88 //    PS_POLY_PRINT_2D(chip->toFPA->x);
    89 //    PS_POLY_PRINT_2D(chip->toFPA->y);
    90 
    91 //    PS_POLY_PRINT_2D(chip->fromFPA->x);
    92 //    PS_POLY_PRINT_2D(chip->fromFPA->y);
     88    psFree (region);
    9389
    9490    for (int i = 0; i < rawstars->n; i++) {
     
    105101    }
    106102
    107     psFree (region);
    108103    return true;
    109104}
Note: See TracChangeset for help on using the changeset viewer.