From luigi at lambrate.inaf.it Fri Sep 4 11:32:32 2009 From: luigi at lambrate.inaf.it (Luigi Paioro) Date: Fri, 04 Sep 2009 17:32:32 +0200 Subject: [AstroPy] New SAMPy 1.11.1 Message-ID: <4AA13310.60106@lambrate.inaf.it> Dear all. we are pleased to announce the release of SAMPy 1.11.1 available at the PANDORA group site: http://cosmos.iasf-milano.inaf.it/pandora/sampy.html This new release includes the following changes: - Public ID format still simplified - New Hub metadata added - XML-RPC faultCode value set to be int (Douglas Burke patch) - samp.app.ping and client.env.get MTypes supported by default - SAMPHubProxy.declareSubscriptions "mtypes" parameter renamed as "subscriptions" - bindReceiveNotification and bindReceiveCall methods of SAMPClient and SAMPIntegratedClient classes have been changed adding an optional "metadata" parameter - declareSubscriptions method of SAMPClient and SAMPIntegratedClient changed adding an optional "subscriptions" parameter - Interrupted system calls error caught - Other small bugs fixed - README updated If you have any comment, bug notification, help request, etc. please contact me by e-mail, directly, through this mailing list or using the the PANDORA site contact page. Best regards, Luigi on behalf of the PANDORA group -- Luigi Paioro INAF - IASF Milano Via Bassini 15, I-20133 Milano, Italy Phone (+39) 02 23 699 470 Fax (+39) 02 26 660 17 Site http://cosmos.iasf-milano.inaf.it/luigi/ From tgrav at mac.com Fri Sep 11 14:48:21 2009 From: tgrav at mac.com (Tommy Grav) Date: Fri, 11 Sep 2009 14:48:21 -0400 Subject: [AstroPy] Pyfits nan issue Message-ID: <9A1B5EBE-CF33-4C2C-9D86-D64A2931CE2D@mac.com> I am trying to read in images using the pyfits svn trunk (2.1.1dev494). These images display correctly in ds9, but when reading in pyfits the nan values are converted to very large values (well not that large, for example 53662.75, but with different values for each image). >>> hdu.info() Filename: o5014g0242o.84241.wrp.7117.skycell.077.fits No. Name Type Cards Dimensions Format 0 PRIMARY PrimaryHDU 6 () int16 1 CompImageHDU 98 (6000, 6000) float32 >>> hdu[1].header["BITPIX"] -32 >>> np.isnan(hdu[1].data).sum() 0 >>> hdu[1].data.max() 53662.75 >>> Does anyone know what might be going on such that ds9 correctly reads the files and displays the nan values, while pyfits (or np) fails to do so? Cheers Tommy Grav + ----------------------------------------------------------------------------+ Associate Researcher @ Dept. of Physics and Astronomy Johns Hopkins University + ----------------------------------------------------------------------------+ tgrav at pha.jhu.edu (410) 516-7683 http://web.mac.com/tgrav/Astronomy/Welcome.html + ----------------------------------------------------------------------------+ From perry at stsci.edu Fri Sep 11 15:08:18 2009 From: perry at stsci.edu (Perry Greenfield) Date: Fri, 11 Sep 2009 15:08:18 -0400 Subject: [AstroPy] Pyfits nan issue In-Reply-To: <9A1B5EBE-CF33-4C2C-9D86-D64A2931CE2D@mac.com> References: <9A1B5EBE-CF33-4C2C-9D86-D64A2931CE2D@mac.com> Message-ID: Can you make the file available to see what is going on? Thanks, Perry On Sep 11, 2009, at 2:48 PM, Tommy Grav wrote: > I am trying to read in images using the pyfits svn trunk > (2.1.1dev494). These images > display correctly in ds9, but when reading in pyfits the nan values > are converted to > very large values (well not that large, for example 53662.75, but with > different values > for each image). > >>>> hdu.info() > Filename: o5014g0242o.84241.wrp.7117.skycell.077.fits > No. Name Type Cards Dimensions Format > 0 PRIMARY PrimaryHDU 6 () int16 > 1 CompImageHDU 98 (6000, 6000) float32 >>>> hdu[1].header["BITPIX"] > -32 >>>> np.isnan(hdu[1].data).sum() > 0 >>>> hdu[1].data.max() > 53662.75 >>>> > > Does anyone know what might be going on such that ds9 correctly reads > the files and > displays the nan values, while pyfits (or np) fails to do so? > > Cheers > Tommy Grav > + > ----------------------------------------------------------------------------+ > Associate Researcher @ Dept. of Physics and Astronomy > Johns Hopkins University > + > ----------------------------------------------------------------------------+ > tgrav at pha.jhu.edu > (410) 516-7683 > http://web.mac.com/tgrav/Astronomy/Welcome.html > + > ----------------------------------------------------------------------------+ > > > > _______________________________________________ > AstroPy mailing list > AstroPy at scipy.org > http://mail.scipy.org/mailman/listinfo/astropy From perry at stsci.edu Mon Sep 14 11:06:39 2009 From: perry at stsci.edu (Perry Greenfield) Date: Mon, 14 Sep 2009 11:06:39 -0400 Subject: [AstroPy] Pyfits nan issue In-Reply-To: <9A1B5EBE-CF33-4C2C-9D86-D64A2931CE2D@mac.com> References: <9A1B5EBE-CF33-4C2C-9D86-D64A2931CE2D@mac.com> Message-ID: <138B9D08-F028-4E3F-A3F7-93DD79C40287@stsci.edu> After looking at the file, it may be an issue with how pyfits is dealing with compressed data. We won't be able to look at it right away, but we will fix it at some point in the next month or so. Perry On Sep 11, 2009, at 2:48 PM, Tommy Grav wrote: > I am trying to read in images using the pyfits svn trunk > (2.1.1dev494). These images > display correctly in ds9, but when reading in pyfits the nan values > are converted to > very large values (well not that large, for example 53662.75, but with > different values > for each image). > >>>> hdu.info() > Filename: o5014g0242o.84241.wrp.7117.skycell.077.fits > No. Name Type Cards Dimensions Format > 0 PRIMARY PrimaryHDU 6 () int16 > 1 CompImageHDU 98 (6000, 6000) float32 >>>> hdu[1].header["BITPIX"] > -32 >>>> np.isnan(hdu[1].data).sum() > 0 >>>> hdu[1].data.max() > 53662.75 >>>> > > Does anyone know what might be going on such that ds9 correctly reads > the files and > displays the nan values, while pyfits (or np) fails to do so? > > Cheers > Tommy Grav > + > ----------------------------------------------------------------------------+ > Associate Researcher @ Dept. of Physics and Astronomy > Johns Hopkins University > + > ----------------------------------------------------------------------------+ > tgrav at pha.jhu.edu > (410) 516-7683 > http://web.mac.com/tgrav/Astronomy/Welcome.html > + > ----------------------------------------------------------------------------+ > > > > _______________________________________________ > AstroPy mailing list > AstroPy at scipy.org > http://mail.scipy.org/mailman/listinfo/astropy From tgrav at mac.com Mon Sep 14 11:37:15 2009 From: tgrav at mac.com (Tommy Grav) Date: Mon, 14 Sep 2009 11:37:15 -0400 Subject: [AstroPy] Pyfits nan issue In-Reply-To: <138B9D08-F028-4E3F-A3F7-93DD79C40287@stsci.edu> References: <9A1B5EBE-CF33-4C2C-9D86-D64A2931CE2D@mac.com> <138B9D08-F028-4E3F-A3F7-93DD79C40287@stsci.edu> Message-ID: <8944C65B-32FE-4B30-8616-4C89D0F078D6@mac.com> On Sep 14, 2009, at 11:06 AM, Perry Greenfield wrote: > After looking at the file, it may be an issue with how pyfits is > dealing with compressed data. We won't be able to look at it right > away, but we will fix it at some point in the next month or so. That would be great. If there is anything I can do to help please let me know. Cheers Tommy Grav + ----------------------------------------------------------------------------+ Associate Researcher @ Dept. of Physics and Astronomy Johns Hopkins University + ----------------------------------------------------------------------------+ tgrav at pha.jhu.edu (410) 516-7683 http://web.mac.com/tgrav/Astronomy/Welcome.html + ----------------------------------------------------------------------------+ From thomas.robitaille at gmail.com Thu Sep 24 08:06:36 2009 From: thomas.robitaille at gmail.com (Thomas Robitaille) Date: Thu, 24 Sep 2009 08:06:36 -0400 Subject: [AstroPy] Reading IDL .sav files into python Message-ID: <4CA52D3A-2483-4DF8-AD6E-21418151A2DC@gmail.com> Hi, Does anyone know of (or has anyone here developed) a python package or script to read variables in from IDL .sav files? Thanks! Tom From perry at stsci.edu Thu Sep 24 08:14:14 2009 From: perry at stsci.edu (Perry Greenfield) Date: Thu, 24 Sep 2009 08:14:14 -0400 Subject: [AstroPy] Reading IDL .sav files into python In-Reply-To: <4CA52D3A-2483-4DF8-AD6E-21418151A2DC@gmail.com> References: <4CA52D3A-2483-4DF8-AD6E-21418151A2DC@gmail.com> Message-ID: <3136B318-D6BE-4A22-8E0D-55E884D9C2E2@stsci.edu> Not that I know of, but this is probably where I would start: http://www.physics.wisc.edu/~craigm/idl/savefmt/ On Sep 24, 2009, at 8:06 AM, Thomas Robitaille wrote: > Hi, > > Does anyone know of (or has anyone here developed) a python package or > script to read variables in from IDL .sav files? > > Thanks! > > Tom > _______________________________________________ > AstroPy mailing list > AstroPy at scipy.org > http://mail.scipy.org/mailman/listinfo/astropy From jtaylor2 at stsci.edu Thu Sep 24 15:38:14 2009 From: jtaylor2 at stsci.edu (jtaylor2 at stsci.edu) Date: Thu, 24 Sep 2009 15:38:14 -0400 (EDT) Subject: [AstroPy] PyFITS Version 2.2 NOW AVAILABLE Message-ID: <20090924153814.ACD34444@comet.stsci.edu> **************************************** PyFITS Version 2.2 NOW AVAILABLE **************************************** The Science Software Branch of the Space Telescope Science Institute wishes to announce the availability of version 2.2 of PyFITS. This is the first announced release since version 2.1 in April 2009 and contains a number of enhancements and bug fixes. Notable Enhancements ==================== - Provide support for the FITS Checksum Keyword Convention. Adding the checksum=True keyword argument to the open convenience function will cause checksums to be verified on file open. hdul=pyfits.open('in.fits',checksum=True) On output, CHECKSUM and DATASUM cards may be output to all HDU's in a fits file by using the keyword argument checksum=True in calls to the writeto convenience function, the HDUList.writeto method, the writeto methods of all of the HDU classes, and the append convenience function. hdul.writeto('out.fits',checksum=True) - Implemented a new insert method to the HDUList class that allows for the insertion of a HDU into a HDUList at a given index. hdul.insert(2,hdu) - Provided the capability to handle unicode input for file names. - Provided support for integer division required by Python 3.0 Release Notes ============= Release notes for all versions of PyFITS may be found at: http://www.stsci.edu/resources/software_hardware/pyfits/release Where to Obtain this Software ============================= PyFITS can be downloaded for the PyFITS download web site: http://www.stsci.edu/resources/software_hardware/pyfits/Download Installation instructions are available on the web site. STSCI_PYTHON Support ==================== STSCI_PYTHON v2.8 contains PyFITS version 2.1.1. Array Package Support ===================== While the NUMARRAY array package is still supported at the PyFITS version 1.1 level, all updates in this release are for NUMPY only. Compatibility with NUMARRAY will be eliminated entirely after this release. As a result, you are advised to migrate to NUMPY as soon as possible, as no further support will be provided for the user of NUMARRAY. Information on making the switch to NUMPY form NUMARRAY can be found in this document: http://www.stsci.edu/resources/software_hardware/numarray/numarray2numpy.pdf From sierra_mtnview at sbcglobal.net Fri Sep 25 06:53:04 2009 From: sierra_mtnview at sbcglobal.net (Wayne Watson) Date: Fri, 25 Sep 2009 03:53:04 -0700 Subject: [AstroPy] -- [OT] Anyone with Experience Using WinTV Capture Cards? Message-ID: <4ABCA110.2070604@sbcglobal.net> A friend is looking for some help with how to use Python to access a WinTV (Go Plus) capture card, and how to display an image from it. Is there some facility that might help him, or does anyone have experience with such use that might suggest sources? Win XP OS. Any general methods for dealing with such commercially built capture cards? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39? 15' 7" N, 121? 2' 32" W, 2700 feet "I feel that if a person has problems communicating the very least he can do is to shut up." -- Tom Lehrer Web Page: From wkerzendorf at googlemail.com Mon Sep 28 11:38:14 2009 From: wkerzendorf at googlemail.com (Wolfgang Kerzendorf) Date: Mon, 28 Sep 2009 17:38:14 +0200 Subject: [AstroPy] sextractor on 10.6 Message-ID: <8010C3B4-6C66-47BE-A47F-E4EA181271D3@GMAIL.COM> Dear all, I know this is not strictly python related, but... . Has anyone been able to build sextractor on 10.6? Which version do you use? Cheers Wolfgang