[AstroPy] AstroPy Digest, Vol 85, Issue 21

Blaise Tapsoba twblaise1er at gmail.com
Tue Oct 29 11:55:31 EDT 2013


On 29 Oct 2013, at 4:55 PM, astropy-request at scipy.org wrote:

> Send AstroPy mailing list submissions to
> 	astropy at scipy.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mail.scipy.org/mailman/listinfo/astropy
> or, via email, send a message with subject or body 'help' to
> 	astropy-request at scipy.org
> 
> You can reach the person managing the list at
> 	astropy-owner at scipy.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AstroPy digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: reading table from string (Erik Bray)

For this question I often use :
file = loadtxt('table.txt', skiprows  = 3)

column_1 = file[:,0] # all the first column
row_1 = file[0,:]  # all the second row

Blaise
(Ignore the previous email )
>   2. Regrid images (Ruben Herrero-Illana)
>   3. Re: Regrid images (Sofia Lianou)
>   4. Re: Regrid images (Tim Jenness)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 28 Oct 2013 14:22:42 -0400
> From: Erik Bray <embray at stsci.edu>
> Subject: Re: [AstroPy] reading table from string
> To: <astropy at scipy.org>
> Message-ID: <526EAB72.9030505 at stsci.edu>
> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed
> 
> Indeed it does look like an issue has been opened about this:
> 
> https://github.com/astropy/astropy/issues/1692
> 
> As I suggested it's sort of the "intended" behavior, but that doesn't make it 
> right as it's obviously confusing in this case.
> 
> Erik
> 
> On 10/24/2013 11:34 PM, Semyeong Oh wrote:
>> Hi,
>> 
>> If I use 'names' keyword when reading a table from string,
>> the first line is ignored.
>> 
>> new="""
>> 3102  0.32 <tel:3102%C2%A0%200.32>      4167  4085   Q1250+568-A
>> 877   0.22      4378  3892   "Source 82"
>> """
>> t = ascii.read(new, names=['obsid','redshift','X','Y','object'])
>> print t
>> 
>> 
>> obsid redshift  X    Y     object
>> ----- -------- ---- ---- ---------
>>   877     0.22 4378 3892 Source 82
>> 
>> 
>> Is this a bug?
>> 
>> Thanks,
>> Semyeong
>> 
>> 
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy at scipy.org
>> http://mail.scipy.org/mailman/listinfo/astropy
>> 
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 29 Oct 2013 12:45:01 +0100
> From: Ruben Herrero-Illana <herrero at iaa.es>
> Subject: [AstroPy] Regrid images
> To: astropy at scipy.org
> Message-ID: <2BF337C0-A1B8-4AF8-803B-FB3ACFB0EB20 at iaa.es>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi,
> 
> I often need to regrid an image to have the same pixel size, shape and coordinate system as other. Usually I use the CASA task 'imregrid', but I'm wondering if there is something similar implemented in AstroPy. 
> 
> Thank you!
> 
> Cheers,
> Rub?n
> 
> 
> ---------------------------------------------
> Rub?n Herrero-Illana
> Instituto de Astrof?sica de Andaluc?a (IAA-CSIC)
> Glorieta de la Astronom?a s/n
> 18008 - Granada (Spain)
> Tel: (+34) 958 230 536
> Fax: (+34) 958 814 530
> herrero at iaa.es
> ---------------------------------------------
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mail.scipy.org/pipermail/astropy/attachments/20131029/31e9faac/attachment-0001.html 
> 
> ------------------------------
> 
> Message: 3
> Date: Tue, 29 Oct 2013 10:24:47 -0400
> From: Sofia Lianou <slianou at uwo.ca>
> Subject: Re: [AstroPy] Regrid images
> To: Ruben Herrero-Illana <herrero at iaa.es>, astropy at scipy.org
> Message-ID: <7730fd0d19b6d.526f8cef at uwo.ca>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi Ruben,?
> 
> We are currently working on a module, called imagecube, of which one task is designed to do exactly this. The plan is to submit this module under astropy in the near future. 
> 
> 
> We will be happy to share in advance of formal release a preliminary copy of the module, so please contact us if you have an interest on this: Jeff Taylor <jeff.c.taylor at gmail.com>; Sophia Lianou <sophia.thl at gmail.com>; Pauline Barmby <pbarmby at uwo.ca> . 
> 
> Cheers,
> Sophia
> 
> On 10/29/13, Ruben Herrero-Illana  <herrero at iaa.es> wrote:
>> 
>> 
>> 
>> 
>> Hi,
>> 
>> 
>> I often need to regrid an image to have the same pixel size, shape and coordinate system as other. Usually I use the CASA task 'imregrid', but I'm wondering if there is something similar implemented in AstroPy. 
>> 
>> 
>> Thank you!
>> 
>> 
>> Cheers,
>> Rub?n
>> 
>> 
>> 
>> 
>> ---------------------------------------------
>> Rub?n Herrero-Illana
>> 
>> Instituto de Astrof?sica de Andaluc?a (IAA-CSIC)
>> Glorieta de la Astronom?a s/n
>> 18008 - Granada (Spain)
>> 
>> Tel: (+34) 958 230 536
>> Fax: (+34) 958 814 530
>> herrero at iaa.es
>> ---------------------------------------------
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mail.scipy.org/pipermail/astropy/attachments/20131029/dc86cc6a/attachment-0001.html 
> 
> ------------------------------
> 
> Message: 4
> Date: Tue, 29 Oct 2013 08:01:05 -0700
> From: Tim Jenness <tim.jenness at gmail.com>
> Subject: Re: [AstroPy] Regrid images
> To: Ruben Herrero-Illana <herrero at iaa.es>, astropy <AstroPy at scipy.org>
> Message-ID:
> 	<CA+G92RfC+coM_LFneeAFyTXSYOzYxnnHq4NWVTt+psm_nw-oEw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> pyast can do this (there is an option for resampling or flux conserving
> rebinning).
> 
> -- 
> Tim Jenness
> 
> 
> On Tue, Oct 29, 2013 at 4:45 AM, Ruben Herrero-Illana <herrero at iaa.es>wrote:
> 
>> Hi,
>> 
>> I often need to regrid an image to have the same pixel size, shape and
>> coordinate system as other. Usually I use the CASA task 'imregrid', but I'm
>> wondering if there is something similar implemented in AstroPy.
>> 
>> Thank you!
>> 
>> Cheers,
>> Rub?n
>> 
>> 
>> ---------------------------------------------
>> Rub?n Herrero-Illana
>> Instituto de Astrof?sica de Andaluc?a (IAA-CSIC)
>> Glorieta de la Astronom?a s/n
>> 18008 - Granada (Spain)
>> Tel: (+34) 958 230 536
>> Fax: (+34) 958 814 530
>> herrero at iaa.es
>> ---------------------------------------------
>> 
>> 
>> _______________________________________________
>> AstroPy mailing list
>> AstroPy at scipy.org
>> http://mail.scipy.org/mailman/listinfo/astropy
>> 
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mail.scipy.org/pipermail/astropy/attachments/20131029/04323ae5/attachment.html 
> 
> ------------------------------
> 
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
> 
> 
> End of AstroPy Digest, Vol 85, Issue 21
> ***************************************




More information about the AstroPy mailing list