Changeset 27435 for trunk/Ohana/src/imregister/spreg/output.c
- Timestamp:
- Mar 24, 2010, 11:22:25 AM (16 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/imregister/spreg/output.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/20091201/Ohana merged eligible /branches/eam_branches/largefiles.20100314/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/imregister/spreg/output.c
r14590 r27435 14 14 15 15 /* given a subset list, write out the selected spectra, if desired */ 16 void OutputSubset (Spectrum *spectrum, int Nspectra, int *match, int Nmatch) {16 void OutputSubset (Spectrum *spectrum, off_t Nspectra, off_t *match, off_t Nmatch) { 17 17 18 18 if (output.table != (char *) NULL) { … … 29 29 30 30 /* write out complete binary FITS table in format of db */ 31 void DumpFitsBintable (char *filename, Spectrum *spectrum, int *match, int Nmatch) {31 void DumpFitsBintable (char *filename, Spectrum *spectrum, off_t *match, off_t Nmatch) { 32 32 33 int i, j;33 off_t i, j; 34 34 FILE *f; 35 35 Header header; … … 72 72 73 73 /* write out an ASCII table */ 74 void DumpFitsTable (char *filename, Spectrum *spectrum, int *match, int Nmatch) {74 void DumpFitsTable (char *filename, Spectrum *spectrum, off_t *match, off_t Nmatch) { 75 75 76 int i;76 off_t i; 77 77 char *obsstr, *regstr, *line, *datestr; 78 78 time_t tsecond; … … 141 141 142 142 /* Select, TimeMode are global */ 143 int PrintSubset (Spectrum *spectrum, int *match, int Nmatch) {143 int PrintSubset (Spectrum *spectrum, off_t *match, off_t Nmatch) { 144 144 145 int i, j;145 off_t i, j; 146 146 char *timestr; 147 147 … … 153 153 154 154 /* predefined subset of values */ 155 fprintf (stdout, "%5 d %20s %s %s %s %s ",i, timestr, spectrum[i].pathname, spectrum[i].filename, spectrum[i].objname, spectrum[i].telescope);155 fprintf (stdout, "%5lld %20s %s %s %s %s ", (long long) i, timestr, spectrum[i].pathname, spectrum[i].filename, spectrum[i].objname, spectrum[i].telescope); 156 156 fprintf (stdout, "%5.1f %5.3f %.1f %.1f %.2f\n", spectrum[i].exptime, spectrum[i].airmass, spectrum[i].Ws, spectrum[i].We, spectrum[i].dW); 157 157 … … 161 161 } 162 162 163 int dump_data (Spectrum *spectrum, int Nspectrum) {163 int dump_data (Spectrum *spectrum, off_t Nspectrum) { 164 164 165 int i;165 off_t i; 166 166 167 167 for (i = 0; i < Nspectrum; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
