IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 1, 2007, 11:03:03 AM (20 years ago)
Author:
eugene
Message:

added various plots, more work on the mosaic astrometry

File:
1 edited

Legend:

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

    r10438 r10864  
    11# include "psastro.h"
    2 // int mkstemp(char *template);
    32# define ELIXIR_MODE 1
    43
     
    8483    // convert the Average table to the pmAstromObj entries
    8584    psTimerStart ("psastro");
    86     psArray *refs = psArrayAllocEmpty (table->n);
     85    psArray *refstars = psArrayAllocEmpty (table->n);
    8786    for (int i = 0; i < table->n; i++) {
    8887        pmAstromObj *ref = pmAstromObjAlloc ();
     
    101100        }
    102101
    103         psArrayAdd (refs, 100, ref);
     102        psArrayAdd (refstars, 100, ref);
    104103        psFree (ref);
    105104    }
     
    109108
    110109    psTrace ("psastro", 3, "loaded %ld reference stars from (%10.6f,%10.6f) - (%10.6f,%10.6f)\n",
    111              refs->n, RAmin, DECmin, RAmax, DECmax);
     110             refstars->n, RAmin, DECmin, RAmax, DECmax);
    112111
    113     return refs;
     112    // dump or plot the available refstars
     113    if (psTraceGetLevel("psastro.dump") > 0) {
     114        psastroDumpRefstars (refstars);
     115    }
     116
     117    if (psTraceGetLevel("psastro.plot") > 0) {
     118        psastroPlotRefstars (refstars);
     119    }
     120
     121    return refstars;
    114122}
Note: See TracChangeset for help on using the changeset viewer.