IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36485 for trunk/Ohana


Ignore:
Timestamp:
Feb 6, 2014, 12:39:19 PM (12 years ago)
Author:
eugene
Message:

be consistent with images ctype (derived from DEC not RA)

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

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/GetFileMode.c

    r35416 r36485  
    1212  gfits_scan_alt (header, "SIMPLE", "%t", 1, &simple);
    1313  int haveNaxis = gfits_scan (header, "NAXIS",  "%d", 1, &Naxis);
    14   int haveCTYPE = gfits_scan (header, "CTYPE1", "%s", 1, ctype);
     14  int haveCTYPE = gfits_scan (header, "CTYPE2", "%s", 1, ctype);
    1515
    1616  gfits_scan_alt (header, "EXTEND", "%t", 1, &extend);
  • trunk/Ohana/src/addstar/src/LoadDataPMM.c

    r34088 r36485  
    193193
    194194    // XXX for now, we define a totally fake coordinate system centered on the plate center
    195     strcpy (image[0].coords.ctype, "RA---TAN");
     195    strcpy (image[0].coords.ctype, "DEC--TAN");
    196196   
    197197    image[0].coords.crval1  = pmm_get_ra (RA);
  • trunk/Ohana/src/addstar/src/ReadStarsSDSS.c

    r34088 r36485  
    201201   
    202202    // XXX for now, we define a totally fake coordinate system centered on the first listed star
    203     strcpy (images[N].coords.ctype, "RA---TAN");
     203    strcpy (images[N].coords.ctype, "DEC--TAN");
    204204   
    205205    images[N].coords.crval1 = stars[0].average.R;
  • trunk/Ohana/src/addstar/src/fakeimage.c

    r30613 r36485  
    3434
    3535  /* create a mosaic distortion structure */
    36   strcpy (MOSAIC.ctype, "RA---DIS");
     36  strcpy (MOSAIC.ctype, "DEC--DIS");
    3737  MOSAIC.crval1 = FAKE_RA;
    3838  MOSAIC.crval2 = FAKE_DEC;
     
    8686    strcpy (image[i+1].name, name);
    8787
    88     strcpy (image[i+1].coords.ctype, "RA---WRP");
     88    strcpy (image[i+1].coords.ctype, "DEC--WRP");
    8989   
    9090    image[i+1].coords.crval1 = dX*pixscale;
  • trunk/Ohana/src/addstar/src/find_matches.c

    r34361 r36485  
    6565  tcoords.pc1_2 = tcoords.pc2_1 = 0.0;
    6666  tcoords.Npolyterms = 1;
    67   strcpy (tcoords.ctype, "RA---ARC");
     67  strcpy (tcoords.ctype, "DEC--ARC");
    6868
    6969  /* build spatial index (RA sort) referencing input array sequence */
  • trunk/Ohana/src/addstar/src/find_matches_closest.c

    r34361 r36485  
    6464  tcoords.pc1_2 = tcoords.pc2_1 = 0.0;
    6565  tcoords.Npolyterms = 1;
    66   strcpy (tcoords.ctype, "RA---ARC");
     66  strcpy (tcoords.ctype, "DEC--ARC");
    6767
    6868  /* build spatial index (RA sort) referencing input array sequence */
  • trunk/Ohana/src/addstar/src/find_matches_closest_refstars.c

    r34361 r36485  
    5959  tcoords.pc1_2 = tcoords.pc2_1 = 0.0;
    6060  tcoords.Npolyterms = 0;
    61   strcpy (tcoords.ctype, "RA---ARC");
     61  strcpy (tcoords.ctype, "DEC--ARC");
    6262 
    6363  /* build spatial index (RA sort) referencing input array sequence */
  • trunk/Ohana/src/addstar/src/find_matches_refstars.c

    r34260 r36485  
    5757  tcoords.pc1_1 = tcoords.pc2_2 = 1.0;
    5858  tcoords.pc1_2 = tcoords.pc2_1 = 0.0;
    59   strcpy (tcoords.ctype, "RA---ZEA");
     59  strcpy (tcoords.ctype, "DEC--ZEA");
    6060  tcoords.Npolyterms = 0;
    6161 
  • trunk/Ohana/src/addstar/src/loadsupercos_plates.c

    r33653 r36485  
    118118
    119119    // for now, we define a fake coordinate system based on the boresite center
    120     strcpy (image[Nimage].coords.ctype, "RA---TAN");
     120    strcpy (image[Nimage].coords.ctype, "DEC--TAN");
    121121   
    122122    image[Nimage].coords.crval1 = RAo;
  • trunk/Ohana/src/addstar/src/sky_tessalation.c

    r34844 r36485  
    11061106  refcoords[0].Npolyterms = 0;
    11071107  memset (refcoords[0].polyterms, 0, 14*sizeof(float));
    1108   strcpy (refcoords[0].ctype, "RA---TAN");
     1108  strcpy (refcoords[0].ctype, "DEC--TAN");
    11091109  return (TRUE);
    11101110}
Note: See TracChangeset for help on using the changeset viewer.