Changeset 4158 for trunk/psLib/src/fits
- Timestamp:
- Jun 8, 2005, 11:07:59 AM (21 years ago)
- Location:
- trunk/psLib/src/fits
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFits.c
r3977 r4158 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.3 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 5-19 05:18:20$9 * @version $Revision: 1.32 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 21:07:59 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 571 571 } 572 572 573 ps Hash* psFitsReadHeaderSet(psHash* out,574 const psFits* fits)573 psMetadata* psFitsReadHeaderSet(psMetadata* out, 574 const psFits* fits) 575 575 { 576 576 if (fits == NULL) { … … 582 582 583 583 if (out == NULL) { 584 out = psHashAlloc(10); 585 // XXX: what is the appropriate number of buckets? Got 10 from psMetadataAlloc. 584 out = psMetadataAlloc(); 586 585 if (out == NULL) { 587 586 psError(PS_ERR_UNKNOWN, false, 588 "Failed to allocate a new ps Hashcontainer.");587 "Failed to allocate a new psMetadata container."); 589 588 return NULL; 590 589 } … … 607 606 psMetadata* header = psFitsReadHeader(NULL, fits); 608 607 if (name != NULL && header != NULL) { 609 psHashAdd(out, name, header); 608 psMetadataAddMetadata(out, PS_LIST_HEAD, name, "FITS Header", 609 header); 610 610 } else { // XXX: is this a warning or error? 611 611 psLogMsg(__func__, PS_LOG_WARN, -
trunk/psLib/src/fits/psFits.h
r3500 r4158 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 3-24 23:52:25$9 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-08 21:07:59 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include "psVector.h" 23 23 #include "psMetadata.h" 24 #include "psHash.h"25 24 #include "psImage.h" 26 25 … … 135 134 /** Reads the header of all HDUs. The current HDU is not changed. 136 135 * 137 * @return ps Hash* the header data138 */ 139 ps Hash* psFitsReadHeaderSet(140 ps Hash* out,141 ///< The ps Hashto add the header data via psMetadata items. If null, a142 ///< new ps Hash is created. The keys of the psHashare the extension names136 * @return psMetadata* the header data set as a number of metadata entries 137 */ 138 psMetadata* psFitsReadHeaderSet( 139 psMetadata* out, 140 ///< The psMetadata to add the header data via psMetadata items. If null, a 141 ///< new psMetadata is created. The keys of the psMetadata are the extension names 143 142 ///< of the cooresponding HDUs. 144 143
Note:
See TracChangeset
for help on using the changeset viewer.
