Changeset 2170 in Sophya for trunk/SophyaExt/FitsIOServer/fabtwriter.cc
- Timestamp:
- Aug 9, 2002, 3:03:41 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fabtwriter.cc
r2169 r2170 306 306 \endverbatim 307 307 */ 308 void FitsABTWriter::Write(int col,long row, shortval)308 void FitsABTWriter::Write(int col,long row,int_2 val) 309 309 { 310 310 if(FirstTime) createtbl(); … … 312 312 if(fits_write_col(FitsPtr,TSHORT,col+1,row+1,1,1,&val,&sta)) 313 313 printerrorwrite("short",col,row,sta); 314 } 315 316 /*! Write unsigned short (2 Bytes) data to FITS file (see below) */ 317 void FitsABTWriter::Write(int col,long row,uint_2 val) 318 { 319 if(FirstTime) createtbl(); 320 int sta=0; 321 if(fits_write_col(FitsPtr,TUSHORT,col+1,row+1,1,1,&val,&sta)) 322 printerrorwrite("unsigned short",col,row,sta); 314 323 } 315 324 … … 365 374 that is "N-1" is the number of the last row written. 366 375 */ 376 /*! Write a vector of unsigned short (2 Bytes) data to FITS file (see below) */ 377 long FitsABTWriter::Write(int col,long row,TVector<uint_2>& val) 378 { 379 if(FirstTime) createtbl(); 380 long nel = val.Size(); 381 int sta=0; 382 if(fits_write_col(FitsPtr,TUSHORT,col+1,row+1,1,nel,val.Data(),&sta)) 383 printerrorwrite("long",col,row,sta); 384 return row+nel; 385 } 386 367 387 /*! Write a vector of long (4 Bytes) data to FITS file (see below) */ 368 388 long FitsABTWriter::Write(int col,long row,TVector<int_4>& val) … … 389 409 return row+nel; 390 410 #else 391 throw PException("FitsABTWriter::Write(..,TVector<int_8>&) Not in that cfit io version");411 throw PException("FitsABTWriter::Write(..,TVector<int_8>&) Not in that cfitsio version"); 392 412 #endif 393 413 }
Note:
See TracChangeset
for help on using the changeset viewer.