Skip to content

"from pyraf.iraf import combine" fails? #331

Answered by olebole
daniellekelley19 asked this question in Q&A
Discussion options

You must be logged in to vote

The following works for me:

>>> from pyraf import iraf
>>> from iraf import noao, imred, ccdred
>>> iraf.combine()
List of images to combine: […]

The point is than one can only do top-level imports in iraf, not in the imported packages. Reason is the old-fashioned "import" behavior in PyRAF that reflects the IRAF package loading.

The difference to the other tasks you mentioned is that they are pre-loaded in your login.cl and therefore directly available in IRAF (and PyRAF).

One comment however: IRAF (and also PyRAF) is an old and outdated software. It is maintained for legacy and cultural reasons. Starting new projects with PyRAF or IRAF is not really a good idea; the time is usually bett…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@daniellekelley19
Comment options

@olebole
Comment options

Answer selected by olebole
@daniellekelley19
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
PKG:PyRAF PyRAF Python package
2 participants