Changeset 15335 for trunk/psLib/src/fits/psFits.c
- Timestamp:
- Oct 19, 2007, 1:52:39 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/fits/psFits.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFits.c
r15179 r15335 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.7 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-10- 03 21:27:21$9 * @version $Revision: 1.73 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-10-19 23:52:39 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 163 163 fits->extword = NULL; 164 164 fits->conventions.compression = true; 165 fits->conventions.psBitpix = true; 166 fits->bscale = 0.0; 167 fits->bzero = 0.0; 165 168 psMemSetDeallocator(fits,(psFreeFunc)fitsFree); 166 169 … … 397 400 { 398 401 PS_ASSERT_FITS_NON_NULL(fits, false); 399 400 if (! fits->writable) { 401 psError(PS_ERR_IO, true, 402 _("The psFits object is not writable.")); 403 return false; 404 } 402 PS_ASSERT_FITS_WRITABLE(fits, false); 405 403 406 404 // move to the specified HDU … … 431 429 { 432 430 PS_ASSERT_FITS_NON_NULL(fits, false); 431 PS_ASSERT_FITS_WRITABLE(fits, false); 433 432 PS_ASSERT_STRING_NON_EMPTY(extname, false); 434 435 if (! fits->writable) {436 psError(PS_ERR_IO, true,437 _("The psFits object is not writable."));438 return false;439 }440 433 441 434 // move to the specified HDU … … 509 502 bool psFitsTruncate(psFits* fits) 510 503 { 511 PS_ASSERT_FITS_NON_NULL(fits, NULL); 512 513 if (! fits->writable) { 514 psError(PS_ERR_IO, true, 515 _("The psFits object is not writable.")); 516 return PS_FITS_TYPE_NONE; 517 } 504 PS_ASSERT_FITS_NON_NULL(fits, false); 505 PS_ASSERT_FITS_WRITABLE(fits, false); 518 506 519 507 int newEnd = psFitsGetExtNum(fits); … … 547 535 { 548 536 PS_ASSERT_FITS_NON_NULL(fits, false); 537 PS_ASSERT_FITS_WRITABLE(fits, false); 549 538 550 539 // convert psFitsCompressionType to cfitsio compression types
Note:
See TracChangeset
for help on using the changeset viewer.
