Changeset 10864 for trunk/psastro/src/psastroLoadRefstars.c
- Timestamp:
- Jan 1, 2007, 11:03:03 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroLoadRefstars.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroLoadRefstars.c
r10438 r10864 1 1 # include "psastro.h" 2 // int mkstemp(char *template);3 2 # define ELIXIR_MODE 1 4 3 … … 84 83 // convert the Average table to the pmAstromObj entries 85 84 psTimerStart ("psastro"); 86 psArray *refs = psArrayAllocEmpty (table->n);85 psArray *refstars = psArrayAllocEmpty (table->n); 87 86 for (int i = 0; i < table->n; i++) { 88 87 pmAstromObj *ref = pmAstromObjAlloc (); … … 101 100 } 102 101 103 psArrayAdd (refs , 100, ref);102 psArrayAdd (refstars, 100, ref); 104 103 psFree (ref); 105 104 } … … 109 108 110 109 psTrace ("psastro", 3, "loaded %ld reference stars from (%10.6f,%10.6f) - (%10.6f,%10.6f)\n", 111 refs ->n, RAmin, DECmin, RAmax, DECmax);110 refstars->n, RAmin, DECmin, RAmax, DECmax); 112 111 113 return refs; 112 // dump or plot the available refstars 113 if (psTraceGetLevel("psastro.dump") > 0) { 114 psastroDumpRefstars (refstars); 115 } 116 117 if (psTraceGetLevel("psastro.plot") > 0) { 118 psastroPlotRefstars (refstars); 119 } 120 121 return refstars; 114 122 }
Note:
See TracChangeset
for help on using the changeset viewer.
