Changeset 28003 for branches/pap/ippToPsps/src/ippToPspsConfig.c
- Timestamp:
- May 18, 2010, 12:49:05 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippToPsps/src/ippToPspsConfig.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ippToPsps/src/ippToPspsConfig.c
r27701 r28003 737 737 if (fromHeader) { 738 738 fits_read_key(fitsIn, TBYTE, table->columns[i].ippName, &int8col[0], NULL, &readStatus); 739 if (!is normal(int8col[0])) int8col[0] = int8null;739 if (!isfinite(int8col[0])) int8col[0] = int8null; 740 740 } 741 741 else fits_read_col(fitsIn, TBYTE, table->columns[i].ippColNum, 1, 1, nRows, &int8null, int8col, &anynull, &readStatus); … … 745 745 if (fromHeader) { 746 746 fits_read_key(fitsIn, TSHORT, table->columns[i].ippName, &int16col[0], NULL, &readStatus); 747 if (!is normal(int16col[0])) int16col[0] = int16null;747 if (!isfinite(int16col[0])) int16col[0] = int16null; 748 748 } 749 749 else fits_read_col(fitsIn, TSHORT, table->columns[i].ippColNum, 1, 1, nRows, &int16null, int16col, &anynull, &readStatus); … … 753 753 if (fromHeader) { 754 754 fits_read_key(fitsIn, TLONG, table->columns[i].ippName, &longcol[0], NULL, &readStatus); 755 if (!is normal(longcol[0])) longcol[0] = longnull;755 if (!isfinite(longcol[0])) longcol[0] = longnull; 756 756 } 757 757 else fits_read_col(fitsIn, TLONG, table->columns[i].ippColNum, 1, 1, nRows, &longnull, longcol, &anynull, &readStatus); … … 761 761 if (fromHeader) { 762 762 fits_read_key(fitsIn, TLONGLONG, table->columns[i].ippName, &longcol[0], NULL, &readStatus); 763 if (!is normal(longcol[0])) longcol[0] = longnull;763 if (!isfinite(longcol[0])) longcol[0] = longnull; 764 764 } 765 765 else fits_read_col(fitsIn, TLONGLONG, table->columns[i].ippColNum, 1, 1, nRows, &longnull, longcol, &anynull, &readStatus); … … 769 769 if (fromHeader) { 770 770 fits_read_key(fitsIn, TFLOAT, table->columns[i].ippName,&floatcol[0], NULL, &readStatus); 771 if (!is normal(floatcol[0])) floatcol[0] = floatnull;771 if (!isfinite(floatcol[0])) floatcol[0] = floatnull; 772 772 } 773 773 else fits_read_col(fitsIn, TFLOAT, table->columns[i].ippColNum, 1, 1, nRows, &floatnull, floatcol, &anynull, &readStatus); … … 777 777 if (fromHeader) { 778 778 fits_read_key(fitsIn, TDOUBLE, table->columns[i].ippName, &doublecol[0], NULL, &readStatus); 779 if (!is normal(doublecol[0])) doublecol[0] = doublenull;779 if (!isfinite(doublecol[0])) doublecol[0] = doublenull; 780 780 } 781 781 else fits_read_col(fitsIn, TDOUBLE, table->columns[i].ippColNum, 1, 1, nRows, &doublenull, doublecol, &anynull, &readStatus); … … 795 795 796 796 // TODO need these errors, but strange error handling runs out of memory 797 //if (readStatus) psError(PS_ERR_IO, false, "Unable to read col num '%d' col name '%s'", table->columns[i].ippColNum, table->columns[i].ippName ); 798 //if (writeStatus) psError(PS_ERR_IO, false, "Unable to write col '%s'", table->columns[i].pspsName ); 797 //if (readStatus) { 798 // psError(PS_ERR_IO, false, "Unable to read col num '%d' col name '%s', type %d", 799 // table->columns[i].ippColNum, table->columns[i].ippName, table->columns[i].ippType); 800 // fits_report_error(stderr, readStatus); 801 //} 802 //if (writeStatus) { 803 // psError(PS_ERR_IO, false, "Unable to write col '%s'", table->columns[i].pspsName ); 804 // fits_report_error(stderr, writeStatus); 805 //} 799 806 } 800 807 }
Note:
See TracChangeset
for help on using the changeset viewer.
