astrofrog / astrofrog/python-montage

CFITSIO library versions with aplpy

Aperta
#8 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
5
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,

Ran into a problem when using montage called from aplpy (ie using the north=True flag). The problem seems to be a CFITSIO version mismatch between Montage (3.25) and something else (3.31). Error message appended.

I ran this past Eli Bressert (since he's here), and he reckoned it was a python-montage issue and I should send it to you!

no hurry with this one - I have a workaround using Montage as a standalone application.

Cheers,
Nick.

magellanic:fig_hbf_paper nfht$ python fig_mips3_co_yso.py
ERROR: Mismatch in the version of the fitsio.h include file used to build
the CFITSIO library, and the version included by the application program:
Version used to build the CFITSIO library = 3.310000
Version included by the application program = 3.250000
Traceback (most recent call last):
File "fig_mips3_co_yso.py", line 19, in
img = aplpy.FITSFigure('/Users/nfht/projects/gb_auriga/fig_hbf_paper/AUR_ALL_F5_MIPS3_mosaic.fits',north=True)
File "", line 2, in **init**
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/aplpy/decorators.py", line 23, in _auto_refresh
f(_args, *_kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/aplpy/aplpy.py", line 224, in __init__
convention=convention, dimensions=dimensions, slices=slices)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/aplpy/aplpy.py", line 360, in _get_hdu
hdu = montage.reproject_hdu(hdu, north_aligned=True)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/montage/wrappers.py", line 46, in reproject_hdu
reproject(in_image, out_image, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/montage/wrappers.py", line 189, in reproject
system=system, equinox=equinox)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/montage/commands.py", line 1494, in mMakeHdr
return status.parse_struct("mMakeHdr", p.stdout.read().strip())
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/montage/status.py", line 26, in parse_struct
result = Struct(command, string)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/montage/status.py", line 65, in __init__
raise MontageError("%s: %s" % (command, self.msg))
montage.status.MontageError: mMakeHdr: Invalid table file: /var/folders/yg/ygGXzNjFH-qefGIsGQ3fTE+++TI/-Tmp-/tmpcqsq4iimages_raw.tbl

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia riproducendo il percorso north=True di aplpy attraverso montage/wrappers.py, quindi esamina commands.py e status.py nelle vicinanze di mMakeHdr e della discrepanza CFITSIO segnalata. Confronta le versioni di CFITSIO utilizzate per compilare e includere la libreria e verifica che reproject_hdu venga completato senza l’errore relativo a un file di tabella non valido.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.