From ptak at astro.phys.cmu.edu Mon Jun 28 15:11:05 1999 From: ptak at astro.phys.cmu.edu (Andy Ptak) Date: Mon, 28 Jun 1999 15:11:05 -0400 (EDT) Subject: AstroPy: large astronomical python project Message-ID: Hello, I'm sorry if I already emailed this list about this, but I have decided to use Python as the primary language for a fairly large project (funded by an AISR grant) to automate the analysis of extra-galactic X-ray observations. The proposal was based on an IDL package I had put together while in grad. school that concentrated mainly on ASCA data. Part of the selling point of the proposal was to convert these routines to a free scripting language. The project is early on at this point, but I have started to wrap a C++ library for python using SWIG. So far I have a fits image handling class wrapped, and will later on be concentrating on other astronomical types like events lists, spectra, responses, light curves, etc. I have also started to flesh out the overall structure of the Python code (much of which produces scripts to drive software like FTOOLS, XSPEC, etc). If anyone has any advice, I'd be happy to hear it. I'd like to have the system be easily driven from the command line, from files for batch executions, from a GUI, and from a WWW page (given how reluctant a lot of astronomers are at downloading and installing software, I suspect the WWW interface will be the most important, at least initially). Some more info is available at: http://snooker.phys.cmu.edu/xassist Cheers, Andy Ptak __________________________________________________ AstroPy mailing list - astropy at athena.gsfc.nasa.gov http://lheawww.gsfc.nasa.gov/~bridgman/AstroPy/ From npirzkal at eso.org Mon Jun 28 15:27:46 1999 From: npirzkal at eso.org (Norbert Pirzkal) Date: Mon, 28 Jun 1999 21:27:46 +0200 Subject: AstroPy: large astronomical python project References: Message-ID: <3777CCB2.904963C1@eso.org> Andy Ptak wrote: > > Hello, > I'm sorry if I already emailed this list about this, but I have decided to > use Python as the primary language for a fairly large project (funded by > an AISR grant) to automate the analysis of extra-galactic X-ray > observations. The proposal was based on an IDL package I had put together > while in grad. school that concentrated mainly on ASCA data. Part of the > selling point of the proposal was to convert these routines to a free > scripting language. The project is early on at this point, but I have > started to wrap a C++ library for python using SWIG. So far I have a fits > image handling class wrapped, and will later on be concentrating on other > astronomical types like events lists, spectra, responses, light curves, > etc. I have also started to flesh out the overall structure of the > Python code (much of which produces scripts to drive software like > FTOOLS, XSPEC, etc). If anyone has any advice, I'd be happy to hear it. > I'd like to have the system be easily driven from the command line, from > files for batch executions, from a GUI, and from a WWW page (given how > reluctant a lot of astronomers are at downloading and installing software, > I suspect the WWW interface will be the most important, at least > initially). > > Some more info is available at: > http://snooker.phys.cmu.edu/xassist Hi, I have had the cfitsio library wrapped using swig (pfitsio) for a while now and it has been working quite well for my own projects using HST data. I am also completting a 100% Python FITS package which should be out in alpha within a few weeks. There is also PyFits which you might want to look into. Cheers, Nor __________________________________________________ AstroPy mailing list - astropy at athena.gsfc.nasa.gov http://lheawww.gsfc.nasa.gov/~bridgman/AstroPy/ From pascucci at cs.utexas.edu Tue Jun 1 13:43:24 1999 From: pascucci at cs.utexas.edu (pascucci) Date: Tue, 01 Jun 1999 12:43:24 -0500 Subject: [Matrix-SIG] swig - visual studio References: <199906011556.KAA18543@smtp1.gte.net> Message-ID: <37541BBB.A62721BD@cs.utexas.edu> Thank you. It worked. I have one more question: how can I debug a piece of code in a dll starting from the python environment? If the code crashes the debugger seems to start automatically ... but what if I want to stop in another breakpoint before the error occurs? Valerio Roger Burnham wrote: > On 1 Jun 99, at 9:50, pascucci mused: > > > How can I set a visual studio project to preprocess a "filename.i" with SWIG > > and generate automatically the appropriate wrapper? > > thanks > > Valerio > > > > > > Using VC++ 6.0: > > Add a def for SWIG_EXE to your autoexec.bat: > set SWIG_EXE=C:\DevSrc\Swig\SWIG1.1p4\bin\swig.exe > > Add the .i file to the project. > > In the FileView, right-click on the .i, choose properties, and add a custom build > step: > > Description: Swigging up .c... > Commands: $(SWIG_EXE) -python -o .c .i > Outputs: .c > > Cheers, > > Roger Burnham > Cambridge Research & Instrumentation > rburnham at cri-inc.com > http://www.cri-inc.com/ > http://starship.python.net/crew/roger/ > PGP Key: http://www.nai.com/default_pgp.asp > PGP Fingerprint: 5372 729A 9557 5F36 177F 084A 6C64 BE27 0BC4 CF2D _______________________________________________ Matrix-SIG maillist - Matrix-SIG at python.org http://www.python.org/mailman/listinfo/matrix-sig From Barrett at stsci.edu Mon Jun 28 17:32:37 1999 From: Barrett at stsci.edu (Paul Barrett) Date: Mon, 28 Jun 1999 17:32:37 -0400 (EDT) Subject: [AstroPy] New AstroPy mailing list address. Message-ID: <14199.58988.194421.29437@nem-srvr.stsci.edu> Greetings Fellow Pythoneers, This message is to inform you that the AstroPy mailing list has changed its address. It is now located at the Space Telescope Science Institute (astropy at stsci.edu). This was necessary because the maintainers (Paul Barrett and Tom Bridgman) no longer work in the Lab for High Energy Astrophysics at Goddard Space Flight Center. The benefit of this move is that there is much greater interest in using Python for astronomical data analysis at STScI than there is at GSFC, so we might expect it to be better supported at the STScI. So beginning immediately, please use the following E-mail address: astropy at stsci.edu. In case you forget, the old address should forward your message to STScI for delivery for a little while longer. Cheers, Paul _____________________________________________________ AstroPy mailing list - astropy at stsci.edu http://lheawww.gsfc.nasa.gov/~bridgman/AstroPy/