Changeset 8232 for trunk/psLib/src/fits/psFitsTable.c
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
fits/psFitsTable.c (modified) (30 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src
- Property svn:ignore
-
old new 10 10 libpslib.la.temp 11 11 config.h.in 12 psErrorText.h13 12 *.bb 14 13 *.bbg
-
- Property svn:ignore
-
trunk/psLib/src/fits/psFitsTable.c
r7984 r8232 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-0 7-26 03:37:57$9 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-08-08 23:32:23 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 17 17 #include "string.h" 18 18 #include "psError.h" 19 #include "psErrorText.h" 19 20 20 #include "psImageStructManip.h" 21 21 #include "psMemory.h" … … 41 41 if (fits == NULL) { 42 42 psError(PS_ERR_BAD_PARAMETER_NULL, true, 43 PS_ERRORTEXT_psFits_NULL);43 _("The input psFits object can not NULL.")); 44 44 return NULL; 45 45 } … … 52 52 (void)fits_get_errstatus(status, fitsErr); 53 53 psError(PS_ERR_IO, true, 54 PS_ERRORTEXT_psFits_GET_HDU_TYPE_FAILED,54 _("Could not determine the HDU type. CFITSIO Error: %s"), 55 55 fitsErr); 56 56 return NULL; … … 58 58 if (hdutype != ASCII_TBL && hdutype != BINARY_TBL) { 59 59 psError(PS_ERR_IO, true, 60 PS_ERRORTEXT_psFits_NOT_TABLE_TYPE);60 _("Current FITS HDU type must be a table.")); 61 61 return NULL; 62 62 } … … 69 69 (void)fits_get_errstatus(status, fitsErr); 70 70 psError(PS_ERR_IO, true, 71 PS_ERRORTEXT_psFits_GET_TABLE_SIZE_FAILED,71 _("Failed to determine the size of the current HDU table. CFITSIO Error: %s"), 72 72 fitsErr); 73 73 return NULL; … … 78 78 if (row < 0 || row >= numRows) { 79 79 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 80 PS_ERRORTEXT_psFits_ROW_INVALID,80 _("Specified row, %d, is not valid for current table of %d rows."), 81 81 row,numRows); 82 82 return NULL; … … 168 168 (void)fits_get_errstatus(status, fitsErr); 169 169 psError(PS_ERR_IO, true, 170 PS_ERRORTEXT_psFits_GET_TABLE_ELEMENT,170 _("Failed to retrieve table element (%d,%d). CFITSIO Error: %s"), 171 171 col,row,fitsErr); 172 172 psFree(data); … … 187 187 if (fits == NULL) { 188 188 psError(PS_ERR_BAD_PARAMETER_NULL, true, 189 PS_ERRORTEXT_psFits_NULL);189 _("The input psFits object can not NULL.")); 190 190 return NULL; 191 191 } … … 197 197 (void)fits_get_errstatus(status, fitsErr); 198 198 psError(PS_ERR_IO, true, 199 PS_ERRORTEXT_psFits_GET_HDU_TYPE_FAILED,199 _("Could not determine the HDU type. CFITSIO Error: %s"), 200 200 fitsErr); 201 201 return NULL; … … 203 203 if (hdutype != ASCII_TBL && hdutype != BINARY_TBL) { 204 204 psError(PS_ERR_IO, true, 205 PS_ERRORTEXT_psFits_NOT_TABLE_TYPE);205 _("Current FITS HDU type must be a table.")); 206 206 return NULL; 207 207 } … … 212 212 (void)fits_get_errstatus(status, fitsErr); 213 213 psError(PS_ERR_IO, true, 214 PS_ERRORTEXT_psFits_FIND_COLUMN,214 _("Specified column, %s, was not found. CFITSIO Error: %s"), 215 215 colname, fitsErr); 216 216 return NULL; … … 227 227 (void)fits_get_errstatus(status, fitsErr); 228 228 psError(PS_ERR_IO, true, 229 PS_ERRORTEXT_psFits_GET_COLTYPE,229 _("Could not determine the datatype of the table column. CFITSIO Error: %s"), 230 230 fitsErr); 231 231 return NULL; … … 253 253 (void)fits_get_errstatus(status, fitsErr); 254 254 psError(PS_ERR_IO, true, 255 PS_ERRORTEXT_psFits_TABLE_READ_COL,255 _("Failed to read table column. CFITSIO Error: %s"), 256 256 fitsErr); 257 257 return NULL; … … 269 269 if (fits == NULL) { 270 270 psError(PS_ERR_BAD_PARAMETER_NULL, true, 271 PS_ERRORTEXT_psFits_NULL);271 _("The input psFits object can not NULL.")); 272 272 return NULL; 273 273 } … … 279 279 (void)fits_get_errstatus(status, fitsErr); 280 280 psError(PS_ERR_IO, true, 281 PS_ERRORTEXT_psFits_GET_HDU_TYPE_FAILED,281 _("Could not determine the HDU type. CFITSIO Error: %s"), 282 282 fitsErr); 283 283 return NULL; … … 285 285 if (hdutype != ASCII_TBL && hdutype != BINARY_TBL) { 286 286 psError(PS_ERR_IO, true, 287 PS_ERRORTEXT_psFits_NOT_TABLE_TYPE);287 _("Current FITS HDU type must be a table.")); 288 288 return NULL; 289 289 } … … 294 294 (void)fits_get_errstatus(status, fitsErr); 295 295 psError(PS_ERR_IO, true, 296 PS_ERRORTEXT_psFits_FIND_COLUMN,296 _("Specified column, %s, was not found. CFITSIO Error: %s"), 297 297 colname, fitsErr); 298 298 return NULL; … … 313 313 (void)fits_get_errstatus(status, fitsErr); 314 314 psError(PS_ERR_IO, true, 315 PS_ERRORTEXT_psFits_GET_COLTYPE,315 _("Could not determine the datatype of the table column. CFITSIO Error: %s"), 316 316 fitsErr); 317 317 return NULL; … … 336 336 (void)fits_get_errstatus(status, fitsErr); 337 337 psError(PS_ERR_IO, true, 338 PS_ERRORTEXT_psFits_TABLE_READ_COL,338 _("Failed to read table column. CFITSIO Error: %s"), 339 339 fitsErr); 340 340 return NULL; … … 351 351 if (fits == NULL) { 352 352 psError(PS_ERR_BAD_PARAMETER_NULL, true, 353 PS_ERRORTEXT_psFits_NULL);353 _("The input psFits object can not NULL.")); 354 354 return NULL; 355 355 } … … 361 361 (void)fits_get_errstatus(status, fitsErr); 362 362 psError(PS_ERR_IO, true, 363 PS_ERRORTEXT_psFits_GET_HDU_TYPE_FAILED,363 _("Could not determine the HDU type. CFITSIO Error: %s"), 364 364 fitsErr); 365 365 return NULL; … … 367 367 if (hdutype != ASCII_TBL && hdutype != BINARY_TBL) { 368 368 psError(PS_ERR_IO, true, 369 PS_ERRORTEXT_psFits_NOT_TABLE_TYPE);369 _("Current FITS HDU type must be a table.")); 370 370 return NULL; 371 371 } … … 378 378 (void)fits_get_errstatus(status, fitsErr); 379 379 psError(PS_ERR_IO, true, 380 PS_ERRORTEXT_psFits_GET_TABLE_SIZE_FAILED,380 _("Failed to determine the size of the current HDU table. CFITSIO Error: %s"), 381 381 fitsErr); 382 382 return NULL; … … 488 488 // no table data, what can I do? 489 489 psError(PS_ERR_BAD_PARAMETER_SIZE, true, 490 PS_ERRORTEXT_psFits_TABLE_EMPTY);490 _("Can't create a table without any rows.")); 491 491 return false; 492 492 } … … 731 731 if (fits == NULL) { 732 732 psError(PS_ERR_BAD_PARAMETER_NULL, true, 733 PS_ERRORTEXT_psFits_NULL);733 _("The input psFits object can not NULL.")); 734 734 return false; 735 735 } … … 737 737 if (data == NULL) { 738 738 psError(PS_ERR_BAD_PARAMETER_NULL, true, 739 PS_ERRORTEXT_psFits_IMAGE_NULL);739 _("The input psImage was NULL. Need a non-NULL psImage for operation to be performed.")); 740 740 return false; 741 741 } … … 747 747 (void)fits_get_errstatus(status, fitsErr); 748 748 psError(PS_ERR_IO, true, 749 PS_ERRORTEXT_psFits_GET_HDU_TYPE_FAILED,749 _("Could not determine the HDU type. CFITSIO Error: %s"), 750 750 fitsErr); 751 751 return false; … … 753 753 if (hdutype != ASCII_TBL && hdutype != BINARY_TBL) { 754 754 psError(PS_ERR_IO, true, 755 PS_ERRORTEXT_psFits_NOT_TABLE_TYPE);755 _("Current FITS HDU type must be a table.")); 756 756 return false; 757 757 } … … 777 777 (void)fits_get_errstatus(status, fitsErr); 778 778 psError(PS_ERR_IO, true, 779 PS_ERRORTEXT_psFits_WRITE_FAILED,779 _("Could not write data to file. CFITSIO Error: %s"), 780 780 fitsErr); 781 781 psFree(iter);
Note:
See TracChangeset
for help on using the changeset viewer.
