IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4852


Ignore:
Timestamp:
Aug 21, 2005, 2:54:58 PM (21 years ago)
Author:
eugene
Message:

minor edits

Location:
trunk/Ohana
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/Makefile

    r3524 r4852  
    4444opihi       \
    4545perl        \
    46 photdbc     \
    4746relphot     \
    4847shell       \
     
    6160lightcurve  \
    6261markrock    \
     62photdbc     \
    6363markstar    \
    6464mosastro.v1 \
  • trunk/Ohana/src/imregister/src/convertimreg.c

    r4849 r4852  
    11# include "imregister.h"
    22# include "imreg.h"
    3 static char *version = "convertimreg $Revision: 3.2 $";
     3static char *version = "convertimreg $Revision: 3.3 $";
    44
    55int main (int argc, char **argv) {
     
    5050  }
    5151  fclearlockfile (argv[1], f, lockstate, &dbstate);
    52   fits_convert_RegImage (regimage, sizeof (RegImage), Nregimage);
     52  fits_convert_RegImage (pimage, sizeof (RegImage), Nimage);
    5353
    5454  /* create complete subset */
  • trunk/Ohana/src/misc/src/ftable.c

    r4772 r4852  
    202202  FILE *f;
    203203
    204   /* find extension of interest */
    205   if (!Nextend && (Extname == (char *) NULL)) Nextend = 1;
    206 
    207204  /* open file */
    208205  f = fopen (file, "r");
     
    230227
    231228  /* search for extension of interest */
    232   for (i = 1; fits_fread_Theader (f, header); i++) {
    233     if (Nextend && (Nextend == i)) return (f);
     229  for (i = 0; fits_fread_Theader (f, header); i++) {
     230    if ((Extname == NULL) && (Nextend == i)) return (f);
    234231
    235232    fits_scan (header, "EXTNAME", "%s", 1, extname);
    236     if ((Extname != (char *) NULL) && (!strcmp (Extname, extname))) return (f);
     233    if ((Extname != NULL) && (!strcmp (Extname, extname))) return (f);
    237234
    238235    Nbytes = fits_matrix_size (header);
     
    357354    fits_scan (header, field, "%s", 1, unit);
    358355    sprintf (field, "TNULL%d", i);
    359     fits_scan (header, field, "%s", 1, null);
     356    if (!fits_scan (header, field, "%s", 1, null)) strcpy (null, "none");
    360357    sprintf (field, "TNVAL%d", i);
    361     fits_scan (header, field, "%s", 1, nval);
     358    if (!fits_scan (header, field, "%s", 1, nval)) strcpy (nval, "none");
    362359
    363360    fprintf (stdout, "%-18s %-32s %-18s %-6s %-8s %-8s\n",
  • trunk/Ohana/src/opihi/dvo/cmatch.c

    r4844 r4852  
    33int cmatch (int argc, char **argv) {
    44 
    5   FILE *f;
    65  Catalog catalog1, catalog2;
    7   int i, Nbytes, nbytes, Nitems, nitems;
    8   char *tbuffer, filename[128];
    9   int nstar, NSTARS;
    10   double R, D, M, radius;
     6  char filename[128];
     7  double radius;
    118  char catdir[256], gscdir[256];
    129  Vector *rvec, *dvec, *mvec, *drvec, *ddvec, *dmvec;
     
    1411  VarConfig ("GSCDIR", "%s", gscdir);
    1512  VarConfig ("CATDIR", "%s", catdir);
    16   if (VarConfig ("CATMODE", "%s", catalog.catmode) == NULL)
    17     strcpy (catalog.catmode, "RAW");
     13  if (VarConfig ("CATMODE", "%s", catalog1.catmode) == NULL)
     14    strcpy (catalog1.catmode, "RAW");
    1815     
    1916  if (argc != 9) {
     
    3936  sprintf (filename, "%s/%s", catdir, argv[1]);
    4037  catalog1.filename = filename;
    41   switch (lock_catalog (&catalog, LCK_SOFT)) {
     38  switch (lock_catalog (&catalog1, LCK_SOFT)) {
    4239  case 2:
    43     unlock_catalog (&catalog);
     40    unlock_catalog (&catalog1);
    4441  case 0:
    4542    return (FALSE);
    4643  }
    47   if (!load_catalog (&catalog, LOAD_AVES | LOAD_MEAS | LOAD_SECF, TRUE)) {
    48     unlock_catalog (&catalog);
     44  if (!load_catalog (&catalog1, LOAD_AVES | LOAD_MEAS | LOAD_SECF, TRUE)) {
     45    unlock_catalog (&catalog1);
    4946    return (FALSE);
    5047  }
    51   unlock_catalog (&catalog);
     48  unlock_catalog (&catalog1);
    5249  fprintf (stderr, "read %d stars from phot catalog file %s\n", catalog1.Naverage, filename);
    5350
     51  /* this is for loading from a text file, presumably hstgsc or usno
     52     replace this with references to the ra and dec vectors?
    5453  nstar = 0;
    5554  NSTARS = DNSTARS;
     
    7675  catalog2.Naverage = nstar;
    7776  fclose (f);
     77  */
    7878
    7979  /* sort data in order of RA */
Note: See TracChangeset for help on using the changeset viewer.