IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30762


Ignore:
Timestamp:
Feb 28, 2011, 2:34:09 PM (15 years ago)
Author:
eugene
Message:

include nialls modes to high-speed proper motion search

Location:
branches/eam_branches/ipp-20110213/Ohana/src/relastro
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/Ohana/src/relastro/include/relastro.h

    r30616 r30762  
    8989char   GSCFILE[256];
    9090char   CATDIR[256];
     91char   *HIGH_SPEED_DIR;
    9192char   CATMODE[16];    /* raw, mef, split, mysql */
    9293char   CATFORMAT[16];  /* internal, elixir, loneos, panstarrs */
     
    9596
    9697double SIGMA_LIM;
    97 int    SRC_MEAS_TOOFEW; //catalog objects wich fewer detections then this are ignored
     98int SRC_MEAS_TOOFEW; //catalog objects wich fewer detections then this are ignored
    9899double MIN_ERROR;
    99100
  • branches/eam_branches/ipp-20110213/Ohana/src/relastro/src/args.c

    r30616 r30762  
    3939    remove_argument (N, &argc, argv);
    4040    RADIUS = atof(argv[N]);
     41    remove_argument (N, &argc, argv);
     42    HIGH_SPEED_DIR = strcreate(argv[N]);
    4143    remove_argument (N, &argc, argv);
    4244  }
  • branches/eam_branches/ipp-20110213/Ohana/src/relastro/src/high_speed_objects.c

    r29938 r30762  
    2222  int zcode, zNsec, ycode, yNsec, jcode, jNsec, hcode, hNsec, kcode, kNsec, USNO_R, USNO_N, Nsecfilt;
    2323  char filename[1024];
    24   char outdir[]="/data/ipp022.0/ndeacon/hispeedzy";
    2524  Noff = strlen(CATDIR);
    26   sprintf (filename, "%s/%s", outdir, &catalog[0].filename[Noff]);
     25  sprintf (filename, "%s/%s", HIGH_SPEED_DIR, &catalog[0].filename[Noff]);
     26  printf("%s\n",filename);
    2727  dvo_catalog_init(&catalog1, TRUE); /*initialise new catalogue*/
    2828  catalog1.filename = strcreate(filename);
     
    121121    foundA = FALSE;
    122122    for (j = 0; !foundA && (j < catalog[0].average[i].Nmeasure); j++, m++) {
    123       if((catalog[0].average[i].R>204.1923)&&(catalog[0].average[i].R<204.1924)&&(catalog[0].average[i].D>11.376)&&(catalog[0].average[i].D<11.377))
    124         {
    125           printf("Hello");
    126         }
    127123
    128124      if (MeasMatchesPhotcode(&catalog[0].measure[m], photcodesGroupA, NphotcodesGroupA)) {
     
    135131    foundB = FALSE;
    136132    for (j = 0; !foundB && (j < catalog[0].average[i].Nmeasure); j++, m++) {
    137                                                    
    138       if((catalog[0].average[i].R>204.192)&&(catalog[0].average[i].R<204.1925)&&(catalog[0].average[i].D>11.376)&&(catalog[0].average[i].D<11.377))
    139         {
    140           printf("Hello");
    141         }
     133         
    142134
    143135      if (MeasMatchesPhotcode(&catalog[0].measure[m], photcodesGroupB, NphotcodesGroupB)) {
     
    158150    if (foundA && !foundB) {
    159151      // average-based tests:
    160                                                    
    161       if((catalog[0].average[i].R>204.1923)&&(catalog[0].average[i].R<204.1924)&&(catalog[0].average[i].D>11.376)&&(catalog[0].average[i].D<11.377))
    162         {
    163           printf("Hello");
    164         }
     152         
    165153
    166154      valid = TRUE;
     
    204192
    205193      // average-based tests:
    206       if((catalog[0].average[i].R>204.192)&&(catalog[0].average[i].R<204.193)&&(catalog[0].average[i].D>11.372)&&(catalog[0].average[i].D<11.373))
    207         {
    208           printf("Hello");
    209         }
    210194      valid = TRUE;
    211195      valid &= ((catalog[0].average[i].flags & 0x01000000) == 0);
     
    214198
    215199      valid &= ((catalog[0].secfilt[i*Nsecfilt + jNsec].M < 1.0)||(isnan(catalog[0].secfilt[i*Nsecfilt + jNsec].M)));
    216       valid &= (catalog[0].secfilt[i*Nsecfilt + yNsec].Nused > 1);
    217       valid &= (catalog[0].secfilt[i*Nsecfilt + yNsec].dM < 0.2);
     200      valid &= ((catalog[0].secfilt[i*Nsecfilt + yNsec].Nused > 1)||(catalog[0].secfilt[i*Nsecfilt + zNsec].Nused > 1));
     201      valid &= ((catalog[0].secfilt[i*Nsecfilt + yNsec].dM < 0.2)||(catalog[0].secfilt[i*Nsecfilt + zNsec].dM < 0.2));
    218202
    219203      /*if ((catalog[0].secfilt[i*Nsecfilt + zNsec].M < 1.0) || (catalog[0].secfilt[i*Nsecfilt + zNsec].Nused == 1)) {
Note: See TracChangeset for help on using the changeset viewer.