#568 closed enhancement (fixed)
psFits functions with 'ext' in name
| Reported by: | Owned by: | Paul Price | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | PSLib SDRS | Version: | unspecified |
| Severity: | minor | Keywords: | |
| Cc: |
Description
Most of the functions with 'Ext' in the name implies that is works only with extensions, but that is not
the case as most all of them work with the primary HDU too. It probably would be better to replace
'Ext' with 'Hdu'. Also, many of these functions have two flavors, one for HDU by name and one for HDU
by number. If the assumption is made that by number is more basic/universal, the 'Num' suffix could
also be dropped and a 'ByName' can be used for those functions that index by name. For example:
psFitsMoveExtName -> psFitsMoveHduByName
psFitsMoveExtNum -> psFitsMoveHdu
psFitsGetExtNum -> psFitsGetHduNumber
psFitsDeleteExtNum -> psFitsDeleteHdu
psFitsDeleteExtname -> psFitsDeleteHduByName
psFitsGetExtType -> psFitsGetHduType
psFitsGetExtName -> psFitsGetHduName
psFitsSetExtName -> psFitsSetHduName
-rdd

There is a preference here for the original names. Astronomers generally think
in terms of "extensions" instead of "HDU".