IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2005, 3:04:36 PM (21 years ago)
Author:
eugene
Message:

moving to internal vs external measure/average: R,D + dR,dD.
NOTE * dR,dD now represent 1.0 arcsec, not 0.01 arcsec.

* all use has been updated to match

Location:
trunk/Ohana/src/addstar
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/doc/Changes.txt

    r4772 r4800  
    1 
    2 2005.08.15:
    3         cleanup of the minor Wall,Werror messages
    41
    522005.02.24 : I am adding the mosaic two-level astrometry information to the Image table.
    63
    742005.07.06 : current release is addstar-1.1
     5
    86        I have made a variety of fairly substantial changes since
    97        v1.0.  I have added autocode for the basic DVO data types.  I
    … …  
    2321        need to know about the mysql backend interface. 
    2422
    25 
     232005.08.15:
     24        cleanup of the minor Wall,Werror messages
  • trunk/Ohana/src/addstar/src/find_matches.c

    r3389 r4800  
    7474 
    7575  for (i = 0; i < Nave; i++) {
    76     fRD_to_XY (&X2[i], &Y2[i], catalog[0].average[i].R, catalog[0].average[i].D, &tcoords);
     76    fRD_to_XY (&X2[i], &Y2[i], catalog[0].average[i].R_PS, catalog[0].average[i].D_PS, &tcoords);
    7777    N2[i] = i;
    7878    catalog[0].found[N2[i]] = -1;
    … …  
    146146     
    147147      /** add measurements for this star **/
    148       catalog[0].measure[Nmeas].dR       = 360000.0*(catalog[0].average[n].R - stars[N].R);
    149       catalog[0].measure[Nmeas].dD       = 360000.0*(catalog[0].average[n].D - stars[N].D);
     148      /** dR,dD now represent arcsec **/
     149      catalog[0].measure[Nmeas].dR_PS       = 3600.0*(catalog[0].average[n].R_PS - stars[N].R);
     150      catalog[0].measure[Nmeas].dD_PS       = 3600.0*(catalog[0].average[n].D_PS - stars[N].D);
    150151      catalog[0].measure[Nmeas].M        = MIN (1000*stars[N].M + MTIME, NO_MAG);
    151152      catalog[0].measure[Nmeas].dM       = MIN (1000*stars[N].dM, NO_ERR);  /* error in input files stored in thousandths of mag */
    … …  
    216217    if (catalog[0].found[n] < 0) {
    217218      /* should the catalog star be on this image? project into image coords */
    218       if (!in_image (catalog[0].average[n].R, catalog[0].average[n].D, image)) continue;
     219      if (!in_image (catalog[0].average[n].R_PS, catalog[0].average[n].D_PS, image)) continue;
    219220      /* find last missing meas */
    220221      if (catalog[0].average[n].Nn < 1) { /* no previous missing obs */
    … …  
    234235      }
    235236      /* calculate time of exposure for this coordinate in the image */
    236       RD_to_XY (&X, &Y, catalog[0].average[n].R, catalog[0].average[n].D, &image[0].coords);     
     237      RD_to_XY (&X, &Y, catalog[0].average[n].R_PS, catalog[0].average[n].D_PS, &image[0].coords);       
    237238      catalog[0].missing[Nmiss].t  = image[0].tzero + 1e-4*Y*image[0].trate;  /* trate is in 0.1 msec / row */
    238239      catalog[0].average[n].Nn ++;
    … …  
    254255    secz = airmass (image[0].secz, stars[N].R, stars[N].D, SiderealTime, Latitude);
    255256
    256     catalog[0].average[Nave].R         = stars[N].R;
    257     catalog[0].average[Nave].D         = stars[N].D;
     257    catalog[0].average[Nave].R_PS              = stars[N].R;
     258    catalog[0].average[Nave].D_PS              = stars[N].D;
    258259    catalog[0].average[Nave].M         = NO_MAG;
    259260    catalog[0].average[Nave].dM        = NO_MAG;
    … …  
    273274    }
    274275
    275     catalog[0].measure[Nmeas].dR       = 0.0;
    276     catalog[0].measure[Nmeas].dD       = 0.0;
     276    catalog[0].measure[Nmeas].dR_PS       = 0.0;
     277    catalog[0].measure[Nmeas].dD_PS       = 0.0;
    277278    catalog[0].measure[Nmeas].M        = MIN (1000*stars[N].M + MTIME, NO_MAG);
    278279    catalog[0].measure[Nmeas].dM       = MIN (1000*stars[N].dM, NO_ERR);
    … …  
    298299    for (j = 0; (j < Noverlap) && !SKIP_MISSED; j++) {
    299300      if (!FindMosaicForImage (overlap, Noverlap, j)) continue;
    300       if (!in_image (catalog[0].average[Nave].R, catalog[0].average[Nave].D, &overlap[j])) continue;
     301      if (!in_image (catalog[0].average[Nave].R_PS, catalog[0].average[Nave].D_PS, &overlap[j])) continue;
    301302      if (catalog[0].average[Nave].Nn < 1) {
    302303        catalog[0].average[Nave].missing = Nmiss;
    … …  
    306307      last_miss = Nmiss;
    307308      /* get time of exposure of this portion of the image */
    308       RD_to_XY (&X, &Y, catalog[0].average[Nave].R, catalog[0].average[Nave].D, &overlap[j].coords);     
     309      RD_to_XY (&X, &Y, catalog[0].average[Nave].R_PS, catalog[0].average[Nave].D_PS, &overlap[j].coords);       
    309310      catalog[0].missing[Nmiss].t  = overlap[j].tzero + 1e-4*Y*overlap[j].trate;  /* rough guess at time */
    310311      catalog[0].average[Nave].Nn ++;
  • trunk/Ohana/src/addstar/src/find_matches_refstars.c

    r3361 r4800  
    6262 
    6363  for (i = 0; i < Nave; i++) {
    64     fRD_to_XY (&X2[i], &Y2[i], catalog[0].average[i].R, catalog[0].average[i].D, &tcoords);
     64    fRD_to_XY (&X2[i], &Y2[i], catalog[0].average[i].R_PS, catalog[0].average[i].D_PS, &tcoords);
    6565    N2[i] = i;
    6666    catalog[0].found[N2[i]] = -1;
    … …  
    127127       
    128128      /** add measurements for this star **/
    129       catalog[0].measure[Nmeas].dR       = 360000.0*(catalog[0].average[n].R - stars[N][0].R);
    130       catalog[0].measure[Nmeas].dD       = 360000.0*(catalog[0].average[n].D - stars[N][0].D);
     129      /** *** dR,dD now in arcsec *** **/
     130      catalog[0].measure[Nmeas].dR_PS       = 3600.0*(catalog[0].average[n].R_PS - stars[N][0].R);
     131      catalog[0].measure[Nmeas].dD_PS       = 3600.0*(catalog[0].average[n].D_PS - stars[N][0].D);
    131132      catalog[0].measure[Nmeas].M        = MIN (1000*stars[N][0].M,  NO_MAG);
    132133      catalog[0].measure[Nmeas].dM       = MIN (1000*stars[N][0].dM, NO_ERR);
    … …  
    192193    if (stars[N][0].found >= 0) continue;
    193194
    194     catalog[0].average[Nave].R         = stars[N][0].R;
    195     catalog[0].average[Nave].D         = stars[N][0].D;
     195    catalog[0].average[Nave].R_PS         = stars[N][0].R;
     196    catalog[0].average[Nave].D_PS         = stars[N][0].D;
    196197    catalog[0].average[Nave].M         = NO_MAG;
    197198    catalog[0].average[Nave].dM        = NO_MAG;
    … …  
    211212    }
    212213
    213     catalog[0].measure[Nmeas].dR       = 0.0;
    214     catalog[0].measure[Nmeas].dD       = 0.0;
     214    catalog[0].measure[Nmeas].dR_PS       = 0.0;
     215    catalog[0].measure[Nmeas].dD_PS       = 0.0;
    215216    catalog[0].measure[Nmeas].M        = MIN (1000*stars[N][0].M,  NO_MAG);
    216217    catalog[0].measure[Nmeas].dM       = MIN (1000*stars[N][0].dM, NO_ERR);
  • trunk/Ohana/src/addstar/src/replace_match.c

    r3376 r4800  
    1010  for (i = 0; i < average[0].Nm; i++) {
    1111    if (measure[i].source != thiscode[0].code) continue;
    12     measure[i].dR       = 360000.0*(average[0].R - star[0].R);
    13     measure[i].dD       = 360000.0*(average[0].D - star[0].D);
     12    measure[i].dR_PS       = 3600.0*(average[0].R_PS - star[0].R);
     13    measure[i].dD_PS       = 3600.0*(average[0].D_PS - star[0].D);
    1414    measure[i].M        = MIN (1000*star[0].M,  NO_MAG);
    1515    measure[i].dM       = MIN (1000*star[0].dM, NO_ERR);
  • trunk/Ohana/src/addstar/src/update_coords.c

    r3376 r4800  
    1919      continue;
    2020    }
    21     R = measure[m].dR;
    22     D = measure[m].dD;
     21    R = measure[m].dR_PS;
     22    D = measure[m].dD_PS;
    2323    r += R;
    2424    d += D;
    … …  
    3333  r = r / Npt;  /* these are corrections in 1/100 arcsec to RA and DEC */
    3434  d = d / Npt;
    35   average[0].R -= r / 360000.0;
    36   average[0].D -= d / 360000.0;
     35  average[0].R_PS -= r / 3600.0;
     36  average[0].D_PS -= d / 3600.0;
    3737  m = average[0].offset;  /* first measurement of this star */
    3838  for (i = 0; i < average[0].Nm; i++) {
    39     measure[m].dR -= r;
    40     measure[m].dD -= d;
     39    measure[m].dR_PS -= r;
     40    measure[m].dD_PS -= d;
    4141    m = next[m];
    4242  }
Note: See TracChangeset for help on using the changeset viewer.