From bridgman at lheapop.gsfc.nasa.gov Tue Mar 16 12:45:38 1999 From: bridgman at lheapop.gsfc.nasa.gov (Dr. William T. Bridgman) Date: Tue, 16 Mar 1999 12:45:38 -0500 Subject: AstroPy: Activities or other News? Message-ID: Hello, Things have been rather quiet on the AstroPy list so I thought I'd send out a little news on my activities to see if it would inspire news from others. Paul Barrett is still working on the PyFITS module and I'm doing some assistance in that area. I attempted to port Travis Oliphant's cephes module to the Mac but ran into problems because I didn't have all the source code for the Numeric module. I still need to finish that. I've not noticed any additions to Pavlos' AstroPy page (http://gaaros.msrc.sunysb.edu:8080/Gaaros/AstroPy/) Has there been any other activity by other list members? Thanks, Tom -- Dr. William T."Tom" Bridgman Raytheon ITSS NASA/Goddard Space Flight Center Code 664 bridgman at lheapop.gsfc.nasa.gov Greenbelt, MD 20771 (301) 286-1346 __________________________________________________ AstroPy mailing list - astropy at athena.gsfc.nasa.gov http://lheawww.gsfc.nasa.gov/~bridgman/AstroPy/ From godzilla at netmeg.net Tue Mar 16 12:55:55 1999 From: godzilla at netmeg.net (Les Schaffer) Date: Tue, 16 Mar 1999 12:55:55 -0500 (EST) Subject: AstroPy: Activities or other News? In-Reply-To: References: Message-ID: <14062.39723.170172.726706@gargle.gargle.HOWL> > Things have been rather quiet on the AstroPy list so I thought I'd > send out a little news on my activities to see if it would inspire > news from others. i am continuing work on a Python module to read, process, and display images from VICAR file formats (Galileo). i am working on a module -- perhaps to be incorporated into Travi's cephesmodule -- which calculates spherical harmonics and uses NumPy arrays for speed. I use spherical harmonic expansions a lot for gravitational and magnetic field characterizations. -- ____ Les Schaffer ___| --->> Engineering R&D <<--- Theoretical & Applied Mechanics | Designspring, Inc. Center for Radiophysics & Space Research | http://www.designspring.com/ Cornell Univ. schaffer at tam.cornell.edu | les at designspring.com __________________________________________________ AstroPy mailing list - astropy at athena.gsfc.nasa.gov http://lheawww.gsfc.nasa.gov/~bridgman/AstroPy/ From managan at llnl.gov Tue Mar 16 13:16:45 1999 From: managan at llnl.gov (Rob Managan) Date: Tue, 16 Mar 1999 10:16:45 -0800 Subject: AstroPy: Activities or other News? In-Reply-To: Message-ID: >Hello, > >Things have been rather quiet on the AstroPy list so I thought I'd send out >a little news on my activities to see if it would inspire news from others. > >Paul Barrett is still working on the PyFITS module and I'm doing some >assistance in that area. > >I attempted to port Travis Oliphant's cephes module to the Mac but ran into >problems because I didn't have all the source code for the Numeric module. >I still need to finish that. > >I've not noticed any additions to Pavlos' AstroPy page >(http://gaaros.msrc.sunysb.edu:8080/Gaaros/AstroPy/) > >Has there been any other activity by other list members? > >Thanks, >Tom > I just recompiled and put up the Mac source for NumPy. It is available at . Look for the files Numerical.sea.hqx and Numerical_src.sea.hqx if you want the source and CW projects... *-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*- Rob Managan mailto://managan at llnl.gov LLNL ph: 925-423-0903 P.O. Box 808, L-098 FAX: 925-423-5804 Livermore, CA 94551-0808 __________________________________________________ AstroPy mailing list - astropy at athena.gsfc.nasa.gov http://lheawww.gsfc.nasa.gov/~bridgman/AstroPy/ From edcjones at erols.com Wed Mar 10 05:25:23 1999 From: edcjones at erols.com (Edward C. Jones) Date: Wed, 10 Mar 1999 05:25:23 -0500 Subject: [Matrix-SIG] Accessing raw data in PyArrays from C Message-ID: <36E64892.F144C752@erols.com> I have been writing some C code that extends NumPy. I find myself regularly using the C macro: #define ARRAYDATUM(type,charptr) (*( ((type) *) (charptr))) to access the data in the array. For example, suppose "pao" is a pointer to a PyArrayObject holding unsigned chars. Then ARRAYDATUM(unsigned char, pao->data) returns the first byte of data in the array. But this macro assumes I know the type of the array. In arraytypes.c, there are functions like (using UBYTE as an example): static PyObject * UBYTE_getitem(char *ip) {return PyInt_FromLong((long)*((unsigned char *)ip));} static int UBYTE_setitem(PyObject *op, char *ov) {*((unsigned char *)ov)=PyInt_AsLong(op);return PyErr_Occurred() ? -1:0;} I suggest that something like the following be added: static unsigned byte UBYTE_getraw(char *ip) {return *((unsigned char *)ip);} static int UBYTE_setraw(unsigned cahr b, char *ov) {*((unsigned char *)ov)=b;} How can this be done? Thanks, Ed Jones _______________________________________________ Matrix-SIG maillist - Matrix-SIG at python.org http://www.python.org/mailman/listinfo/matrix-sig