IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 4:02:00 PM (14 years ago)
Author:
eugene
Message:

add PS1_V4 schema; add set mean fluxes based on stacks; define the primary image ID (based on distance from center or boundary tree) and set mean flux from stacks based on that info; fix (uniquify) psps ID for stack detections; mean fluxes are in Jy; detection fluxes are instrumental counts per second

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/include/dvo.h

    r33963 r34260  
    2727  DVO_FORMAT_PS1_V2,
    2828  DVO_FORMAT_PS1_V3,
     29  DVO_FORMAT_PS1_V4,
    2930} DVOTableFormat;
    3031
     
    292293} DVOTinyValueMode;
    293294
     295# define BOUNDARY_TREE_NAME_LENGTH 128
     296
     297typedef struct {
     298  int FixedGridDEC;           // is the DEC sequence linear?
     299  int FixedGridRA;            // in the RA sequence in a zone linear?
     300
     301  double DEC_origin;
     302  double DEC_offset;
     303
     304  int Nzone;
     305  double *RA_origin;
     306  double *RA_offset;
     307
     308  int *Nband;
     309  int *NBAND;
     310
     311  double   **ra;
     312  double  **dec;
     313  int    **cell;
     314  char  ***name;
     315} BoundaryTree;
     316
    294317// XXX DROP? // a reduced-subset structure for relastro
    295318// XXX DROP? typedef struct {
     
    448471float PhotCat (Measure *measure);
    449472float PhotAper (Measure *measure);
     473float PhotKron (Measure *measure);
    450474float PhotSys (Measure *measure, Average *average, SecFilt *secfilt);
    451475float PhotRel (Measure *measure, Average *average, SecFilt *secfilt);
     
    456480float PhotdM (PhotCode *code, Average *average, SecFilt *secfilt);
    457481
     482float PhotAperInst (Measure *measure);
     483float PhotKronInst (Measure *measure);
     484float PhotKronAve (PhotCode *code, Average *average, SecFilt *secfilt);
     485
     486float PhotZeroPoint (Measure *measure, Average *average, SecFilt *secfilt);
     487float PhotAveFluxPSF (PhotCode *code, Average *average, SecFilt *secfilt);
     488float PhotAvedFluxPSF (PhotCode *code, Average *average, SecFilt *secfilt);
     489float PhotAveFluxKron (PhotCode *code, Average *average, SecFilt *secfilt);
     490float PhotAvedFluxKron (PhotCode *code, Average *average, SecFilt *secfilt);
     491
    458492float PhotMstdev (PhotCode *code, Average *average, SecFilt *secfilt);
    459493float PhotM20 (PhotCode *code, Average *average, SecFilt *secfilt);
    460494float PhotM80 (PhotCode *code, Average *average, SecFilt *secfilt);
    461495float PhotUCdist (PhotCode *code, Average *average, SecFilt *secfilt);
     496unsigned int PhotStackID (PhotCode *code, Average *average, SecFilt *secfilt);
    462497
    463498float PhotColorForCode (Average *average, SecFilt *secfilt, Measure *measure, PhotCode *code);
     
    571606# include "ps1_v2_defs.h"
    572607# include "ps1_v3_defs.h"
     608# include "ps1_v4_defs.h"
    573609# include "ps1_ref_defs.h"
    574610
     
    648684int free_tiny_values (Catalog *catalog);
    649685
     686int BoundaryTreeCellCoords (BoundaryTree *tree, int *zone, int *band, double ra, double dec);
     687int BoundaryTreeSave(char *filename, BoundaryTree *tree);
     688BoundaryTree *BoundaryTreeLoad(char *filename);
     689
     690void dvo_average_init (Average *average);
     691void dvo_secfilt_init (SecFilt *secfilt);
     692void dvo_measure_init (Measure *measure);
     693
    650694# endif // DVO_H
    651 
Note: See TracChangeset for help on using the changeset viewer.