IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5014 for trunk/Ohana/src/opihi


Ignore:
Timestamp:
Sep 12, 2005, 3:04:48 PM (21 years ago)
Author:
eugene
Message:

substantial work to enable mode and format selections for DVO:image and DVO:secfilt

Location:
trunk/Ohana/src/opihi/dvo
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/avextract.c

    r4834 r5014  
    2828  /* find CATDIR in config system */
    2929  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    30   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    31     strcpy (catalog.catmode, "RAW");
    3230
    3331  /* interpret command-line options */
  • trunk/Ohana/src/opihi/dvo/calextract.c

    r4865 r5014  
    3030  /* find CATDIR in config system */
    3131  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    32   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    33     strcpy (catalog.catmode, "RAW");
    3432
    3533  /* command line arguments */
  • trunk/Ohana/src/opihi/dvo/calmextract.c

    r4865 r5014  
    3131  /* find CATDIR in config system */
    3232  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    33   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    34     strcpy (catalog.catmode, "RAW");
    3533
    3634  /* command line arguments */
  • trunk/Ohana/src/opihi/dvo/catalog.c

    r4865 r5014  
    3232  VarConfig ("GSCDIR", "%s", gscdir);
    3333  VarConfig ("CATDIR", "%s", catdir);
    34   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    35     strcpy (catalog.catmode, "RAW");
    3634
    3735  Mz = 17.0;
  • trunk/Ohana/src/opihi/dvo/ccd.c

    r4834 r5014  
    2828  /* find CATDIR in config system */
    2929  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    30   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    31     strcpy (catalog.catmode, "RAW");
    3230
    3331  /* interpret command-line options */
  • trunk/Ohana/src/opihi/dvo/cmatch.c

    r4852 r5014  
    1111  VarConfig ("GSCDIR", "%s", gscdir);
    1212  VarConfig ("CATDIR", "%s", catdir);
    13   if (VarConfig ("CATMODE", "%s", catalog1.catmode) == NULL)
    14     strcpy (catalog1.catmode, "RAW");
    1513     
    1614  if (argc != 9) {
  • trunk/Ohana/src/opihi/dvo/cmd.c

    r4834 r5014  
    2828  /* find CATDIR in config system */
    2929  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    30   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    31     strcpy (catalog.catmode, "RAW");
    3230
    3331  /* interpret command-line options */
  • trunk/Ohana/src/opihi/dvo/ddmags.c

    r4834 r5014  
    2828  /* find CATDIR in config system */
    2929  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    30   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    31     strcpy (catalog.catmode, "RAW");
    3230
    3331  /* interpret command-line options */
  • trunk/Ohana/src/opihi/dvo/dmagaves.c

    r4834 r5014  
    2929  /* find CATDIR in config system */
    3030  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    31   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    32     strcpy (catalog.catmode, "RAW");
    3331
    3432  /* interpret command-line options */
  • trunk/Ohana/src/opihi/dvo/dmagmeas.c

    r4834 r5014  
    2929  /* find CATDIR in config system */
    3030  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    31   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    32     strcpy (catalog.catmode, "RAW");
    3331
    3432  /* interpret command-line options */
  • trunk/Ohana/src/opihi/dvo/dmags.c

    r4834 r5014  
    2828  /* find CATDIR in config system */
    2929  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    30   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    31     strcpy (catalog.catmode, "RAW");
    3230
    3331  /* interpret command-line options */
  • trunk/Ohana/src/opihi/dvo/dmt.c

    r4865 r5014  
    2020
    2121  VarConfig ("CATDIR", "%s", catdir);
    22   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    23     strcpy (catalog.catmode, "RAW");
    2422
    2523  vec1 = vec2 = vec3 = vec4 = vec5 = NULL;
  • trunk/Ohana/src/opihi/dvo/extract.c

    r4834 r5014  
    3636  VarConfig ("GSCDIR", "%s", gscdir);
    3737  VarConfig ("CATDIR", "%s", catdir);
    38   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    39     strcpy (catalog.catmode, "RAW");
    4038
    4139  regions = (RegionFile *) NULL;
  • trunk/Ohana/src/opihi/dvo/fitcolors.c

    r4834 r5014  
    1414  int N1, N2, i1, i2, mode[4];
    1515  int Nsec, Nregions, status;
    16   char catdir[256], catmode[16], filename[256], *RegionName, *RegionList;
     16  char catdir[256], filename[256], *RegionName, *RegionList;
    1717  char *cmd, *outcmd, *camera;
    1818  double *M1, *M2;
     
    3737  /* find CATDIR in config system */
    3838  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    39   if (VarConfig ("CATMODE", "%s", catmode) == NULL) strcpy (catmode, "RAW");
    4039
    4140  /* interpret command-line options */
     
    104103  for (k = 0; k < Nregions; k++) {
    105104    /* lock, load, unlock catalog */
    106     strcpy (catalog[k].catmode, catmode);
    107105    sprintf (filename, "%s/%s", catdir, regions[k].name);
    108106    catalog[k].filename = filename;
  • trunk/Ohana/src/opihi/dvo/gimages.c

    r4689 r5014  
    44 
    55  int i, j, N, Nimage, Nfound, *subset, Nsubset, status;
    6   double ra, dec, Ra, Dec, X, Y, Mcal;
     6  double ra, dec, Ra, Dec, X, Y;
    77  double trange, t;
    88  int TimeSelect, PixelCoords, TimeFormat, PhotCodeSelect;
     
    9696    if (Y > image[i].NY) continue;
    9797
     98    /*** XXX we need to re-introduce the use of applyMcal
    9899    Mcal = applyMcal (&image[i], 2048.0, 2048.0);
     100    ***/
     101
    99102    date = sec_to_date (image[i].tzero);
    100103
    101104    if (PixelCoords) {
    102105      fprintf (GetOutfile(), "%3d %s %6.1f %6.1f %20s %5d %2d %4.2f %6.3f %5.3f %5.3f %4x\n",
    103                Nfound, image[i].name, X, Y, date, image[i].nstar, image[i].source, 0.001*image[i].secz, 0.001*Mcal, 0.001*image[i].dMcal, image[i].exptime, image[i].code);
     106               Nfound, image[i].name, X, Y, date, image[i].nstar, image[i].source, image[i].secz_PS, image[i].Mcal_PS, image[i].dMcal_PS, image[i].exptime, image[i].code);
    104107    } else {
    105108      XY_to_RD (&ra, &dec, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords);
    106109      fprintf (GetOutfile(), "%3d %s %8.4f %8.4f %20s %5d %2d %4.2f %6.3f %5.3f %5.3f %4x\n",
    107                Nfound, image[i].name, ra, dec, date, image[i].nstar, image[i].source, 0.001*image[i].secz, 0.001*Mcal, 0.001*image[i].dMcal, image[i].exptime, image[i].code);
     110               Nfound, image[i].name, ra, dec, date, image[i].nstar, image[i].source, image[i].secz_PS, image[i].Mcal_PS, image[i].dMcal_PS, image[i].exptime, image[i].code);
    108111    }
    109112    sprintf (name, "IMAGEx:%d", Nfound);
  • trunk/Ohana/src/opihi/dvo/gstar.c

    r4865 r5014  
    1818
    1919  if (VarConfig ("CATDIR", "%s", catdir) == NULL) return (FALSE);
    20   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    21     strcpy (catalog.catmode, "RAW");
    2220
    2321  if (!InitPhotcodes ()) return (FALSE);
  • trunk/Ohana/src/opihi/dvo/imdata.c

    r4865 r5014  
    4040    }     
    4141  }
    42 
    43   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    44     strcpy (catalog.catmode, "RAW");
    4542
    4643  if (argc != 4) {
  • trunk/Ohana/src/opihi/dvo/imextract.c

    r4689 r5014  
    139139      break;
    140140    case (AIRMASS):
    141       vec[0].elements[N] = 0.001*image[j].secz;
     141      vec[0].elements[N] = image[j].secz_PS;
    142142      break;
    143143    case (MCAL):
    144       vec[0].elements[N] = 0.001*image[j].Mcal;
     144      vec[0].elements[N] = image[j].Mcal_PS;
    145145      break;
    146146    case (dMCAL):
    147       vec[0].elements[N] = 0.001*image[j].dMcal;
     147      vec[0].elements[N] = image[j].dMcal_PS;
    148148      break;
    149149    case (PHOTCODE):
  • trunk/Ohana/src/opihi/dvo/imlist.c

    r4689 r5014  
    8686    XY_to_RD (&r, &d, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords);
    8787    fprintf (GetOutfile(), "%3d %s %8.4f %8.4f %f %5d %2d %4.2f %5.3f %5.3f\n",
    88              i, image[i].name, r, d, t, image[i].nstar, image[i].source, 0.001*image[i].secz, 0.001*image[i].Mcal, 0.001*image[i].dMcal);
     88             i, image[i].name, r, d, t, image[i].nstar, image[i].source, image[i].secz_PS, image[i].Mcal_PS, image[i].dMcal_PS);
    8989  }
    9090
  • trunk/Ohana/src/opihi/dvo/imphot.c

    r4689 r5014  
    7474    switch (image[i].order) {
    7575    case 0:
    76       fprintf (stderr, "%s: %d - %d\n", image[i].name, image[i].order, image[i].Mcal);
     76      fprintf (stderr, "%s: %d - %f\n", image[i].name, image[i].order, image[i].Mcal_PS);
    7777      break;
    7878    case 1:
    79       fprintf (stderr, "%s: %d - %d, %d %d\n", image[i].name, image[i].order, image[i].Mcal, image[i].Mx, image[i].My);
     79      fprintf (stderr, "%s: %d - %f, %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My);
    8080      break;
    8181    case 2:
    82       fprintf (stderr, "%s: %d - %d, %d %d, %d %d %d\n", image[i].name, image[i].order, image[i].Mcal, image[i].Mx, image[i].My, image[i].Mxx, image[i].Mxy, image[i].Myy);
     82      fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My, image[i].Mxx, image[i].Mxy, image[i].Myy);
    8383      break;
    8484    case 3:
    85       fprintf (stderr, "%s: %d - %d, %d %d, %d %d %d, %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal, image[i].Mx, image[i].My,
     85      fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My,
    8686               image[i].Mxx, image[i].Mxy, image[i].Myy, image[i].Mxxx, image[i].Mxxy, image[i].Mxyy, image[i].Myyy);
    8787      break;
    8888    case 4:
    89       fprintf (stderr, "%s: %d - %d, %d %d, %d %d %d, %d %d %d %d, %d %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal, image[i].Mx, image[i].My,
     89      fprintf (stderr, "%s: %d - %f, %d %d, %d %d %d, %d %d %d %d, %d %d %d %d %d\n", image[i].name, image[i].order, image[i].Mcal_PS, image[i].Mx, image[i].My,
    9090               image[i].Mxx, image[i].Mxy, image[i].Myy, image[i].Mxxx, image[i].Mxxy, image[i].Mxyy, image[i].Myyy,
    9191               image[i].Mxxxx, image[i].Mxxxy, image[i].Mxxyy, image[i].Mxyyy, image[i].Myyyy);
  • trunk/Ohana/src/opihi/dvo/imstats.c

    r4689 r5014  
    4545  fprintf (stdout, "seq  ra (J2000) dec    time (s)   Nstars\n");
    4646  for (i = 0; i < Nimage; i++) {
    47     Xvec.elements[i] = 0.001*image[i].secz;
     47    Xvec.elements[i] = image[i].secz_PS;
    4848    if (Mcal)
    49       Yvec.elements[i] = 0.001*image[i].Mcal;
     49      Yvec.elements[i] = image[i].Mcal_PS;
    5050    else
    51       Yvec.elements[i] = 0.001*image[i].dMcal;
     51      Yvec.elements[i] = image[i].dMcal_PS;
    5252    if (!FindMosaicForImage (image, Nimage, i)) continue;
    5353    XY_to_RD (&r, &d, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords);
    5454    fprintf (stderr, "%d %8.4f %8.4f %10d %6d  %5.3f %6.3f %6.3f\n",
    5555             i, r, d, image[i].tzero, image[i].nstar, Xvec.elements[i],
    56              0.001*image[i].Mcal, 0.001*image[i].dMcal);
     56             image[i].Mcal_PS, image[i].dMcal_PS);
    5757  }
    5858  if (AutoLimits) SetLimits (&Xvec, &Yvec, &graphmode);
  • trunk/Ohana/src/opihi/dvo/lcurve.c

    r4865 r5014  
    1818
    1919  VarConfig ("CATDIR", "%s", catdir);
    20   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    21     strcpy (catalog.catmode, "RAW");
    2220
    2321  if (!InitPhotcodes ()) return (FALSE);
  • trunk/Ohana/src/opihi/dvo/lightcurve.c

    r4865 r5014  
    1515
    1616  VarConfig ("CATDIR", "%s", catdir);
    17   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    18     strcpy (catalog.catmode, "RAW");
    1917
    2018  if (!InitPhotcodes ()) return (FALSE);
  • trunk/Ohana/src/opihi/dvo/mextract.c

    r4833 r5014  
    2929  /* find CATDIR in config system */
    3030  if (VarConfig ("CATDIR", "%s", catdir) == NULL) goto escape;
    31   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    32     strcpy (catalog.catmode, "RAW");
    3331
    3432  /* interpret command-line options */
  • trunk/Ohana/src/opihi/dvo/pmeasure.c

    r4833 r5014  
    2222  if (!GetGraph (&graphmode, NULL, &Ngraph)) return (FALSE);
    2323  if (VarConfig ("CATDIR", "%s", catdir) == NULL) return (FALSE);
    24   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    25     strcpy (catalog.catmode, "RAW");
    2624
    2725  regions = (RegionFile *) NULL;
  • trunk/Ohana/src/opihi/dvo/subpix.c

    r4834 r5014  
    2323
    2424  VarConfig ("CATDIR", "%s", catdir);
    25   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    26     strcpy (catalog.catmode, "RAW");
    2725
    2826  GetTimeFormat (&TimeReference, &TimeFormat);
     
    150148        RD_to_XY (&X, &Y, Ra, Dec, &image[I].coords);
    151149        t = TimeValue (measure[j].t, TimeReference, TimeFormat);
    152         fprintf (GetOutfile(), "%f %6.3f %7.2f %7.2f %5.3f\n", t, Mabs, X, Y, 0.001*image[I].secz);
     150        fprintf (GetOutfile(), "%f %6.3f %7.2f %7.2f %5.3f\n", t, Mabs, X, Y, image[I].secz_PS);
    153151      }
    154152    }
Note: See TracChangeset for help on using the changeset viewer.