IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39183


Ignore:
Timestamp:
Nov 21, 2015, 3:12:35 PM (11 years ago)
Author:
eugene
Message:

adding wcs command to set the wcs for a buffer; some tweaks to region and imlist

Location:
branches/eam_branches/ipp-20151113/Ohana/src/opihi
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/Makefile

    r38062 r39183  
    7474$(SRC)/vshimage.$(ARCH).o         \
    7575$(SRC)/shimage.$(ARCH).o         \
     76$(SRC)/wcs.$(ARCH).o         \
    7677$(SRC)/imsub.$(ARCH).o             \
    7778$(SRC)/imfit.$(ARCH).o             \
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/init.c

    r38062 r39183  
    6464int vshimage                PROTO((int, char **));
    6565int shimage                 PROTO((int, char **));
     66int wcs                     PROTO((int, char **));
    6667
    6768static Command cmds[] = { 
     
    127128  {1, "vshimage",    vshimage,     "generate images for vector spherical harmonic terms"},
    128129  {1, "shimage",     shimage,      "generate images for spherical harmonic terms"},
     130  {1, "wcs",         wcs,          "set the wcs for the given image"},
    129131};
    130132
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/region.c

    r39166 r39183  
    8383  if ((argc != 4) && (argc != 5)) {
    8484    gprint (GP_ERR, "USAGE: region Ra Dec Radius [projection] [orientation]\n");
    85     gprint (GP_ERR, "  [-image] [-ew] [+ew] [-ns] [+ns] [-no-clear]\n");
     85    gprint (GP_ERR, "  [-image] [-ew] [+ew] [-ns] [+ns] [-no-clear] [-angle theta]\n");
    8686    gprint (GP_ERR, " current: %f %f (%f x %f) (%s)\n",
    8787             graphmode.coords.crval1, graphmode.coords.crval2,
  • branches/eam_branches/ipp-20151113/Ohana/src/opihi/dvo/imlist.c

    r37807 r39183  
    2121  }
    2222
     23  int VERBOSE = TRUE;
     24  if ((N = get_argument (argc, argv, "-quiet"))) {
     25    VERBOSE = FALSE;
     26    remove_argument (N, &argc, argv);
     27  }
     28  if ((N = get_argument (argc, argv, "-q"))) {
     29    VERBOSE = FALSE;
     30    remove_argument (N, &argc, argv);
     31  }
     32
    2333  TimeSelect = FALSE;
    2434  if ((N = get_argument (argc, argv, "-time"))) {
     
    3545    remove_argument (N, &argc, argv);
    3646    TimeSelect = TRUE;
    37     gprint (GP_ERR, "plotting in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange);
     47    if (VERBOSE) gprint (GP_ERR, "plotting in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange);
    3848  }
    3949
     
    8898  GetTimeFormat (&TimeReference, &TimeFormat);
    8999
     100  int Nfound = 0;
     101
    90102  for (j = 0; j < MAX_LIST; j++) {
    91103    i = subset[j];
     
    104116      XY_to_RD (&r, &d, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords);
    105117    }
    106     gprint (GP_LOG, "%3lld %s %8lld %8.4f %8.4f %f %5d %2d %4.2f %5.3f %5.3f\n",
    107             (long long) i, image[i].name, (long long) image[i].imageID, r, d, t, image[i].nstar, image[i].photcode, image[i].secz, image[i].Mcal, image[i].dMcal);
     118    if (VERBOSE) gprint (GP_LOG, "%3lld %s %8lld %8.4f %8.4f %f %5d %2d %4.2f %5.3f %5.3f\n",
     119                         (long long) i, image[i].name, (long long) image[i].imageID, r, d, t, image[i].nstar, image[i].photcode, image[i].secz, image[i].Mcal, image[i].dMcal);
     120
     121    char name[80];
     122    sprintf (name, "imlist:%d", Nfound);
     123    set_str_variable (name, image[i].name);
     124    Nfound ++;
    108125  }
     126  set_int_variable ("imlist:n", Nfound);
    109127
    110128  FreeImagesDVO(image);
Note: See TracChangeset for help on using the changeset viewer.