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/psastroMosaicGetGrads.c

    r9574 r12492  
    1515        if (!chip->process || !chip->file_exists) { continue; }
    1616       
     17        psRegion *region = pmChipExtent (chip);
     18
    1719        while ((cell = pmFPAviewNextCell (view, fpa, 1)) != NULL) {
    1820            psTrace ("psastro", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
     
    3638
    3739                // measure the local gradients for this set of stars
    38                 // XXX update the function prototype to accept an incoming gradient structure to which the new elements are added
    39                 grads = pmAstromMeasureGradients (grads, rawstars, refstars, match, recipe);
     40                // the new elements are added to the incoming gradient structure
     41                grads = pmAstromMeasureGradients (grads, rawstars, refstars, match, region, 2, 2);
    4042            }
    4143        }
     44        psFree (region);
    4245    }
    4346    return (grads);
Note: See TracChangeset for help on using the changeset viewer.