Changeset 3167 in Sophya for trunk/SophyaExt/FitsIOServer/fitsinoutfile.cc
- Timestamp:
- Feb 2, 2007, 6:46:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsinoutfile.cc
r3069 r3167 337 337 if (CurrentHDU() != 1) return false; 338 338 int naxis = 2; 339 longnaxes[2];339 LONGLONG naxes[2]; 340 340 GetImageHDUInfo(naxis, naxes); 341 341 if ((naxis == 0) && (NbHDUs() > 1)) { … … 347 347 348 348 /*-- Methode --*/ 349 void FitsInOutFile::CreateImageHDU(int bitpix, int naxis, long* naxes)350 { 351 int status = 0; 352 fits_create_img (fptr_, bitpix, naxis, naxes, &status);349 void FitsInOutFile::CreateImageHDU(int bitpix, int naxis, LONGLONG* naxes) 350 { 351 int status = 0; 352 fits_create_imgll(fptr_, bitpix, naxis, naxes, &status); 353 353 FitsCheckStatus(status,"FitsInOutFile::CreateImageHDU() Error: "); 354 354 return; … … 361 361 Rc : return the image type (bitpix) 362 362 */ 363 int FitsInOutFile::GetImageHDUInfo(int& naxis, long* naxes) const363 int FitsInOutFile::GetImageHDUInfo(int& naxis, LONGLONG* naxes) const 364 364 { 365 365 int status = 0; 366 366 int maxdim = naxis; 367 367 int bitpix = 0; 368 fits_get_img_param (fptr_, maxdim, &bitpix, &naxis, naxes, &status);368 fits_get_img_paramll(fptr_, maxdim, &bitpix, &naxis, naxes, &status); 369 369 FitsCheckStatus(status, "FitsInOutFile::GetImageHDUInfo() Error: "); 370 370 return bitpix; … … 372 372 373 373 /*-- Methode --*/ 374 longFitsInOutFile::GetNbRows() const375 { 376 int status = 0; 377 longnbrow = 0;378 fits_get_num_rows (FitsPtr() , &nbrow, &status);374 LONGLONG FitsInOutFile::GetNbRows() const 375 { 376 int status = 0; 377 LONGLONG nbrow = 0; 378 fits_get_num_rowsll(FitsPtr() , &nbrow, &status); 379 379 FitsCheckStatus(status, "FitsInOutFile::GetNbRows() Error: " ); 380 380 return nbrow; … … 466 466 long FitsInOutFile::GetColInfo(vector<string> & colnames, 467 467 vector<int> & coltypes, 468 vector< long> & repcnt,469 vector< long> & width)468 vector<LONGLONG> & repcnt, 469 vector<LONGLONG> & width) 470 470 { 471 471 … … 478 478 479 479 int colnum, typecode; 480 long repeat, colw;480 LONGLONG repeat, colw; // $CHECK$ LONGLONG ??? 481 481 int ncols = 0; 482 482 char colname[128]; // longueur max d'un nom de colonne … … 493 493 } 494 494 int sta2 = 0; 495 fits_get_coltype (FitsPtr(), colnum, &typecode, &repeat, &colw, &sta2);495 fits_get_coltypell(FitsPtr(), colnum, &typecode, &repeat, &colw, &sta2); // $CHECK$ LONGLONG ???fits_get_coltypell 496 496 FitsCheckStatus(sta2, "FitsInOutFile::GetColInfo() Error(2): "); 497 497 … … 608 608 CheckFitsPtr(FitsPtr()); 609 609 char keyname[FLEN_KEYWORD], comm[FLEN_COMMENT], sval[FLEN_VALUE]; 610 longlval;610 LONGLONG lval; 611 611 double dval; 612 612 string s; … … 621 621 case MuTyV::MTVInteger : 622 622 lval = mtv.GetIntPart(); 623 fits_write_key(FitsPtr(), TLONG , keyname, &lval, comm, &status);623 fits_write_key(FitsPtr(), TLONGLONG, keyname, &lval, comm, &status); 624 624 break; 625 625 case MuTyV::MTVFloat :
Note:
See TracChangeset
for help on using the changeset viewer.