IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15519


Ignore:
Timestamp:
Nov 8, 2007, 1:03:14 PM (19 years ago)
Author:
eugene
Message:

adding psastroDumpGradients

Location:
branches/eam_branch_20071023/psastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20071023/psastro/src/psastro.h

    r15401 r15519  
    7575bool              psastroDumpStars (psArray *stars, char *filename);
    7676bool              psastroDumpMatchedStars (char *filename, psArray *rawstars, psArray *refstars, psArray *match);
     77bool              psastroDumpGradients (psArray *gradients, char *filename);
    7778
    7879bool              psastroMosaicSetAstrom_tmp (pmFPA *fpa);
  • branches/eam_branch_20071023/psastro/src/psastroDemoDump.c

    r15199 r15519  
    173173    return true;
    174174}
     175
     176// this function is used for test purposes (-trace psastro.dump 1)
     177bool psastroDumpGradients (psArray *gradients, char *filename) {
     178
     179    FILE *f = fopen (filename, "w");
     180
     181    for (int i = 0; i < gradients->n; i++) {
     182        pmAstromGradient *gradient = gradients->data[i];
     183
     184        // write out the refstar data
     185        fprintf (f, "%d  %f %f   %f %f  %f %f\n", i,
     186                 gradient->FP.x, gradient->FP.y,
     187                 gradient->dTPdL.x, gradient->dTPdL.y,
     188                 gradient->dTPdM.x, gradient->dTPdM.y);
     189    }
     190
     191    fclose (f);
     192    return true;
     193}
     194
Note: See TracChangeset for help on using the changeset viewer.