[AstroPy] photometry in pyraf

Joe Philip Ninan indiajoe@gmail....
Tue Jan 10 09:40:28 CST 2012


Hi Chris,
I am facing a weird problem with tpar
I have installed urwid-1.0.1
When I run tpar for first time in pyraf interface. it works properly.
After that when I open tpar again and presses q after :, I get two qq 'es
i.e.    :qq
Pressing enter after that exists tpar. But the terminal will not show
anything i type after that.
Inspite of that, if I type any command blindly and press enter, it does
execute it.
For example if i type .exit , it does exit from pyraf and terminal shows my
bash prompt.
But still nothing shows up when i type any command in terminal. (yet it
executes everything if i press enter!!)
Interesting part is this problem persists (till I close the terminal), even
after exiting from pyraf.

I don't know whether this is related, but I shall point out that I am also
getting a Deprecation Warning when I call the tpar first time.
------------
*/usr/lib/python2.6/site-packages/urwid-1.0.1-py2.6-linux-i686.egg/urwid/listbox.py:54:
DeprecationWarning: PollingListWalker is deprecated, use SimpleListWalker
instead.
  "use SimpleListWalker instead.", DeprecationWarning)
*-------------------------

Thanking you,
Joe


On 10 January 2012 12:29, Joe Philip Ninan <indiajoe@gmail.com> wrote:

> Hi Chris,
> Taro's suggestion worked for me.
> I anyway required a terminal version of epar. So tpar will be quite useful
> for me.
> Thanks a lot.
> Joe
>
>
> On 10 January 2012 02:37, Chris Sontag <sontag@stsci.edu> wrote:
>
>>  Hi Joe,
>>
>> If Taro's suggestion isn't working for you, let me know off list.  There
>> are a few different options to get this to work the way you need.
>>
>> And if there is a bug (or "unexpected feature"), we'd like to fix it.
>>
>> Finally, I believe we can get EPAR to do what you want, but to answer
>> your question about a non-GUI version, yes, you can try "tpar" in PyRAF,
>> for a terminal version (it requires the "urwid" package).
>>
>> Chris
>>
>>
>> On 1/7/12 2:23 AM, Joe Philip Ninan wrote:
>>
>> Hi,
>> I have been recently rewriting to pyraf all my photometry iraf scripts.
>> For using the daofind and then phot task in noan.digiphot.daophot we
>> first have to set the parameter files.
>> Following is that section from my code.
>> #--------------------(all the variables fwhm psfradi sigma datamin
>> aperture etc. have been defined before in code)---------
>>     iraf.daopar(matchra=fwhm, psfrad=psfradi, fitrad=fwhm)
>>     iraf.datapar(fwhmpsf=fwhm, sigma=sigma, datamin=datamin,
>> datamax=65000 , readnoi=4.8 , epadu=1.22 ,itime=intime,
>> ifilter=filterr)
>>     iraf.fitskypar(annulus=270, dannulu=12 )
>>     iraf.photpar(apertur=aperture)
>>     iraf.daofind(image=img)
>>     #Going forward to do phot
>>     iraf.phot(image=img)
>> #----------------------------------------------------
>> Now , when I run this code. It does displays the epar daopar, datapar
>> etc in the GUI epar window of the pyraf with all correct values set.
>> But when I press "Save & Quit" button and reaches the daofind or phot
>> task. It is executing without all the seted parameters.
>> It looks like inspite of me clicking on "Save & Quit" button. It is
>> not getting saved. and the phot and daofind task are using some
>> default setting in my uparm/
>> In iraf, I had the same problem if i gave :wq in epar. But if I gave
>> :w and then :q separately it used to work.
>> There is no :w equivalent button in pyraf's GUI epar window.
>>
>> Can somebody point out some workaround for this problem? Is it
>> possible in pyraf to get the non GUI epar window of iraf?
>> Thanking you
>> Joe
>>
>> --
>> /-----------------------------------------------------------
>> ----
>> "GNU/Linux: because a PC is a terrible thing to waste" -  GNU Generation
>> _______________________________________________
>> AstroPy mailing listAstroPy@scipy.orghttp://mail.scipy.org/mailman/listinfo/astropy
>>
>>
>
>
> --
> /---------------------------------------------------------------
> "GNU/Linux: because a PC is a terrible thing to waste" -  GNU Generation
>
> ************************************************
> Joe Philip Ninan    http://sites.google.com/site/jpninan/
> Research Scholar        /________________\
> DAA,                            | Vadakeparambil |
> TIFR,                           | Pullad P.O.         |
> Mumbai-05, India.      | Kerala, India      |
> Ph: +917738438212   | PIN:689548       |
> ------------------------------\_______________/--------------
>
>


-- 
/---------------------------------------------------------------
"GNU/Linux: because a PC is a terrible thing to waste" -  GNU Generation

************************************************
Joe Philip Ninan    http://sites.google.com/site/jpninan/
Research Scholar        /________________\
DAA,                            | Vadakeparambil |
TIFR,                           | Pullad P.O.         |
Mumbai-05, India.      | Kerala, India      |
Ph: +917738438212   | PIN:689548       |
------------------------------\_______________/--------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/astropy/attachments/20120110/45fc3ea9/attachment.html 


More information about the AstroPy mailing list