Changeset 41340 for trunk/Ohana/src/opihi/cmd.astro/csystem.c
- Timestamp:
- Apr 16, 2020, 1:54:47 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/csystem.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/csystem.c
r41305 r41340 12 12 Vector *uxvec = NULL; 13 13 Vector *uyvec = NULL; 14 15 int Quiet = FALSE;16 if ((N = get_argument (argc, argv, "-q"))) {17 Quiet = TRUE;18 remove_argument (N, &argc, argv);19 }20 if ((N = get_argument (argc, argv, "-quiet"))) {21 Quiet = TRUE;22 remove_argument (N, &argc, argv);23 }24 14 25 15 // transform proper motions at the same time … … 94 84 95 85 if (uXname) { 96 if (!Quiet) { 97 gprint (GP_LOG, "%10.6f %10.6f @ %10.6f %10.6f\n", x, y, ux, uy); 98 switch (output) { 99 case COORD_CELESTIAL: 100 set_variable ("uR", ux); 101 set_variable ("uD", uy); 102 break; 103 case COORD_ECLIPTIC: 104 set_variable ("uL", ux); 105 set_variable ("uB", uy); 106 break; 107 case COORD_GALACTIC: 108 case COORD_GALACTIC_REID_2004: 109 set_variable ("uLon", ux); 110 set_variable ("uLat", uy); 111 break; 112 default: 113 break; 114 } 115 } 86 gprint (GP_LOG, "%10.6f %10.6f @ %10.6f %10.6f\n", x, y, ux, uy); 116 87 } else { 117 if (!Quiet) { 118 gprint (GP_LOG, "%10.6f %10.6f\n", x, y); 119 } 120 } 121 switch (output) { 122 case COORD_CELESTIAL: 123 set_variable ("RA", x); 124 set_variable ("DEC", y); 125 break; 126 case COORD_ECLIPTIC: 127 set_variable ("Lambda", x); 128 set_variable ("Beta", y); 129 break; 130 case COORD_GALACTIC: 131 case COORD_GALACTIC_REID_2004: 132 set_variable ("gLon", x); 133 set_variable ("gLat", y); 134 break; 135 default: 136 break; 88 gprint (GP_LOG, "%10.6f %10.6f\n", x, y); 137 89 } 138 90 free (transform); … … 202 154 gprint (GP_ERR, " e.g. : csystem C G R D -pm uR uD -> R D will contain glon, glat; uR, uD will contain uL, uB\n"); 203 155 gprint (GP_ERR, " e.g. : csystem C G R D -pmback uL uB -> R D will contain glon, glat; uL, uB will contain uR, uD\n"); 204 gprint (GP_ERR, " : if input values are vectors, their values are replaced with the transformed values\n");205 gprint (GP_ERR, " : if input values are scalars, the transformed coordinates are printed (disable with -q)\n");206 gprint (GP_ERR, " : and the following output variables will be set (names depend on output system)\n");207 gprint (GP_ERR, " : output positions (RA, DEC), (Lambda, Beta), (gLon, gLat)\n");208 gprint (GP_ERR, " : output motions (uR, uD), (uL, uB), (uLon, uLat)\n");209 156 return FALSE; 210 157 }
Note:
See TracChangeset
for help on using the changeset viewer.
