IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2015, 4:49:06 PM (11 years ago)
Author:
eugene
Message:

extensive work on relphot, relastro, uniphot, dvomerge aiming to the construction and calibration of PV3

Location:
trunk/Ohana
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana

  • trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c

    r38970 r38986  
    205205/* return equivalent photcode.code for given code */
    206206int GetPhotcodeEquivCodebyCode (int code) {
     207  myAssert (photcodes, "photcodes not loaded");
    207208 
    208209  int entry;
     
    218219// returns Nsec if code is PRI/SEC, else -1
    219220int GetPhotcodeNsec (int code) {
     221  myAssert (photcodes, "photcodes not loaded");
    220222 
    221223  int Nsec;
     
    230232/* Nsec of 0 is PRI */
    231233PhotCode *GetPhotcodebyNsec (int Nsec) {
     234  myAssert (photcodes, "photcodes not loaded");
    232235 
    233236  int Ncode;
     
    245248
    246249int GetPhotcodeNsecfilt () {
     250  myAssert (photcodes, "photcodes not loaded");
    247251  return (photcodes[0].Nsecfilt);
    248252}
     
    745749  }
    746750  return (Mstdev);
     751}
     752
     753// return the number of detections in this filter (gpc1)
     754int PhotNcode (PhotCode *code, Average *average, SecFilt *secfilt) {
     755
     756  if (code == NULL) return 0;
     757
     758  int Ns = photcodes[0].hashNsec[code[0].code];
     759  if (Ns == -1) return 0;
     760
     761  return secfilt[Ns].Ncode;
     762}
     763
     764// return the number of detections in this filter (gpc1)
     765int PhotSecfiltFlags (PhotCode *code, Average *average, SecFilt *secfilt) {
     766
     767  if (code == NULL) return 0;
     768
     769  int Ns = photcodes[0].hashNsec[code[0].code];
     770  if (Ns == -1) return 0;
     771
     772  return secfilt[Ns].flags;
    747773}
    748774
Note: See TracChangeset for help on using the changeset viewer.