IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41833


Ignore:
Timestamp:
Oct 11, 2021, 11:36:17 AM (5 years ago)
Author:
eugene
Message:

explicitly use Ordinary polynomials for forward astrometry transformations (chip->fpa->tpa->sky)

Location:
branches/eam_branches/ipp-dev-20210817/psastro/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-dev-20210817/psastro/src/psastroAstromGuess.c

    r39926 r41833  
    397397    }
    398398
    399     psPlaneTransform *map = psPlaneTransformAlloc (1, 1);
     399    psPlaneTransform *map = psPlaneTransformAlloc (1, 1, PS_POLYNOMIAL_ORD);
    400400    map->x->coeffMask[1][1] = PS_POLY_MASK_SET;
    401401    map->y->coeffMask[1][1] = PS_POLY_MASK_SET;
  • branches/eam_branches/ipp-dev-20210817/psastro/src/psastroFixChips.c

    r41536 r41833  
    170170    if (DEBUG) fclose (f);
    171171
    172     psPlaneTransform *map = psPlaneTransformAlloc (1, 1);
     172    psPlaneTransform *map = psPlaneTransformAlloc (1, 1, PS_POLYNOMIAL_ORD);
    173173
    174174    psVector *mask = psVectorAlloc (nPts, PS_TYPE_VECTOR_MASK);
     
    289289        // apply the exiting fromTPA transformation to make the new toFPA consistent with the toTPA layter
    290290        // XXX this only works if toTPA is at most a linear transformation
    291         psPlaneTransform *toFPA = psPlaneTransformAlloc(refChip->toFPA->x->nX, refChip->toFPA->x->nY);
     291        psPlaneTransform *toFPA = psPlaneTransformAlloc(refChip->toFPA->x->nX, refChip->toFPA->x->nY, PS_POLYNOMIAL_ORD);
    292292        for (int i = 0; i <= refChip->toFPA->x->nX; i++) {
    293293            for (int j = 0; j <= refChip->toFPA->x->nY; j++) {
  • branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicAstrom.c

    r41536 r41833  
    277277    }
    278278
    279     // the original transforms are (1, 1), but we will need higher order to fit the distortions
     279    // the original transforms are (1, 1), but we will need higher order to fit the distortions.
     280    // forward transformations (chip->fpa->tpa->sky) use Ordinary polynomials
    280281    psFree (fpa->toTPA);
    281 
    282     // the original transforms are (1, 1), but we will need higher order to fit the distortions
    283     fpa->toTPA = psPlaneTransformAlloc (order, order);
     282    fpa->toTPA = psPlaneTransformAlloc (order, order, PS_POLYNOMIAL_ORD);
    284283    for (int i = 0; i <= fpa->toTPA->x->nX; i++) {
    285284        for (int j = 0; j <= fpa->toTPA->x->nY; j++) {
  • branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicCorrectDistortion.c

    r41536 r41833  
    2222    }
    2323
    24     // store the new coeffs in a new structure
    25     psPlaneTransform *toTPAnew = psPlaneTransformAlloc(fpa->toTPA->x->nX, fpa->toTPA->x->nY);
     24    // Store the new coeffs in a new structure.  Forward transformations (chip->fpa->tpa->sky)
     25    // use Ordinary polynomials
     26    psPlaneTransform *toTPAnew = psPlaneTransformAlloc(fpa->toTPA->x->nX, fpa->toTPA->x->nY, PS_POLYNOMIAL_ORD);
    2627
    2728    // set the new coeffs, or set the mask
  • branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicFPtoTP.c

    r26259 r41833  
    8080
    8181    // linear fit without xy cross term
    82     psPlaneTransform *map = psPlaneTransformAlloc (1, 1);
     82    psPlaneTransform *map = psPlaneTransformAlloc (1, 1, PS_POLYNOMIAL_ORD);
    8383    map->x->coeffMask[1][1] = PS_POLY_MASK_SET;
    8484    map->y->coeffMask[1][1] = PS_POLY_MASK_SET;
  • branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicGradients.c

    r39926 r41833  
    8484        return false;
    8585    }
     86
     87    // forward transformations (chip->fpa->tpa->sky) use Ordinary polynomials
    8688    psFree (fpa->toTPA);
    87     fpa->toTPA = psPlaneTransformAlloc (order, order);
     89    fpa->toTPA = psPlaneTransformAlloc (order, order, PS_POLYNOMIAL_ORD);
    8890    for (int i = 0; i <= fpa->toTPA->x->nX; i++) {
    8991        for (int j = 0; j <= fpa->toTPA->x->nY; j++) {
  • branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicOneChip.c

    r41816 r41833  
    8888        }
    8989    } else {
     90        // Forward transformations (chip->fpa->tpa->sky) use Ordinary polynomials
    9091        psFree (chip->toFPA);
    91         chip->toFPA = psPlaneTransformAlloc (order, order);
     92        chip->toFPA = psPlaneTransformAlloc (order, order, PS_POLYNOMIAL_ORD);
    9293        for (int i = 0; i <= chip->toFPA->x->nX; i++) {
    9394            for (int j = 0; j <= chip->toFPA->x->nY; j++) {
  • branches/eam_branches/ipp-dev-20210817/psastro/src/psastroOneChipFit.c

    r41816 r41833  
    121121        }
    122122
    123         // create output toFPA; set masks appropriate to the Elixir DVO astrometry format
     123        // Create output toFPA; set masks appropriate to the Elixir DVO astrometry format.
     124        // Forward transformations (chip->fpa->tpa->sky) use Ordinary polynomials
    124125        psFree (chip->toFPA);
    125         chip->toFPA = psPlaneTransformAlloc (order, order);
     126        chip->toFPA = psPlaneTransformAlloc (order, order, PS_POLYNOMIAL_ORD);
    126127        for (int i = 0; i <= chip->toFPA->x->nX; i++) {
    127128            for (int j = 0; j <= chip->toFPA->x->nY; j++) {
  • branches/eam_branches/ipp-dev-20210817/psastro/src/psastroUtils.c

    r41536 r41833  
    215215psPlaneTransform *psPlaneTransformCopy (psPlaneTransform *input) {
    216216
    217     psPlaneTransform *output = psPlaneTransformAlloc (input->x->nX, input->x->nY);
     217    psPlaneTransform *output = psPlaneTransformAlloc (input->x->nX, input->x->nY, input->x->type);
    218218
    219219    for (int i = 0; i < input->x->nX; i++) {
Note: See TracChangeset for help on using the changeset viewer.