IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2015, 4:16:29 PM (11 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20151113

Location:
trunk
Files:
7 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/Ohana

  • trunk/Ohana/src/opihi/cmd.astro

  • trunk/Ohana/src/opihi/cmd.astro/Makefile

    r39169 r39225  
    2323$(SRC)/cdot.$(ARCH).o              \
    2424$(SRC)/cline.$(ARCH).o             \
     25$(SRC)/cneedles.$(ARCH).o                  \
    2526$(SRC)/cplot.$(ARCH).o             \
    2627$(SRC)/csystem.$(ARCH).o           \
     
    7677$(SRC)/vshimage.$(ARCH).o         \
    7778$(SRC)/shimage.$(ARCH).o         \
     79$(SRC)/wcs.$(ARCH).o         \
    7880$(SRC)/imsub.$(ARCH).o             \
    7981$(SRC)/imfit.$(ARCH).o             \
  • trunk/Ohana/src/opihi/cmd.astro/drizzle.c

    r19823 r39225  
    141141
    142142          if (Vmk && Vmk[Ni]) continue;
     143          if (!isfinite(Vin[Ni])) continue;
     144
    143145          Vout[No] += Vin[Ni];
    144146          Vwt[No] ++;
     
    195197
    196198          if (Vmk && Vmk[Ni]) continue;
     199          if (!isfinite(Vin[Ni])) continue;
    197200          Vout[No] += Vin[Ni];
    198201          Vwt[No] ++;
  • trunk/Ohana/src/opihi/cmd.astro/init.c

    r39169 r39225  
    77int cdot                    PROTO((int, char **));
    88int cline                   PROTO((int, char **));
     9int cneedles                PROTO((int, char **));
    910int cplot                   PROTO((int, char **));
    1011int csystem                 PROTO((int, char **));
     
    6667int vshimage                PROTO((int, char **));
    6768int shimage                 PROTO((int, char **));
     69int wcs                     PROTO((int, char **));
    6870
    6971static Command cmds[] = { 
     
    7476  {1, "cdot",        cdot,         "plot point in sky coordinates"},
    7577  {1, "cline",       cline,        "plot line connecting two sky coordinates"},
     78  {1, "cneedles",    cneedles,     "plot vectors in sky coordinates"},
    7679  {1, "cplot",       cplot,        "plot vectors in sky coordinates"},
    7780  {1, "csystem",     csystem,      "convert between coordinate systems"},
     
    131134  {1, "vshimage",    vshimage,     "generate images for vector spherical harmonic terms"},
    132135  {1, "shimage",     shimage,      "generate images for spherical harmonic terms"},
     136  {1, "wcs",         wcs,          "set the wcs for the given image"},
    133137};
    134138
  • trunk/Ohana/src/opihi/cmd.astro/region.c

    r37807 r39225  
    7474  }
    7575
     76  float Angle = 0.0;
     77  if ((N = get_argument (argc, argv, "-angle"))) {
     78    remove_argument (N, &argc, argv);
     79    Angle = atof(argv[N]);
     80    remove_argument (N, &argc, argv);
     81  }
     82
    7683  if ((argc != 4) && (argc != 5)) {
    7784    gprint (GP_ERR, "USAGE: region Ra Dec Radius [projection] [orientation]\n");
    78     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");
    7986    gprint (GP_ERR, " current: %f %f (%f x %f) (%s)\n",
    8087             graphmode.coords.crval1, graphmode.coords.crval2,
     
    111118  graphmode.coords.crval2 = Dec;
    112119
    113   graphmode.coords.pc1_1 = (graphmode.flipeast) ? -1 : 1;
    114   graphmode.coords.pc2_2 = (graphmode.flipnorth) ? -1 : 1;
     120  float pc1_1 = (graphmode.flipeast)  ? -1 : 1;
     121  float pc2_2 = (graphmode.flipnorth) ? -1 : 1;
     122
     123  graphmode.coords.pc1_1 =  cos(Angle*RAD_DEG)*pc1_1;
     124  graphmode.coords.pc1_2 =  sin(Angle*RAD_DEG)*pc2_2;
     125  graphmode.coords.pc2_1 = -sin(Angle*RAD_DEG)*pc1_1;
     126  graphmode.coords.pc2_2 =  cos(Angle*RAD_DEG)*pc2_2;
    115127
    116128  /* ask kapa for coordinate limits, to get the right aspect ratio */
Note: See TracChangeset for help on using the changeset viewer.