Changeset 41305 for trunk/Ohana/src/opihi/cmd.astro/csystem.c
- Timestamp:
- Mar 10, 2020, 10:52:25 AM (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
r39926 r41305 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 } 14 24 15 25 // transform proper motions at the same time … … 84 94 85 95 if (uXname) { 86 gprint (GP_LOG, "%10.6f %10.6f @ %10.6f %10.6f\n", x, y, ux, uy); 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 } 87 116 } else { 88 gprint (GP_LOG, "%10.6f %10.6f\n", x, y); 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; 89 137 } 90 138 free (transform); … … 154 202 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"); 155 203 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"); 156 209 return FALSE; 157 210 }
Note:
See TracChangeset
for help on using the changeset viewer.
