Changeset 39225 for trunk/Ohana/src/opihi/cmd.astro
- Timestamp:
- Dec 3, 2015, 4:16:29 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
- 2 copied
-
. (modified) (1 prop)
-
Ohana (modified) (1 prop)
-
Ohana/src/opihi/cmd.astro (modified) (1 prop)
-
Ohana/src/opihi/cmd.astro/Makefile (modified) (2 diffs)
-
Ohana/src/opihi/cmd.astro/cneedles.c (copied) (copied from branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/cneedles.c )
-
Ohana/src/opihi/cmd.astro/drizzle.c (modified) (2 diffs)
-
Ohana/src/opihi/cmd.astro/init.c (modified) (4 diffs)
-
Ohana/src/opihi/cmd.astro/region.c (modified) (2 diffs)
-
Ohana/src/opihi/cmd.astro/wcs.c (copied) (copied from branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/wcs.c )
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20151113 (added) merged: 39135-39136,39166,39182-39185,39193-39208,39211-39215,39218-39224
- Property svn:mergeinfo changed
-
trunk/Ohana
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20151113/Ohana (added) merged: 39166,39182-39185,39193-39208,39211-39215,39218-39224
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/cmd.astro
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro (added) merged: 39166,39183,39194,39199,39223
- Property svn:mergeinfo changed
-
trunk/Ohana/src/opihi/cmd.astro/Makefile
r39169 r39225 23 23 $(SRC)/cdot.$(ARCH).o \ 24 24 $(SRC)/cline.$(ARCH).o \ 25 $(SRC)/cneedles.$(ARCH).o \ 25 26 $(SRC)/cplot.$(ARCH).o \ 26 27 $(SRC)/csystem.$(ARCH).o \ … … 76 77 $(SRC)/vshimage.$(ARCH).o \ 77 78 $(SRC)/shimage.$(ARCH).o \ 79 $(SRC)/wcs.$(ARCH).o \ 78 80 $(SRC)/imsub.$(ARCH).o \ 79 81 $(SRC)/imfit.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.astro/drizzle.c
r19823 r39225 141 141 142 142 if (Vmk && Vmk[Ni]) continue; 143 if (!isfinite(Vin[Ni])) continue; 144 143 145 Vout[No] += Vin[Ni]; 144 146 Vwt[No] ++; … … 195 197 196 198 if (Vmk && Vmk[Ni]) continue; 199 if (!isfinite(Vin[Ni])) continue; 197 200 Vout[No] += Vin[Ni]; 198 201 Vwt[No] ++; -
trunk/Ohana/src/opihi/cmd.astro/init.c
r39169 r39225 7 7 int cdot PROTO((int, char **)); 8 8 int cline PROTO((int, char **)); 9 int cneedles PROTO((int, char **)); 9 10 int cplot PROTO((int, char **)); 10 11 int csystem PROTO((int, char **)); … … 66 67 int vshimage PROTO((int, char **)); 67 68 int shimage PROTO((int, char **)); 69 int wcs PROTO((int, char **)); 68 70 69 71 static Command cmds[] = { … … 74 76 {1, "cdot", cdot, "plot point in sky coordinates"}, 75 77 {1, "cline", cline, "plot line connecting two sky coordinates"}, 78 {1, "cneedles", cneedles, "plot vectors in sky coordinates"}, 76 79 {1, "cplot", cplot, "plot vectors in sky coordinates"}, 77 80 {1, "csystem", csystem, "convert between coordinate systems"}, … … 131 134 {1, "vshimage", vshimage, "generate images for vector spherical harmonic terms"}, 132 135 {1, "shimage", shimage, "generate images for spherical harmonic terms"}, 136 {1, "wcs", wcs, "set the wcs for the given image"}, 133 137 }; 134 138 -
trunk/Ohana/src/opihi/cmd.astro/region.c
r37807 r39225 74 74 } 75 75 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 76 83 if ((argc != 4) && (argc != 5)) { 77 84 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"); 79 86 gprint (GP_ERR, " current: %f %f (%f x %f) (%s)\n", 80 87 graphmode.coords.crval1, graphmode.coords.crval2, … … 111 118 graphmode.coords.crval2 = Dec; 112 119 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; 115 127 116 128 /* ask kapa for coordinate limits, to get the right aspect ratio */
Note:
See TracChangeset
for help on using the changeset viewer.
