| 1 |
Changes for CCfits 2.7 |
| 2 |
|
| 3 |
- New function HDU::addKeyNull() for creating keywords with null |
| 4 |
values (ie. CFITSIO's fits_write_key_null() functionality). Existing |
| 5 |
keywords with null values can now also be modified. |
| 6 |
HDU.cxx, .h |
| 7 |
Keyword.cxx, .h |
| 8 |
KeywordCreator.cxx, .h |
| 9 |
KeyData.cxx, .h |
| 10 |
|
| 11 |
Changes for CCfits 2.6 |
| 12 |
|
| 13 |
- For compatibility with C++17, removed dependencies on |
| 14 |
std::binary_function (4/21). |
| 15 |
FITSUtil.h |
| 16 |
|
| 17 |
- The internal HDU getScaling function is not properly handling the |
| 18 |
case where an image of unsigned integer type has a BZERO keyword |
| 19 |
but not a BSCALE. The result is it wrongly assumes the image |
| 20 |
is a signed integer type.(4/21) |
| 21 |
HDUCreator.cxx |
| 22 |
|
| 23 |
- The keyword categories hardcoded and returned by the |
| 24 |
HDU::keywordCategories() function now apply only to the |
| 25 |
HDU::copyAllKeys() function. HDU::readAllKeys() is hardcoded |
| 26 |
to a separate (and larger) list of categories. This is to allow |
| 27 |
readAllKeys() to retain its previous behavior, while copyAllKeys() |
| 28 |
default categories have been narrowed (see items below from 06-07/18). |
| 29 |
(03/21) |
| 30 |
HDU.cxx |
| 31 |
HDU.h |
| 32 |
|
| 33 |
- Fixes to updating of Columns' internal buffers for certain cases |
| 34 |
of writes or insertions which add rows to a table. Also includes a |
| 35 |
speed increase to internal Column write function. (03/21) |
| 36 |
Column.h |
| 37 |
ColumnData.h |
| 38 |
ColumnVectorData.h |
| 39 |
Table.cxx |
| 40 |
|
| 41 |
- Bug fix needed for creation of ColumnVectorData<unsigned short> |
| 42 |
objects. (06/20) |
| 43 |
Column.cxx |
| 44 |
|
| 45 |
- All std::bad_cast exceptions are now caught by reference. (09/19) |
| 46 |
Column.cxx |
| 47 |
ColumnT.h |
| 48 |
FITS.cxx |
| 49 |
KeywordT.h |
| 50 |
PHDUT.h |
| 51 |
|
| 52 |
- Enable support of long string keywords (which use the CONTINUE key) |
| 53 |
(8/18) |
| 54 |
HDU.cxx,.h |
| 55 |
KeyData.cxx,.h |
| 56 |
Keyword.cxx,.h |
| 57 |
KeywordCreator.cxx,.h |
| 58 |
NewKeyword.h |
| 59 |
|
| 60 |
- Replaced all uses of std::auto_ptr with std::unique_ptr. This is made |
| 61 |
in tandem with configuration changes which add a C++11 compiler flag |
| 62 |
when necessary. (08/18) |
| 63 |
FITS.cxx |
| 64 |
HDU.cxx |
| 65 |
cookbook.cxx |
| 66 |
|
| 67 |
- Added capability for user to specify keyword categories to read/copy. |
| 68 |
Removed TYP_WCS_KEY,TYP_CMPRS_KEY from s_iKeywordCategories, as they are |
| 69 |
file-specific keywords. (7/18) |
| 70 |
HDU.cxx, .h |
| 71 |
|
| 72 |
- Bug fix to writeHistory and writeComment functions. When copying via |
| 73 |
the get/write functions, mult-line input was not properly formatted upon |
| 74 |
output. (07/18) |
| 75 |
HDU.cxx |
| 76 |
|
| 77 |
- Removed FITSBase pattern (10/17) |
| 78 |
FITSBase.cxx, .h |
| 79 |
FITS.cxx, .h |
| 80 |
../BUILD_DIR/Makefile-CCfits |
| 81 |
ExtHDU.cxx, .h |
| 82 |
HDU.cxx, .h |
| 83 |
CMakeLists.txt |
| 84 |
HDUCreator.cxx, .h |
| 85 |
Table.cxx, .h |
| 86 |
AsciiTable.cxx, .h |
| 87 |
BinTable.cxx, .h |
| 88 |
PHDU.cxx, .h |
| 89 |
PrimaryHDU.h |
| 90 |
GroupTable.cxx, .h |
| 91 |
ImageExt.h |
| 92 |
|
| 93 |
- Removed TYP_CKSUM_KEY from s_iKeywordCategories. It was copying the |
| 94 |
CHECKSUM and DATASUM keywords from the infile to the outfile, which leads to |
| 95 |
incorrect values for the outfile. (6/17) |
| 96 |
HDU.cxx, .h |
| 97 |
|
| 98 |
- In 'CCfits' header aggregator file, added special treatment for |
| 99 |
cookbook build. This is to allow the stand-alone CCfits to build the |
| 100 |
cookbook even when build directory is not named "CCfits". (8/16) |
| 101 |
cookbook.cxx |
| 102 |
CCfits |
| 103 |
|
| 104 |
Changes for CCfits 2.5 |
| 105 |
- For reading Keywords, added conversion of numerical types to strings. |
| 106 |
(12/15) |
| 107 |
Keyword.cxx, .h |
| 108 |
KeywordT.h |
| 109 |
- Added support for variable-width string columns (12/15) |
| 110 |
CCfits.h |
| 111 |
Column.cxx, .h |
| 112 |
ColumnCreator.cxx |
| 113 |
ColumnData.cxx, .h |
| 114 |
BinTable.cxx |
| 115 |
- Added new ExtHDU::copyColumn function, implemented in the Table |
| 116 |
class. (11/15) |
| 117 |
AsciiTable.cxx |
| 118 |
BinTable.cxx |
| 119 |
Column.cxx, .h |
| 120 |
ExtHDU.cxx, .h |
| 121 |
Table.cxx, .h |
| 122 |
(This also required a conforming change to editcol.c in CFITSIO.) |
| 123 |
- Changed the Column container member of the Table class from a map |
| 124 |
to a multimap (now typedefed to 'ColMap'). This is to allow proper |
| 125 |
handling of case where multiple columns within table share the same |
| 126 |
name. NOTE: This resulted in a change to the public interface: |
| 127 |
ExtHDU and Table column() accessor functions now return a multimap. (10/15) |
| 128 |
AsciiTable.cxx |
| 129 |
BinTable.cxx |
| 130 |
CCfits.h |
| 131 |
ExtHDU.cxx, .h |
| 132 |
FITS.cxx |
| 133 |
Table.cxx, .h |
| 134 |
- Removed the ImageExt::image() accessor function from the public |
| 135 |
interface. This was intended for internal use only. (10/15) |
| 136 |
ImageExt.h |
| 137 |
- Now allows image write calls to expand the outer-most (NAXISN) |
| 138 |
dimension of the image. This was a feature of CFITSIO that wasn't |
| 139 |
previously supported in CCfits. (10/15) |
| 140 |
(same files as in following entry below) |
| 141 |
- Implemented full-read internal caching for images. Previously |
| 142 |
image read calls resulted in disk reads even when current values |
| 143 |
were available in memory. (10/15) |
| 144 |
PrimaryHDU.h |
| 145 |
Image.h |
| 146 |
PHDUT.h |
| 147 |
ImageExt.h |
| 148 |
ExtHDUT.h |
| 149 |
HDU.h |
| 150 |
- Fix to ColumnData::writeData. It should not resize the internal |
| 151 |
m_data vector to a smaller size when a write operation passes in a just |
| 152 |
a partial portion of the column. (gcc had been covering up this bug |
| 153 |
since the resize call wasn't actually erasing any values). (9/15) |
| 154 |
ColumnData.h |
| 155 |
- Added Column::read functions for retrieving a single row of a vector |
| 156 |
column into a std::vector. Previously this was only allowed for |
| 157 |
valarrays. (9/15) |
| 158 |
Column.cxx, .h |
| 159 |
ColumnT.h |
| 160 |
- Added new function HDU::readNextKey. (9/15) |
| 161 |
HDU.cxx, .h |
| 162 |
KeywordCreator.cxx, .h |
| 163 |
- Removed #ifdef HAVE_CONFIG_H test for including config.h due to |
| 164 |
potential conflicts with users' customized autotools config.h files. |
| 165 |
(8/15) |
| 166 |
ColumnVectorData.h |
| 167 |
FITSUtilT.h |
| 168 |
Table.h |
| 169 |
- Converted 'delete' calls to 'free()' in KeywordCreator's |
| 170 |
getLongValueString function. This removes memory mismatch errors |
| 171 |
in valgrind output. (3/15) |
| 172 |
KeywordCreator.cxx |
| 173 |
- Bug fix to ImageExt::put (accessed through HDU's "operator<<"). It |
| 174 |
was not showing output for the highest numbered axis. (Submitted by |
| 175 |
Georgios Bekiaris) (2/15) |
| 176 |
- Removed vestigal code file NewColumn.h. (This was reported to have |
| 177 |
caused cookbook build errors on ubuntu 14.04.) (5/14) |
| 178 |
- Added proper handling of 'D' exponent notation when reading in keyword |
| 179 |
values of type float or complex. This is allowed by the FITS standard, |
| 180 |
but the C++ stringstream conversion operator was not recognizing it. |
| 181 |
This caused value to be truncated at the 'D' for floats, and to be |
| 182 |
ignored altogether for complex. The change was made entirely in the |
| 183 |
parseRecord() function. (4/14) |
| 184 |
KeywordCreator.cxx |
| 185 |
- In Column::setLimits, removed the dynamic allocation of the static |
| 186 |
variable arrays. These led to small memory leaks (submitted by David |
| 187 |
Riethmiller). (3/14) |
| 188 |
Column.cxx |
| 189 |
- Added an #include <iterator> statement to HDU.cxx. Windows |
| 190 |
compilation was failing due to it not finding std::back_inserter. |
| 191 |
(Submitted by Daniel Kaneider) (11/13) |
| 192 |
HDU.cxx |
| 193 |
- Added read/write capability for images of LONGLONG type. (10/13) |
| 194 |
CCfits.h |
| 195 |
ExtHDUT.h |
| 196 |
FITSUtil.h |
| 197 |
HDUCreator.cxx |
| 198 |
PHDUT.h |
| 199 |
- Added a missing 'break' statement to 'case Tlonglong' in |
| 200 |
FITSType2String function (submitted by DavidBinderman). (09/13) |
| 201 |
FITSUtil.cxx |
| 202 |
- Replaced the use of the valarray '==' operator with an explicit |
| 203 |
loop in ColumnVectorData<T>::compare. This was to get around a compiler |
| 204 |
glitch that appeared on Mac 10.9 w/ gcc 4.2.1. (07/13) |
| 205 |
- Bug fix to HDU::getNamedLines function. The starting point for the |
| 206 |
search needs to be reset to the top of the HDU prior to the search loop. |
| 207 |
(fix submitted by Gavin Blakeman) (01/13) |
| 208 |
HDU.cxx |
| 209 |
- Fixed a couple problems with the FITS::addTable function. It was not |
| 210 |
allowing a new table with a pre-existing hdu name even when the version |
| 211 |
number was different. Also it was not writing the EXTVER keyword when |
| 212 |
the version number was > 1. (03/12) |
| 213 |
FITS.cxx |
| 214 |
Table.cxx |
| 215 |
|
| 216 |
Changes for CCfits 2.4 |
| 217 |
- Fix to allow writing to compressed images of BITPIX=32 on 64-bit |
| 218 |
Linux platforms. This is done by storing the internal image array as |
| 219 |
type int rather than type long. Compatibility issue: this changes the |
| 220 |
return type of the ImageExt<T>::image() function. (12/11) |
| 221 |
HDUCreator.cxx |
| 222 |
PHDUT.h |
| 223 |
ExtHDUT.h |
| 224 |
- Fixes made to the null-value versions of the write functions for |
| 225 |
primary and extension images. (12/11) |
| 226 |
PHDUT.h |
| 227 |
ExtHDUT.h |
| 228 |
- Added the ability of variable-width columns to perform the usual |
| 229 |
numerical data type casting when the write function input arrays do not |
| 230 |
contain exactly the same type of values as the Column object. This |
| 231 |
change also includes much internal code refactoring among the various |
| 232 |
vector column write functions. (11/11) |
| 233 |
ColumnT.h |
| 234 |
- To remove Intel compiler warnings, replaced switch/case with |
| 235 |
specialized templates in FitsNullValue functor. Also cleaned up integer |
| 236 |
type casting in deleteRows function, which fixes a bug in the Column |
| 237 |
object's internal storage of data. (11/11) |
| 238 |
FITSUtil.h |
| 239 |
ColumnVectorData.h |
| 240 |
- Fix for case of using basic FITS constructor on files containing |
| 241 |
multiple extensions with the same name AND version number. (11/11) |
| 242 |
ExtHDU.cxx |
| 243 |
HDUCreator.cxx, .h |
| 244 |
- BinTable's addColumn should call makeThisCurrent(). Otherwise user |
| 245 |
has to do it. (11/11) |
| 246 |
BinTable.cxx |
| 247 |
|
| 248 |
Changes for CCfits 2.3 |
| 249 |
- Bug fix for the setting of the column's lower data limit for the |
| 250 |
specific case of unsigned longs. It had been leaving this unitialized. |
| 251 |
(11/10) |
| 252 |
Column.cxx |
| 253 |
- When images are read from disk via CFITSIO, now copying directly to |
| 254 |
m_image valarray rather than a temporary C-style array. This cuts the |
| 255 |
required memory usage in half for this operation, important for very |
| 256 |
large images. (11/10) |
| 257 |
Image.h |
| 258 |
- New function: ExtHDU::isCompressed(), returns true if image is stored |
| 259 |
with compression. (11/10) |
| 260 |
ExtHDU.cxx, .h |
| 261 |
- For the basic version of the FITS constructor, when called in Write |
| 262 |
mode on a pre-existing file, it now automatically reads all of the |
| 263 |
headers rather than just the primary. It also now passes along the |
| 264 |
user's readDataFlag and optional primary keys settings. (11/10) |
| 265 |
FITS.cxx |
| 266 |
- In all FITS::read functions, now performs check to prevent multiple |
| 267 |
entries of the same HDU in the extensions multimap. (11/10) |
| 268 |
FITS.cxx, .h |
| 269 |
FITSBase.h |
| 270 |
- In the 2 deleteExtension functions, all extensions following the |
| 271 |
deleted one are now appropriately reindexed. (11/10) |
| 272 |
FITS.cxx |
| 273 |
- Fix to the PHDU::write functions which take a nullValue argument. |
| 274 |
Neither could be instantiated due to an invalid static_cast of pointers. |
| 275 |
(11/10) |
| 276 |
PHDUT.h |
| 277 |
- Changed Keyword's keytype() get function from protected to public. |
| 278 |
Did same for PHDU's simple() and extend() functions. (11/10) |
| 279 |
Keyword.h |
| 280 |
PHDU.h |
| 281 |
- Bug fix in Image<T>'s assignment operator. It was trying to swap |
| 282 |
with a const object. Since this isn't instantiated anywhere, compilers |
| 283 |
were letting it go. (11/10) |
| 284 |
Image.h |
| 285 |
- Bug fix in Table::copyData. New Columns' parent pointers must |
| 286 |
be reset to the new Table. Otherwise Columns created through the |
| 287 |
FITS::copy public function will not be modifiable. (02/10) |
| 288 |
Table.cxx |
| 289 |
Column.h |
| 290 |
- Bug fix for definition of ULBASE in FITSUtil. In the operation |
| 291 |
1 << 31, the "1" must be explicitly cast to an unsigned long. Otherwise |
| 292 |
the compiler may treat it as a signed int, for which a left-shift of 31 |
| 293 |
bits is undefined. This was found to cause problems when reading images |
| 294 |
of type signed or unsigned long AND the receiving valarray type required |
| 295 |
casting, AND the platform was 64-bit Linux. (10/09) |
| 296 |
FITSUtil.cxx |
| 297 |
|
| 298 |
Changes for CCfits 2.2 |
| 299 |
- Bug fix for reading and writing complex data types to a scalar column. |
| 300 |
Also modified cookbook's readTable function to test this. |
| 301 |
ColumnData.cxx, .h (09/09) |
| 302 |
cookbook.cxx |
| 303 |
- Added public resetRead() function to Column. (09/09) |
| 304 |
Column.h |
| 305 |
- Renamed the private FITS::extension() function to extensionMap(). |
| 306 |
This is to prevent overload confusion with the public const extension() |
| 307 |
function. This mix-up was causing users to have to explicitly declare |
| 308 |
const FITS pointers to make sure the public function was the one called. |
| 309 |
(08/09) |
| 310 |
FITS.cxx, .h |
| 311 |
- Removed the storage of m_nullValue in ColumnData and |
| 312 |
ColumnVectorData classes. ColumnVectorData's private doWrite function |
| 313 |
now receives nullValue as an argument rather than relying on the data |
| 314 |
member. This fixes an obscure ColumnVectorData::writeData bug, where |
| 315 |
for valarrays of varying sizes being sent to fixed-width columns, |
| 316 |
a default null value was being sent to cfitsio even when user did not |
| 317 |
request it. |
| 318 |
More importantly, the removal of m_nullValue allows the |
| 319 |
Column::addNullValue to work when null value argument requires |
| 320 |
casting to match Column type. Also added new function |
| 321 |
Column::getNullValue. (08/09) |
| 322 |
Column.h |
| 323 |
ColumnT.h |
| 324 |
ColumnData.h |
| 325 |
ColumnVectorData.cxx, .h |
| 326 |
- Added public get functions column() and numCols() to ExtHDU, which |
| 327 |
were previously only available in the Table subclass. (08/09) |
| 328 |
ExtHDU.cxx, .h |
| 329 |
Table.h |
| 330 |
- Added optional flag to the ExtHDU and Table Column get-by-name |
| 331 |
functions, which allows for a case-insensitive search. This required |
| 332 |
renaming the protected column(string,Column*) function to setColumn. |
| 333 |
(08/09) |
| 334 |
AsciiTable.cxx |
| 335 |
BinTable.cxx |
| 336 |
ExtHDU.cxx, .h |
| 337 |
FITSUtil.cxx |
| 338 |
Table.cxx, .h |
| 339 |
- Converted all vector and valarray iterator syntax of form &v[v.size()] |
| 340 |
to either &v[0]+v.size() or v.end(). It was causing runtime exceptions |
| 341 |
on MS Visual C++ v9.0 when element bounds checking was enabled (the |
| 342 |
default). (08/09) |
| 343 |
ColumnVectorData.cxx, .h |
| 344 |
ExtHDUT.h |
| 345 |
Image.h |
| 346 |
PHDUT.h |
| 347 |
PrimaryHDU.h |
| 348 |
cookbook.cxx |
| 349 |
- Added pkg-config file for the stand-alone distribution. This also |
| 350 |
required slight changes to configure.in and Makefile.am. (08/09) |
| 351 |
CCfits.pc.in |
| 352 |
- Removed unused valarray "current" from ColumnVectorData::writeData |
| 353 |
(03/09) |
| 354 |
|
| 355 |
Changes for CCfits 2.1 |
| 356 |
- Modified several FITS constructors and FITS::open function to allow |
| 357 |
handling of extended filename syntax. (09/08) |
| 358 |
FITS.cxx, .h |
| 359 |
- FITS::resetPosition fix: it now erases the currentExtensionName |
| 360 |
string. (09/08) |
| 361 |
- Bug fix to FITS::read for case of missing EXTVER keyword when |
| 362 |
searching for HDU with extver > 1. (08/08) |
| 363 |
- Column.cxx now includes "fitsio.h" rather than "fitsio2.h" to get |
| 364 |
definitions of LONGLONG_MIN and MAX. This now makes CCfits dependent |
| 365 |
on cfitsio versions 3.08 or later. (07/08) |
| 366 |
|
| 367 |
Changes for CCfits 2.0 release 02/08 |
| 368 |
- The scale and zero set functions (public in HDU) will now write |
| 369 |
or update the keywords rather than call fits_set_bscale. They also |
| 370 |
now check for allowed image data type changes as a result of changing |
| 371 |
the bscale and bzero values. Added private zeroInit/scaleInit functions |
| 372 |
for use in HDUCreator. Also added new public function, |
| 373 |
HDU::suppressScaling. (01/08) |
| 374 |
ImageExt.h |
| 375 |
PHDU.cxx, .h |
| 376 |
HDU.cxx, .h |
| 377 |
HDUCreator.cxx |
| 378 |
- Changed access of HDU's bitpix set function from public to private. |
| 379 |
This requires that HDUCreator be a friend class of HDU. (01/08) |
| 380 |
HDU.h |
| 381 |
- Removed the redundant non-const version of FITS::filePointer and made |
| 382 |
the const version public instead of private. It also no longer returns |
| 383 |
by reference. (01/08) |
| 384 |
FITS.h, .cxx |
| 385 |
- Reorganized ImageExt<T> constructor/assignment visibility and added |
| 386 |
virtual declaration to destructor. Also added docs. |
| 387 |
ImageExt.h |
| 388 |
- Added #include statements for <cstring> and <iterator> to allow |
| 389 |
compilation on g++ 4.3 (patch submitted by Aurelien Jarno) (01/08) |
| 390 |
ExtHDU.cxx |
| 391 |
FITS.cxx |
| 392 |
ColumnData.h |
| 393 |
FITSUtil.cxx |
| 394 |
HDU.cxx |
| 395 |
- Added the function getRowsize to the Table class, a wrapper for |
| 396 |
fits_get_rowsize. (Patrik Jonsson) |
| 397 |
Table.cxx, .h |
| 398 |
ExtHDU.cxx, .h |
| 399 |
- Made the const version of the Column parent accessor function public, |
| 400 |
and removed the non-const version. |
| 401 |
Column.h |
| 402 |
- Reorganized and improved keyword modification functions in HDU and |
| 403 |
Keyword classes. This includes new HDU addKey, copyAllKeys, and |
| 404 |
keywordCategories functions, and the removal of HDU::setKeyWord. |
| 405 |
Also fully implemented the Keyword value set function, with template |
| 406 |
specialization similar to the value get function, and added doc |
| 407 |
descriptions for both of these. (01/08) |
| 408 |
HDU.cxx, .h |
| 409 |
Keyword.cxx, .h |
| 410 |
KeywordT.h |
| 411 |
KeyData.cxx, .h |
| 412 |
- Bug fix to 2 of the 3 constructors which call the create() function. |
| 413 |
If create() returns false, they need to throw a CantCreate exception. |
| 414 |
They were appending the new primary hdu as an extension to the |
| 415 |
pre-existing file. (01/08) |
| 416 |
FITS.cxx, .h |
| 417 |
- To eliminate unnecessary dependences upon CFITSIO internals, removed |
| 418 |
the FITSUtil::copyFitsPtr function and everything using it: FITS copy |
| 419 |
ctor and clone functions, FITSBase copy ctor and clone functions. (Note |
| 420 |
that copyFitsPtr was never properly impelemented in its attempt to |
| 421 |
perform a deep copy of a fitsfile pointer.) (12/07) |
| 422 |
FITS.cxx, .h |
| 423 |
FITSBase.cxx, .h |
| 424 |
FITSUtil.cxx, .h |
| 425 |
- Added 4 new functions to HDU class to provide an interface to |
| 426 |
CFITSIO's checksum capabilities. (12/07) |
| 427 |
HDU.cxx, .h |
| 428 |
- Error messages are now stored in the FitsException base class, which |
| 429 |
allows them to be retrieved and copied with the public function |
| 430 |
message(). (12/07) |
| 431 |
FitsError.cxx, .h |
| 432 |
Column.cxx, |
| 433 |
ExtHDU.cxx, |
| 434 |
FITS.cxx |
| 435 |
FITSUtil.cxx |
| 436 |
HDU.cxx |
| 437 |
Keyword.cxx |
| 438 |
Table.cxx |
| 439 |
- For Column write functions (both scalar and vector), all cases where |
| 440 |
the nulval pointer = 0 were treated as (*nulval) = 0 in the lower-level |
| 441 |
calls to fits_write_colnull. This effectively meant there was no way |
| 442 |
for the user to turn off null value checking. (12/07) |
| 443 |
ColumnT.h |
| 444 |
ColumnData.h |
| 445 |
ColumnVectorData.h |
| 446 |
- Calling FITS constructor in Write mode on a read-only file was |
| 447 |
causing a segmentation fault. (12/07) |
| 448 |
FITS.cxx |
| 449 |
|
| 450 |
Changes for CCfits 1.8 release 10/07 |
| 451 |
- Redid the writeData functions (and their private helper functions) |
| 452 |
in ColumnVectorData. This allows the writing of variable length |
| 453 |
column arrays, which hadn't been working, and now allows writing a |
| 454 |
partial section of a fixed length column without overwriting the |
| 455 |
entire row. |
| 456 |
ColumnVectorData.cxx, .h |
| 457 |
- In HDU::readAllKeys, do not throw if unable to read a particular |
| 458 |
individual keyword. Instead, skip and move to the next keyword. This |
| 459 |
will allow this function to be used even if there undefined keywords. |
| 460 |
HDU.cxx |
| 461 |
|
| 462 |
Changes for CCfits 1.7 release 06/07 |
| 463 |
- FITS::copy function now creates a corresponding object for the |
| 464 |
newly created HDU. Previously it only modified the file without |
| 465 |
updating or adding to the FITS extension map. (6/07) |
| 466 |
FITS.cxx |
| 467 |
- Bug fix for reading in compressed images. It had been using the |
| 468 |
BITPIX and NAXIS keywords when it should have ben using ZBITPIX and |
| 469 |
ZNAXIS. These changes were based on a patch submitted by Patrik |
| 470 |
Jonsson. |
| 471 |
HDU.cxx |
| 472 |
HDUCreator.cxx |
| 473 |
- BSCALE was being ingored if the BZERO keyword didn't also exist. |
| 474 |
HDUCreator.cxx. |
| 475 |
- Same type of bug fix as below, but for addNullValue in ColumnT.h and |
| 476 |
ColumnVectorData::setDimen(). (3/07) |
| 477 |
ColumnT.h |
| 478 |
ColumnVectorData.h |
| 479 |
- Bug fix to Column::setLimits. It had been assigning char pointers |
| 480 |
from temporary string objects using c_str(). (Fix submitted by Jeremy |
| 481 |
Sanders) (2/07) |
| 482 |
Column.cxx |
| 483 |
|
| 484 |
Changes for CCfits 1.6 release 11/06 |
| 485 |
- Added capbility to write compressed images, including 6 new wrapper |
| 486 |
public functions in FITS class. |
| 487 |
FITS.cxx,.h |
| 488 |
FITSUtil.cxx,.h |
| 489 |
PHDU.cxx |
| 490 |
FITSBase.cxx,.h |
| 491 |
- In FITS::addImage, corrected the logic which checks for a pre-existing |
| 492 |
image extension with the same version number. |
| 493 |
FITS.cxx |
| 494 |
- CFITSIO 3.02 renamed fitsfile struct member rice_nbits to noise_nbits. |
| 495 |
Made corresponding change in copyFitsPtr function in FITSUtil.cxx. As it |
| 496 |
stands, this makes this version of CCfits incompatible with earlier |
| 497 |
versions of CFITSIO |
| 498 |
FITSUtil.cxx |
| 499 |
- In FITS.h definition, removed both friend declarations of HDUCreator |
| 500 |
Make functions. It seems neither function needs to be a friend, and one |
| 501 |
of them is actually private. The standard is vague about this, and anyway |
| 502 |
some compilers (Visual C++ 2002 or 2003) don't allow it. |
| 503 |
FITS.h |
| 504 |
- Bug fix in Make function of HDUCreator.cxx. When creating a new |
| 505 |
ImageExt (and not the primary), it was only passing the version number |
| 506 |
along for float and double types. This causes problems when there is |
| 507 |
more than 1 image extension with the same name, and it needs the version |
| 508 |
number to distinguish them. |
| 509 |
HDUCreator.cxx |
| 510 |
- A couple of bug fixes to the first/last/stride version of PHDU read |
| 511 |
image subset. It was not passing the proper parameters to |
| 512 |
fits_read_subset, and was not always correctly resizing the m_image array. |
| 513 |
Image.h |
| 514 |
|
| 515 |
Changes for CCfits 1.5 release 7/06 |
| 516 |
- More thorough fix to PHDUT.h write function: Now genuinely handles |
| 517 |
the stride vector parameter. (4/06) |
| 518 |
Image.h |
| 519 |
PHDUT.h |
| 520 |
PrimaryHDU.h |
| 521 |
|
| 522 |
-In BinTable::addColumn function for case of strings, it was outputing |
| 523 |
the column format incorrectly as "A<nChar>". Should have been |
| 524 |
"<nChar>A". |
| 525 |
|
| 526 |
- In BinTable and Table constructor, now checks for columnUnits vector |
| 527 |
size rather than assume it's filled in. This is necessary if units are |
| 528 |
to be an optional parameter for the FITS::addTable function, as claimed |
| 529 |
in the docs. |
| 530 |
Table.cxx |
| 531 |
BinTable.cxx |
| 532 |
|
| 533 |
- Modifications needed to fix compile errors on certain platforms with |
| 534 |
g++ 4.0.x. These are functions that haven't been instantiated, which is |
| 535 |
why other compilers didn't complain about them. In ExtHDUT.h read |
| 536 |
function, needed explicit cast to size_t to make both variables in |
| 537 |
std::min call the same type. Same fix made in PHDUT.h read function. |
| 538 |
Also in PHDUT.h write function, several calls to PrimaryHDU::writeImage |
| 539 |
had the wrong number of arguments. (01/06) |
| 540 |
|
| 541 |
Changes for CCfits 1.4 release 11/05 |
| 542 |
- Fixed reading in of BSCALE and BZERO. Previously these keyword |
| 543 |
values were not being saved in getScaling function. |
| 544 |
HDUCreator::getScaling (10/05) |
| 545 |
|
| 546 |
- Now reads in all floating-point keyword values as doubles rather |
| 547 |
than floats. In conjunction, needed to allow Keyword casting from |
| 548 |
doubles to floats to keep things backward compatible |
| 549 |
KeywordCreator.cxx, KeywordT.h, Keyword.cxx, .h. (8/05) |
| 550 |
|
| 551 |
- In ColumnT.h read function which takes row as a parameter, test and |
| 552 |
throw for case of row out-of-bounds of table. |
| 553 |
|
| 554 |
- Memory leak fix in HDU.cxx. Everywhere insertions into m_keyWord |
| 555 |
map were taking place, needed to check for previously existing entry |
| 556 |
with same key name and delete if it existed. FITS::read often does |
| 557 |
insertions twice with the same Keyword, which was causing a memory leak. |
| 558 |
Also fixed a couple minor leaks in HDU::writeDate. |
| 559 |
(C. Gordon 6/05) |
| 560 |
|
| 561 |
- Exception safety / mem leak fix in FITS.cxx and FITSBase.cxx. |
| 562 |
All FITS constructors (except copy c-tor) now use auto_ptr when creating |
| 563 |
FITSBase* m_FITSImpl. Also FITSBase destructor now checks if it needs |
| 564 |
to close file, indicated by non-zero m_fptr. To make this work, |
| 565 |
FITS::close now resets fptr to 0 after it closes file. |
| 566 |
|
| 567 |
|
| 568 |
- Add another case of allowed casting of keyword values, this time |
| 569 |
from strings to int/float/double if the string contains an integer value |
| 570 |
KeywordT.h (C.Gordon 5/05) |
| 571 |
|
| 572 |
Changes for CCfits 1.3 release 4/05 |
| 573 |
|
| 574 |
- modify KeywordCreator getKeyword functions to allow reading of |
| 575 |
keyword value string long format. (C. Gordon) |
| 576 |
|
| 577 |
- Fixed HDUCreator::Make and ExtHDU constructor so that extensions |
| 578 |
with no names are now properly handled on input. (C. Gordon) |
| 579 |
|
| 580 |
- Added ability to ready in column data of type LONGLONG from binary tables. |
| 581 |
|
| 582 |
- (Important) Added implicit casting of keyword values entered as ints to |
| 583 |
keywords of type float and double. Previously, the entered key value had |
| 584 |
to be of exactly the same type as the keyword, otherwise an exception was |
| 585 |
thrown. |
| 586 |
|
| 587 |
Changes for CCfits 1.2 release 4/03 |
| 588 |
|
| 589 |
a) add configuration support for building on Windows 2000 |
| 590 |
|
| 591 |
b) check for build problems on Mac OS X Darwin (6.4) |
| 592 |
|
| 593 |
c) fix problem with vector column row counts (ColumnVectorData::resizeDataObject) |
| 594 |
|
| 595 |
d) remove error in HDU keyword strings (HDU::readHDUInfo) |
| 596 |
|
| 597 |
e) remove "one off" error in image writing (Image::writeImage) |
| 598 |
|
| 599 |
f) fix write problem for Column TUNIT keyword (AsciiTable::addColumn, BinTable::addColumn) |
| 600 |
(P. Jonsson) |
| 601 |
|
| 602 |
g) fix image subset writing code in ExtHDU (P. Jonsson) (ExtHDU::write) |
| 603 |
|
| 604 |
|
| 605 |
|
| 606 |
Changes for CCfits 1.1.1 release 9/19/02; originator of problem report shown in parentheses |
| 607 |
where relevant. |
| 608 |
|
| 609 |
a) modify most general FITS ctor so that the version argument works properly as a defaulted |
| 610 |
parameter (J. Miller) |
| 611 |
|
| 612 |
b) add flush() method to FITS class to force cfitsio buffers to be flushed to disk on |
| 613 |
request (C. Berst) |
| 614 |
|
| 615 |
c) add instructions to flush buffers after image write operation (C. Berst) |
| 616 |
|
| 617 |
d) fix persistent warning about creating new files (C. Berst) |
| 618 |
|
| 619 |
e) remove trailing blanks from read string keywords (P. Jonsson) |
| 620 |
|
| 621 |
f) add new override function addKey for string literals |
| 622 |
|
| 623 |
g) check compilation and correct operation on gcc 3.2 / Linux 2.4 kernel |
| 624 |
|
| 625 |
|
| 626 |
|
| 627 |
Changes in preparation for CCfits 1.1 release |
| 628 |
|
| 629 |
|
| 630 |
1a) fixed #include <CCfits> in cookbook.cxx (code originally designed to include installed library) |
| 631 |
|
| 632 |
b) added variable of type double to pass to pow in cookbook.cxx [R. Mathar, P. Jonsson] |
| 633 |
|
| 634 |
b) removed numerous break statements from switch / case statements where unreachable |
| 635 |
[code returns before end of case] - producing compiler warnings |
| 636 |
|
| 637 |
c) removed numerous instances of signed/unsigned comparisons to remove compiler warnings |
| 638 |
|
| 639 |
d) fixed FITS file copying constructor to produce valid primary [ R. Mathar ] |
| 640 |
|
| 641 |
e) fixed incorrect shift operator usage in Column::getType [R. Mathar] |
| 642 |
|
| 643 |
f) fixed incorrect type for TDOUBLE argument in Column::getType [R. Mathar] |
| 644 |
|
| 645 |
g) removed exception specifications throughout except for throw() ( style revision ) |
| 646 |
|
| 647 |
h) add null terminator for TFORM keywords for case where no <sstream> header present [R. Mathar] |
| 648 |
|
| 649 |
i) fix error in iterator type in HDU::readKeys [R. Mathar] |
| 650 |
|
| 651 |
j) added support for unsigned integer-type images [J. Barnes] |
| 652 |
|
| 653 |
k) fixed problem with copying Table data likely to lead to memory access violations [C. Gordon] |
| 654 |
|
| 655 |
l) removed potentially conflicting colType argument from table creation call (FITS::addTable). |
| 656 |
The type of the column is now determined from the TFORM keyword. |
| 657 |
|
| 658 |
|
| 659 |
m) support for unsigned table column data [R. Mathar] |
| 660 |
|
| 661 |
n) reimplemented HDU::readAllKeys so that it does not use HDU::addKey [R. Mathar] |
| 662 |
|
| 663 |
o) added various missing makeThisCurrent() calls to ensure FITS pointer addresses the correct |
| 664 |
HDU [P. Jonsson] |
| 665 |
|
| 666 |
p) added code to cookbook program to read Primary HDU user keywords. |
| 667 |
|
| 668 |
q) added code to resolve data types into strings for keyword output. |
| 669 |
|
| 670 |
r) fixed problem whereby new image extensions were not written to disk FITS file [P. Jonsson] |
| 671 |
|
| 672 |
s) fixed various issues switching between HDUs during writes. |
| 673 |
|
| 674 |
t) added support for complex keywords |
| 675 |
|
| 676 |
u) reworked Column templates to avoid throwing exceptions where implicit datatype conversion |
| 677 |
is called for. |
| 678 |
|
| 679 |
v) added many overloaded functions to support complex data I/O. Implicit conversion |
| 680 |
between float & double complex data is allowed. Other attempted conversion throw exceptions. |
| 681 |
|
| 682 |
w) modify HDU::scale(double value), HDU::zero(double value) &c. for Columns to call fits_set_bscale |
| 683 |
etc, to change automatic scalings. |
| 684 |
|
| 685 |
|
| 686 |
2a) configuration support for HP-UX /gcc-2.95.2. Compilation now includes -ansi flag. [R. Mathar] |
| 687 |
|
| 688 |
b) configuration support for AIX/kcc. explicit Makefile.kcc added to distribution [P. Jonsson] |
| 689 |
|
| 690 |
c) added verbose warning message flags for Solaris (+w -verbose=template) |