IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9587


Ignore:
Timestamp:
Oct 16, 2006, 2:51:46 PM (20 years ago)
Author:
eugene
Message:

adding refstar subset operation using magnitude limits

Location:
trunk/psastro/src
Files:
4 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/Makefile.am

    r9577 r9587  
    1717psastroDataSave.c           \
    1818psastroAstromGuess.c        \
    19 psastroLoadReferences.c     \
     19psastroLoadRefstars.c     \
     20psastroChooseRefstars.c  \
    2021psastroConvert.c            \
    2122psastroChipAstrom.c         \
     
    2324psastroUtils.c              \
    2425psastroTestFuncs.c          \
     26psastroLuminosityFunction.c \
     27psastroRefstarSubset.c      \
    2528psastroMosaicAstrom.c       \
    2629psastroMosaicGetGrads.c     \
    27 psastroMosaicGetRefstars.c  \
    2830psastroMosaicChipAstrom.c   \
    2931psastroMosaicSetAstrom.c    \
  • trunk/psastro/src/psastro.c

    r9574 r9587  
    3939
    4040    // load the reference stars overlapping the data stars
    41     psArray *refs = psastroLoadReferences (config);
     41    psArray *refs = psastroLoadRefstars (config);
    4242    if (!refs) {
    4343        psErrorStackPrint(stderr, "failed to load reference data");
     
    4545    }
    4646
    47     // XXX ?? what does this do ??
    48     psastroMosaicGetRefstars (config, refs);
     47    // choose reference stars corresponding to the selected chips
     48    if (psastroChooseRefstars (config, refs)) {
     49        psErrorStackPrint(stderr, "failed to select reference data for chips");
     50        exit (1);
     51    }
    4952
    5053    char *mosastro = psMetadataLookupStr (NULL, config->arguments, "MOSASTRO");
  • trunk/psastro/src/psastro.h

    r9574 r9587  
    2020# define toTPA toTangentPlane
    2121# define toSky projection
     22
     23// this structure represents a fit to the logN / logS curve for a set of stars
     24// logN = offset + slope * logS
     25typedef struct {
     26  double mMin;
     27  double mMax;
     28  double offset;
     29  double slope;
     30} pmLumFunc;
    2231
    2332pmConfig         *psastroArguments (int argc, char **argv);
Note: See TracChangeset for help on using the changeset viewer.