Changeset 25757 for trunk/Ohana/src/opihi/cmd.astro
- Timestamp:
- Oct 2, 2009, 3:15:42 PM (17 years ago)
- Location:
- trunk/Ohana/src/opihi/cmd.astro
- Files:
-
- 4 edited
- 9 copied
-
Makefile (modified) (2 diffs)
-
cdot.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.astro/cdot.c )
-
cgrid.c (modified) (2 diffs)
-
elliprofile.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.astro/elliprofile.c )
-
galcontour.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.astro/galcontour.c )
-
galprofiles.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.astro/galprofiles.c )
-
galradbins.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.astro/galradbins.c )
-
galradius.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.astro/galradius.c )
-
galsectors.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.astro/galsectors.c )
-
init.c (modified) (4 diffs)
-
mksersic.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.astro/mksersic.c )
-
petrosian.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.astro/petrosian.c )
-
region.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/Makefile
r21061 r25757 21 21 $(SRC)/cgrid.$(ARCH).o \ 22 22 $(SRC)/coords.$(ARCH).o \ 23 $(SRC)/cdot.$(ARCH).o \ 23 24 $(SRC)/cplot.$(ARCH).o \ 24 25 $(SRC)/csystem.$(ARCH).o \ … … 36 37 $(SRC)/medianmap.$(ARCH).o \ 37 38 $(SRC)/mkgauss.$(ARCH).o \ 39 $(SRC)/mksersic.$(ARCH).o \ 40 $(SRC)/galradius.$(ARCH).o \ 41 $(SRC)/galradbins.$(ARCH).o \ 42 $(SRC)/galsectors.$(ARCH).o \ 43 $(SRC)/galprofiles.$(ARCH).o \ 44 $(SRC)/elliprofile.$(ARCH).o \ 45 $(SRC)/petrosian.$(ARCH).o \ 38 46 $(SRC)/multifit.$(ARCH).o \ 39 47 $(SRC)/objload.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.astro/cgrid.c
r20936 r25757 37 37 /* set spacings for RA */ 38 38 minorRA = minorDEC = 0.1; 39 range = MIN (fabs(graphmode. xmax-graphmode.xmin), fabs(graphmode.ymax-graphmode.ymin));39 range = MIN (fabs(graphmode.coords.cdelt1*(graphmode.xmax-graphmode.xmin)), fabs(graphmode.coords.cdelt2*(graphmode.ymax-graphmode.ymin))); 40 40 if (NorthPole || SouthPole) range = 360; 41 41 lrange = log10(MAX(fabs(range), 1e-30)); … … 58 58 } 59 59 dR = range / 100.0; 60 60 61 /* set spacings for DEC */ 61 range = MIN (fabs(graphmode. xmax-graphmode.xmin), fabs(graphmode.ymax-graphmode.ymin));62 range = MIN (fabs(graphmode.coords.cdelt1*(graphmode.xmax-graphmode.xmin)), fabs(graphmode.coords.cdelt2*(graphmode.ymax-graphmode.ymin))); 62 63 lrange = log10(MAX(fabs(range), 1e-30)); 63 64 factor = (int) (lrange); -
trunk/Ohana/src/opihi/cmd.astro/init.c
r21061 r25757 5 5 int cgrid PROTO((int, char **)); 6 6 int coords PROTO((int, char **)); 7 int cdot PROTO((int, char **)); 7 8 int cplot PROTO((int, char **)); 8 9 int csystem PROTO((int, char **)); … … 22 23 int imsub PROTO((int, char **)); 23 24 int medianmap PROTO((int, char **)); 25 int galsectors PROTO((int, char **)); 26 int galprofiles PROTO((int, char **)); 27 int galradius PROTO((int, char **)); 28 int galradbins PROTO((int, char **)); 29 int elliprofile PROTO((int, char **)); 30 int petrosian PROTO((int, char **)); 24 31 int mkgauss PROTO((int, char **)); 32 int mksersic PROTO((int, char **)); 25 33 int multifit PROTO((int, char **)); 26 34 int objload PROTO((int, char **)); … … 44 52 {1, "cgrid", cgrid, "plot sky coordinate grid"}, 45 53 {1, "coords", coords, "load coordinates for buffer from file"}, 54 {1, "cdot", cdot, "plot point in sky coordinates"}, 46 55 {1, "cplot", cplot, "plot vectors in sky coordinates"}, 47 56 {1, "csystem", csystem, "convert between coordinate systems"}, … … 61 70 {1, "medianmap", medianmap, "small median image"}, 62 71 {1, "mkgauss", mkgauss, "generate a 2-D gaussian centered in image"}, 72 {1, "mksersic", mksersic, "generate a 2-D sersic profile"}, 73 {1, "galsectors", galsectors, "generate radial vectors for sectors of width dtheta"}, 74 {1, "galprofiles", galprofiles, "generate radial vectors with interpolation along paths"}, 75 {1, "galradius", galradius, "generate radial vectors with interpolation along paths"}, 76 {1, "galradbins", galradbins, "generate radial vectors with interpolation along paths"}, 77 {1, "elliprofile", elliprofile, "generate radial vectors with interpolation along paths"}, 78 {1, "petrosian", petrosian, "petrosian parameters given radial bins"}, 63 79 {1, "multifit", multifit, "fit multi-order spectrum"}, 64 80 {1, "objload", objload, "plot obj data on Ximage "}, -
trunk/Ohana/src/opihi/cmd.astro/region.c
r14590 r25757 6 6 double Ra, Dec, Radius; 7 7 float dx, dy; 8 int N, kapa ;8 int N, kapa, NoClear; 9 9 char *name; 10 10 Graphdata graphmode; … … 46 46 remove_argument (N, &argc, argv); 47 47 graphmode.flipnorth = FALSE; 48 } 49 50 NoClear = FALSE; 51 if ((N = get_argument (argc, argv, "-no-clear"))) { 52 remove_argument (N, &argc, argv); 53 NoClear = TRUE; 48 54 } 49 55 … … 122 128 graphmode.coords.cdelt1 = graphmode.coords.cdelt2 = 1.0; 123 129 124 KapaClearSections (kapa);130 if (!NoClear) KapaClearSections (kapa); 125 131 KapaSetLimits (kapa, &graphmode); 126 132 127 133 /* drop this? */ 128 sprintf (string, "%8.4f %8.4f (%f)", Ra, Dec, Radius);129 KapaSendLabel (kapa, string, 2);134 // sprintf (string, "%8.4f %8.4f (%f)", Ra, Dec, Radius); 135 // KapaSendLabel (kapa, string, 2); 130 136 131 137 // XXX is this the right thing to be doing?
Note:
See TracChangeset
for help on using the changeset viewer.
