From rlw at stsci.edu Wed Apr 4 09:21:29 2001 From: rlw at stsci.edu (rlw at stsci.edu) Date: Wed, 4 Apr 2001 09:21:29 -0400 (EDT) Subject: [AstroPy] pfiles Message-ID: <200104041321.JAA28484@sundog.stsci.edu> Hi Warren, >Has anyone written code to deal with IRAF/FTOOL style par files? >Even a nice wrapper for pquery would be useful. Our PyRAF system has a bunch of code for dealing with IRAF .par files. You can get it at pyraf.stsci.edu -- look at irafpar.py for the parameter file stuff. It has a lot of features: it generates a list of parameters that have constrained types & values (as specified by the .par file), and there is a GUI parameter editor. Unfortunately it may be a bit of a pain to use it outside of pyraf, because there is quite a bit of entanglement between parameter handling and the IRAF interface. I expect you'll find this module is a lot more complicated than you expected because there are some pretty peculiar aspects to IRAF parameters that make it hard to separate the parameter handling from IRAF task handling. (E.g., did you know that a parameter can have a value like ')imstatistics.lower', which is an indirect reference to the 'lower' parameter of the imstatistics task?) Probably you could use it outside pyraf with a little work. Or maybe you'll be able to find another module that is easier to use in your application. One of our projects is to cleanly separate pyraf into pieces that depend on IRAF and those that can be used without IRAF. If you have suggestions for what you'd like to see in a generic parameter interface, I'd welcome them. Rick White _____________________________________________________ AstroPy mailing list - astropy at stsci.edu http://lheawww.gsfc.nasa.gov/~bridgman/AstroPy/ From ndevilla at eso.org Mon Apr 30 04:06:40 2001 From: ndevilla at eso.org (Nicolas Devillard) Date: Mon, 30 Apr 2001 10:06:40 +0200 (MET DST) Subject: [AstroPy] [ANNOUNCE] eclipse-python (beta) released In-Reply-To: <200102021143.TAA11971@solar.calm.wa.gov.au> Message-ID: ANNOUNCE: eclipse-4.0 and eclipse-python released The latest (beta) version of eclipse has been released. It includes among new features an interface to Python that allows to load eclipse as a dynamic module. This version remains a beta because it is largely un-documented, this should change over the next weeks. The code itself is believed to be quite stable. eclipse is a general-purpose image processing library written in ANSI C for portability and performance. It has been successfully used as a basis for a number of VLT pipeline developments and has been reported to be used extensively for other projects outside ESO (without ESO support!). As a C library, eclipse is meant to be used as a basis for specific instrument developments (pipelines, or data reduction recipes). For convenience, an interface to Python has been produced using SWIG, that allows the programming of data reduction recipes in a high-level language. This interface is offered today in two parts: a dynamic library (c_eclipse.so) and a Python module (eclipse.py) which should shield Python programmers from changes happening in the library. The Python module offers a number of classes to deal with FITS images and cubes (tables are there but not yet interfaced). The idea is not to offer a new data analysis environment but an easy way of prototyping recipes before they are later frozen into C code for deployment. You need to download the eclipse library (eclipse-main) and the Python module to use this facility. The eclipse home page can be found at: http://www.eso.org/eclipse To compile and install: % gunzip -c eclipse-main-4.0-beta-2.tar.gz | tar xvf - % gunzip -c eclipse-python-4.0-beta-2.tar.gz | tar xvf - % cd eclipse-4.0-beta-2 % ./configure % cd lang/python % make To run basic tests, do: % cd lib % python eclipse_test.py You now have in eclipse-4.0-beta-2/lang/python/lib two files that can be moved to a suitable place for Python libraries (either in your Python tree or to a place pointed to by PYTHONHOME): c_eclipse.so and eclipse.py. Again: classes and library functions are hardly documented right now. eclipse is free software distributed under the BSD license. Cheers -- Nicolas _____________________________________________________ AstroPy mailing list - astropy at stsci.edu http://lheawww.gsfc.nasa.gov/~bridgman/AstroPy/