IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2010, 8:41:49 AM (16 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/tap_branches
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/tap_branches

  • branches/tap_branches/Ohana

  • branches/tap_branches/Ohana/src/relastro

    • Property svn:mergeinfo set to (toggle deleted branches)
      /trunk/Ohana/src/relastromergedeligible
      /branches/eam_branches/20091201/Ohana/src/relastro26295-26885
      /branches/eam_branches/Ohana.20100407/src/relastro27635-27772
      /branches/eam_branches/largefiles.20100314/Ohana/src/relastro27281-27430
      /branches/eam_branches/relastro.2010032627487-27559
      /branches/pap_delete/Ohana/src/relastro27530-27595
  • branches/tap_branches/Ohana/src/relastro/include/relastro.h

    r24308 r27838  
    9191
    9292int    VERBOSE;
     93int    VERBOSE2;
    9394
    9495int    RESET;
     96int    NLOOP;
    9597int    UPDATE;
    9698int    PLOTSTUFF;
     
    104106int    CHIPORDER;
    105107
     108int UserCatalog;
     109double UserCatalogRA, UserCatalogDEC;
     110
    106111char          *PHOTCODE_KEEP_LIST, *PHOTCODE_SKIP_LIST;
    107112int           NphotcodesKeep,      NphotcodesSkip;
     
    140145char         *GetPhotnamebyCode   PROTO((PhotCodeData *photcodes, int code));
    141146void          InterpolateGrid     PROTO((float *buffer, int Nx, int Ny, Coords *ccd, Coords *gcoords));
    142 int          *SelectRefMosaic     PROTO((Mosaic **refmosaic, int *Nimage));
     147off_t          *SelectRefMosaic     PROTO((Mosaic **refmosaic, off_t *Nimage));
    143148int           args                PROTO((int argc, char **argv));
    144149int           bcatalog            PROTO((Catalog *subcatalog, Catalog *catalog));
     
    151156void          dump_grid           PROTO((void));
    152157int           edge_check          PROTO((double *x1, double *y1, double *x2, double *y2));
    153 void          findImages          PROTO((Catalog *catalog, int Ncatalog));
     158void          findImages          PROTO((Catalog *catalog, int Ncatalog, int MATCHCAT));
    154159int           findMosaics         PROTO((Catalog *catalog, int Ncatalog));
    155 Image        *find_images         PROTO((FITS_DB *db, GSCRegion *region, int Nregion, int *Nimage, int **LineNum));
     160Image        *find_images         PROTO((FITS_DB *db, GSCRegion *region, off_t Nregion, off_t *Nimage, off_t **LineNum));
    156161void set_db (FITS_DB *in);
    157 int Shutdown (char *format, ...);
     162int Shutdown (char *format, ...) OHANA_FORMAT(printf, 1, 2);
    158163void TrapSignal (int sig);
    159164void SetProtect (int mode);
    160165int SetSignals (void);
    161166
    162 GSCRegion    *find_regions        PROTO((Image *image, int Nimage, int *Nregions, GSCRegion *fullregion));
     167GSCRegion    *find_regions        PROTO((Image *image, off_t Nimage, int *Nregions, GSCRegion *fullregion));
    163168void          freeGridBins        PROTO((int Ncatalog));
    164169void          freeImageBins       PROTO((int Ncatalog));
     
    166171void          free_catalogs       PROTO((Catalog *catalog, int Ncatalog));
    167172int           gcatalog            PROTO((Catalog *catalog, int FINAL));
    168 Coords       *getCoords           PROTO((int meas, int cat));
    169 float         getMcal             PROTO((int meas, int cat));
    170 float         getMgrid            PROTO((int meas, int cat));
    171 float         getMmos             PROTO((int meas, int cat));
    172 float         getMrel             PROTO((Catalog *catalog, int meas, int cat));
    173 GSCRegion    *get_regions         PROTO((double minRa, double maxRa, double minDec, double maxDec, int *Nregions));
    174 void          getfullregion       PROTO((Image *image, int Nimage, GSCRegion *fullregion));
    175 Image        *getimage            PROTO((int N));
    176 Image        *getimages           PROTO((int *N));
     173// Coords       *getCoords           PROTO((off_t meas, int cat));
     174float         getMcal             PROTO((off_t meas, int cat));
     175float         getMgrid            PROTO((off_t meas, int cat));
     176float         getMmos             PROTO((off_t meas, int cat));
     177float         getMrel             PROTO((Catalog *catalog, off_t meas, int cat));
     178GSCRegion    *get_regions         PROTO((double minRa, double maxRa, double minDec, double maxDec, off_t *Nregions));
     179void          getfullregion       PROTO((Image *image, off_t Nimage, GSCRegion *fullregion));
     180Image        *getimage            PROTO((off_t N));
     181Image        *getimages           PROTO((off_t *N));
    177182void          global_stats        PROTO((Catalog *catalog, int Ncatalog));
    178183void          initGrid            PROTO((int dX, int dY));
    179184void          initGridBins        PROTO((Catalog *catalog, int Ncatalog));
    180 void          initImageBins       PROTO((Catalog *catalog, int Ncatalog));
    181 void          initImages          PROTO((Image *input, int N));
     185void          initImageBins       PROTO((Catalog *catalog, int Ncatalog, int FULLINIT));
     186void          initImages          PROTO((Image *input, off_t N));
    182187void          initMosaicBins      PROTO((Catalog *catalog, int Ncatalog));
    183 void          initMosaicGrid      PROTO((Image *image, int Nimage));
    184 void          initMosaics         PROTO((Image *image, int Nimage));
     188void          initMosaicGrid      PROTO((Image *image, off_t Nimage));
     189void          initMosaics         PROTO((Image *image, off_t Nimage));
    185190void          initMrel            PROTO((Catalog *catalog, int Ncatalog));
    186191void          initialize          PROTO((int argc, char **argv));
     
    189194Catalog      *load_catalogs       PROTO((SkyList *skylist, int *Ncatalog, int subselect));
    190195SkyList      *load_images         PROTO((FITS_DB *db, SkyRegion *region));
    191 Image        *select_images       PROTO((SkyList *skylist, Image *timage, int Ntimage, int **LineNumber, int *Nimage));
     196Image        *select_images       PROTO((SkyList *skylist, Image *timage, off_t Ntimage, off_t **LineNumber, off_t *Nimage));
    192197
    193198void check_permissions (char *basefile);
     
    198203
    199204int           main                PROTO((int argc, char **argv));
    200 void          mark_images         PROTO((Image *image, int Nimage, Image *timage, int Ntimage));
    201 void          matchImage          PROTO((Catalog *catalog, int meas, int cat));
    202 void          matchMosaics        PROTO((Catalog *catalog, int meas, int cat));
    203 GSCRegion    *name_region         PROTO((char *name, int *Nregions));
     205void          mark_images         PROTO((Image *image, off_t Nimage, Image *timage, off_t Ntimage));
     206void          matchImage          PROTO((Catalog *catalog, off_t meas, int cat, int MATCHCAT));
     207void          matchMosaics        PROTO((Catalog *catalog, off_t meas, int cat));
     208GSCRegion    *name_region         PROTO((char *name, off_t *Nregions));
    204209double        opening_angle       PROTO((double x1, double y1, double x2, double y2, double x3, double y3));
    205210void          plot_chisq          PROTO((Catalog *catalog, int Ncatalog));
     
    224229int           setMrelOutput       PROTO((Catalog *catalog, int Ncatalog, int mark));
    225230void          set_ZP              PROTO((double ZERO));
    226 int           setrefcode          PROTO((Image *image, int Nimage));
     231int           setrefcode          PROTO((Image *image, off_t Nimage));
    227232void          skip_measurements   PROTO((Catalog *catalog, int pass));
    228233void          sortA               PROTO((double *X, int N));
     
    250255void fit_free (CoordFit *fit);
    251256void fit_add (CoordFit *fit, double x1, double y1, double x2, double y2, double wt);
    252 void fit_eval (CoordFit *fit);
     257int fit_eval (CoordFit *fit);
    253258void fit_apply (CoordFit *fit, double *x2, double *y2, double x1, double y1);
    254259double **poly2d_dx (double **poly, int Nx, int Ny);
     
    256261double **poly2d_copy (double **poly, int Nx, int Ny);
    257262double poly2d_eval (double **poly, int Nx, int Ny, double x, double y);
    258 CoordFit *fit_apply_coords (CoordFit *fit, Coords *coords);
     263int fit_apply_coords (CoordFit *fit, Coords *coords);
    259264int CoordsGetCenter (CoordFit *fit, double tol, double *xo, double *yo);
    260265CoordFit *CoordsSetCenter (CoordFit *input, double Xo, double Yo);
    261 void FitChip (StarData *raw, StarData *ref, int Nmatch, Coords *coords);
     266int FitChip (StarData *raw, StarData *ref, int Nmatch, Coords *coords);
    262267void FitMosaic (StarData *raw, StarData *ref, int Nmatch, Coords *coords);
    263268void FitSimple (StarData *raw, StarData *ref, int Nmatch, Coords *coords);
     
    268273int UpdateMosaic (Catalog *catalog, int Ncatalog);
    269274int UpdateMeasures (Catalog *catalog, int Ncatalog);
    270 void fixImageRaw (Catalog *catalog, int Ncatalog, int im);
     275void fixImageRaw (Catalog *catalog, int Ncatalog, off_t im);
    271276void FlagOutliers(Catalog *catalog);
    272277int MeasFilterTest(Measure *measure);
    273278
    274279int sun_ecliptic (double jd, double *lambda, double *beta, double *epsilon);
    275 int ParFactor (double *pR, double *pD, double R, double D, time_t T);
     280int ParFactor (double *pR, double *pD, double R, double D, double T, double Tmean);
    276281int FitPM (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, int Npts);
    277282int FitPar (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *pR, double *pD, int Npts);
    278283int FitPMandPar (PMFit *fit, double *X, double *dX, double *Y, double *dY, double *T, double *pR, double *pD, int Npts);
    279284
    280 Mosaic *getMosaicForImage (int N);
    281 
    282 StarData *getImageRef (Catalog *catalog, int Ncatalog, int im, int *Nstars, CoordMode mode);
    283 StarData *getImageRaw (Catalog *catalog, int Ncatalog, int im, int *Nstars, CoordMode mode);
    284 
    285 Mosaic *getmosaics (int *N);
    286 void initMosaics (Image *image, int Nimage);
    287 StarData *getMosaicRaw (Catalog *catalog, int Ncatalog, int mos, int *Nstars);
    288 StarData *getMosaicRef (Catalog *catalog, int Ncatalog, int mos, int *Nstars);
    289 Mosaic *getMosaicForImage (int im);
     285Mosaic *getMosaicForImage (off_t N);
     286
     287StarData *getImageRef (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode);
     288StarData *getImageRaw (Catalog *catalog, int Ncatalog, off_t im, off_t *Nstars, CoordMode mode);
     289
     290Mosaic *getmosaics (off_t *N);
     291void initMosaics (Image *image, off_t Nimage);
     292StarData *getMosaicRaw (Catalog *catalog, int Ncatalog, off_t mos, off_t *Nstars);
     293StarData *getMosaicRef (Catalog *catalog, int Ncatalog, off_t mos, off_t *Nstars);
     294Mosaic *getMosaicForImage (off_t im);
    290295
    291296double getMeanR (Measure *measure, Average *average, SecFilt *secfilt);
     
    297302int relastro_objects (void);
    298303int UpdateObjectOffsets (SkyList *skylist);
     304
     305int relastroVisualPlotRawRef(StarData *raw, StarData *ref, double dRmax, int numObj);
     306int relastroVisualPlotScatter(double values[], double thresh, int npts);
     307int relastroVisualPlotOutliers(Catalog *catalog, int offset, int Nmeasure,
     308                               StatType statsR, StatType statsD, double thresh);
     309
     310
     311
     312int FixProblemImages (SkyList *skylist);
     313int *getCatlist (int *N, off_t im);
     314
     315void initCoords (void);
     316void getOffsets (double *dPos, off_t *nPos, off_t N);
     317void saveOffsets (double dPos, off_t nPos, off_t N);
     318void setBadCoords (off_t N);
     319int badCoords (off_t N);
     320Coords *getCoords (off_t N);
     321int saveCoords (Coords *coords, off_t N);
     322void resetImageRaw (Catalog *catalog, int Ncatalog, off_t im);
Note: See TracChangeset for help on using the changeset viewer.