Changeset 4024 in Sophya for trunk/SophyaExt/FitsIOServer/fabtwriter.cc
- Timestamp:
- Oct 2, 2011, 10:46:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fabtwriter.cc
r4023 r4024 398 398 \param tform : fits tform definition ("1I","1J","1E","1J",...) 399 399 (can be automatically set as "datatype" 400 if BINARY_TBL and tform="" or tform=NULL) 400 if BINARY_TBL and tform="" or tform=NULL). 401 character string can be written using the tform=":nA" with "n" the number of characters 401 402 \param tunit : fits tunit definition (optional) 402 403 \param datatype : TBYTE TSHORT TLONG (TINT32BIT) TLONGLONG TFLOAT TDOUBLE … … 549 550 */ 550 551 552 /*! Write a character string to FITS file */ 553 void FitsABTWriter::Write(int col,LONGLONG row,const char* val) 554 { 555 if(FirstTime) createtbl(); 556 int sta=0; 557 if(fits_write_col(FitsPtr,TSTRING,col+1,row+1,1,1,&val,&sta)) 558 printerrorwrite("char*",col,row,sta); 559 } 560 551 561 /*! Write signed char (1 Byte) data to FITS file (see below) */ 552 562 void FitsABTWriter::Write(int col,LONGLONG row,long nfirstel,int_1 val)
Note:
See TracChangeset
for help on using the changeset viewer.