IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38851 for trunk


Ignore:
Timestamp:
Oct 13, 2015, 11:40:28 AM (11 years ago)
Author:
eugene
Message:

add zpFactor, REGION_ID

Location:
trunk/Ohana/src/dvopsps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvopsps/include/dvopsps.h

    r38674 r38851  
    2020  float decErr;
    2121  float zp;
     22  float zpFactor;
    2223  float telluricExt;
    2324  float airmass;
  • trunk/Ohana/src/dvopsps/src/insert_detections_dvopsps_catalog.c

    r38441 r38851  
    186186
    187187  PrintIOBuffer (buffer, "INSERT INTO dvoDetectionFull (objID, detectID, ippObjID, ippDetectID, imageID, catID, ");
    188   PrintIOBuffer (buffer, "ra, dec_, raErr, decErr, zp, telluricExt, airmass, expTime, ");
     188  PrintIOBuffer (buffer, "ra, dec_, raErr, decErr, zp, zpFactor, telluricExt, airmass, expTime, ");
    189189  PrintIOBuffer (buffer, "Mpsf, dMpsf, Mkron, dMkron, Map, dMap, flags) VALUES \n");
    190190
     
    256256  PRINT_FLOAT(buffer, detection->decErr,      "%.6f, ");
    257257  PRINT_FLOAT(buffer, detection->zp,          "%.6f, ");
     258  PRINT_FLOAT(buffer, detection->zpFactor,    "%.6e, ");
    258259  PRINT_FLOAT(buffer, detection->telluricExt, "%.6f, ");
    259260  PRINT_FLOAT(buffer, detection->airmass,     "%.6f, ");
     
    310311  float nominalZP   = code->C * 0.001 + code->K * (measure->airmass - 1);
    311312  float zp          = nominalZP - measure->Mcal;
     313  float zpFactor    = pow(10.0, -0.4*zp + 3.56);
    312314  float telluricExt = - measure->Mcal;
    313315  float expTime     = pow(10.0, 0.4 * measure->dt);
     
    327329
    328330  detection->zp           = zp;
     331  detection->zpFactor     = zpFactor;
    329332  detection->telluricExt  = telluricExt;
    330333  detection->airmass      = airmass;
  • trunk/Ohana/src/dvopsps/src/insert_skytable.c

    r37048 r38851  
    6464  }
    6565
    66   PrintIOBuffer (buffer, "INSERT INTO dvoSkyTable (R_MIN, R_MAX, D_MIN, D_MAX, INDEX_, NAME) VALUES \n");
     66  PrintIOBuffer (buffer, "INSERT INTO dvoSkyTable (R_MIN, R_MAX, D_MIN, D_MAX, REGION_ID, NAME) VALUES \n");
    6767
    6868  return TRUE;
Note: See TracChangeset for help on using the changeset viewer.