Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IRAF 2.16 mscred ccdproc problem
Goto page 1, 2  Next
 
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF
View previous topic :: View next topic  
Author Message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Sat Mar 24, 2012 4:04 pm    Post subject: IRAF 2.16 mscred ccdproc problem Reply with quote

I successfully installed IRAF 2.16 and got problems with the mscred package.
I can run:
Code:
mscred> ccdlist b0212

and I get:
Code:
b0212[im1][1036,2032][ushort][][1][]:SYM6712
b0212[im2][1036,2032][ushort][][2][]:SYM6712

with successful "setinstr" (as in v. 2.15, it worked fine), I run:
Code:
ccdproc b0212 overs+ trim+ merge-

and I get:
Code:
ERROR: Cannot open file (b0212)
  "imcopy (input//"[0]", outname, verbose=no)"
     line 288: mscsrc$ccdproc.cl
     called as: `ccdproc (images=b0212, overscan=yes, trim=yes, merge=no)'

Thank you for any advice.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sat Mar 24, 2012 4:33 pm    Post subject: Reply with quote

Two questions: 1) Which architecture is this? And b) if you run the IMCOPY command by itself does it work, e.g.

Code:

imcopy ("b0212[0]", "foo.fits", verbose=no)


do you see the same error?

The V2.16 REPO is full but I haven't yet had time to verify that all the packages were relinked yet.
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Sat Mar 24, 2012 4:48 pm    Post subject: Reply with quote

fitz wrote:
Two questions: 1) Which architecture is this? And b) if you run the IMCOPY command by itself does it work, e.g.

Code:

imcopy ("b0212[0]", "foo.fits", verbose=no)


do you see the same error?

The V2.16 REPO is full but I haven't yet had time to verify that all the packages were relinked yet.


I use the 32-bit linux architecture installed from "iraf-linux.tar.gz".
When I run:
Code:
mscred> imcopy ("b0212[0]", "foo.fits", verbose=no)

I get:
Code:
Cannot open file (b0212)

so the problem remains. But I have an image "vbias" created with the v. 2.15 with "ccdproc ... merge+" and I can "imcopy" it without any problem. So I am in trouble only with MEF files.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sat Mar 24, 2012 5:10 pm    Post subject: Reply with quote

It seems to want the ".fits" extension explicitly, I'm looking at it .....
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Sat Mar 24, 2012 5:31 pm    Post subject: Reply with quote

When I put:
Code:
imcopy ("b0212.fits", "foo.fits", verbose=no)

I get:
Code:
ERROR: FXF: must specify which FITS extension (b0212.fits)

and the code:
Code:
mscred> imcopy ("b0212.fits[0]", "foo.fits", verbose=no)

gives the "foo.fits" but this is an image header inside, the same as:
Code:
imhead b0212.fits[0] lo+
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sat Mar 24, 2012 5:36 pm    Post subject: Reply with quote

The quick workaround is to do

Code:

cl> reset use_new_imt = no
cl> flpr 0                     (zero, not oh)


to defeat the new image expansion code and get back the old behavior, but otherwise your last report is what I would expect from v215 as well. Note you can also change the default setting of 'use_vo' in the hlib$zzsetenv.def file


Last edited by fitz on Sat Mar 24, 2012 8:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Sat Mar 24, 2012 5:41 pm    Post subject: Reply with quote

Yes, the "quick workaround" works well and the code:
Code:
ccdproc b0212 overs+ trim+ merge+

works without any problem. Thank you so far.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Sun Mar 25, 2012 5:18 am    Post subject: Reply with quote

The bug has been fixed and the distribution files were updated with the patch. I was planning to wait a few days to see what else is reported before building a proper patch update, for now I hope you won't mind downloading the v216 installation file and unpacking it once more. Thanks for the report.
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Sun Mar 25, 2012 11:29 am    Post subject: Reply with quote

Unpacked new "iraf-linux.tar.gz" and I get:
Code:
mscred> ccdlist b
b[im1][1036,2032][ushort][][1][]:SYM6712
b[im2][1036,2032][ushort][][2][]:SYM6712
mscred> ccdproc b
b[im1]: Mar 25 13:20 Trim is [9:1016,9:2024]
b[im1]: Mar 25 13:20 Overscan is [1020:1035,9:2024], mean 1798.776
b[im2]: Mar 25 13:20 Trim is [9:1016,9:2024]
b[im2]: Mar 25 13:20 Overscan is [1020:1035,9:2024], mean 1798.086
ERROR: Cannot open file (tmp$ccdproc4264eP)
  "sigscale=0.1, pclip=-0.5, grow=0., verbose=no)"
     line 417: mscsrc$ccdproc.cl
     called as: `ccdproc (images=b)'
mscred> ccdlist tmp$ccdproc4264eP
tmp$ccdproc4264eP[im1][1008,2016][real][object][1][][OT]:SYM6712
tmp$ccdproc4264eP[im2][1008,2016][real][object][2][][OT]:SYM6712

So I make:
Code:
mscred> reset use_new_imt = no
mscred> ccdproc b
b[im1]: Mar 25 13:25 Trim is [9:1016,9:2024]
b[im1]: Mar 25 13:25 Overscan is [1020:1035,9:2024], mean 1798.776
b[im2]: Mar 25 13:25 Trim is [9:1016,9:2024]
b[im2]: Mar 25 13:25 Overscan is [1020:1035,9:2024], mean 1798.086
b: Merge amplifiers

And it worked. Still problems.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Mon Mar 26, 2012 1:30 am    Post subject: Reply with quote

Could I ask you to please download the system once more? If its the problem I think it is then it should be fixed, otherwise I need to get some data so I can reproduce the problem. Thanks.
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Mon Mar 26, 2012 4:35 pm    Post subject: Reply with quote

I downoladed today a new 32bin linux version, installed it, and the problem remains. I also tried download the example image into
Code:
anonymous@iraf.noao.edu/pub

but it was not possible, because I do not have sufficient permission to do it.[/code]
Back to top
View user's profile Send private message
valdes
IRAF Guru


Joined: 11 Nov 2005
Posts: 676

PostPosted: Mon Mar 26, 2012 9:15 pm    Post subject: Reply with quote

Hi,

I used some dual-amp Mosaic data and tried to reproduce a problem with the latest V2.16. So could you please put an problem image in the ftp pub area and let me know. Also the parameter listing from "lpar mscred ccdproc" and any thing else you think might be appropriate, such as if you have a personalized instrument file.

Thanks,
Frank Valdes
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Tue Mar 27, 2012 8:06 am    Post subject: Reply with quote

I was not able to ftp it, so I put the data on my server and wrote a private message to you on the iraf.net and an e-mail to the "Contat Us" how to download the problematic image. Thank you,
rj
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Mar 29, 2012 5:38 am    Post subject: Reply with quote

Thanks for the data and the detailed log, I was able to reproduce the problem and found that aside from the earlier problem in the template expansion, the MSCRED package was accidently relinked with a pre-release version of the system containing a second bug. These have both now been fixed and verified and I was able to run your data with no problem without having to use the workaround.

You'll need to re-install both IRAF and MSCRED. I've built the IRAF patch but not the update script yet so simply get the new distribution file once again (sorry for the repeat installs). To update MSCRED (and all other packages), just do

Code:

% cd $iraf/extern
% make update


Thanks again for your report, and your patience.
Back to top
View user's profile Send private message
rji
Active IRAF User


Joined: 21 Apr 2007
Posts: 87

PostPosted: Thu Mar 29, 2012 9:56 am    Post subject: Reply with quote

I dowloaded the file "iraf.lnux.x86.tar.gz" from a link of:
Code:
http://iraf.noao.edu/

and it did not work - the situation was the same. So I opened:
Code:
ftp://iraf.noao.edu/iraf/v216/PCIX/

and found there "iraf.lnux.x86.tar.gz" (191660 KB, 03/23/2012, 01:25:00 AM) and "iraf.lnux.x86.gz" (195880 KB, 03/28/2012, 08:04:00 PM). I dowloaded the second one, made the installation and I was able to get the correct result. Thank you.

The problem is with PyRAF:
Code:
PyRAF 1.11 Copyright (c) 2002 AURA
Python 2.6.6 Copyright (c) 2001-2010 Python Software Foundation.
Python/CL command line wrapper
  .help describes executive commands
--> mscred
...
--> displ a[1] 1
z1=1794.741 z2=1829.
--> displ a[2] 1
z1=1784.413 z2=1839.642
--> ccdlist a
a[im1][1036,2032][ushort][][1][]:SYBIA_1
a[im2][1036,2032][ushort][][2][]:SYBIA_1
--> ccdproc a
Instrument (? for a list) ('instrmsc'):
Warning: Cannot open file (instrmsc)
Killing IRAF task `imheader'
Traceback (innermost last):
  File "<CL script CL1>", line 1, in <module>
  File "<CL script mscred.ccdproc>", line 192, in ccdproc
    if (iraf.imaccess(Vars.outname + '[0]') == yes):
IrafError: Error running IRAF task imheader
IRAF task terminated abnormally
ERROR (741, "Cannot open file (tmp$ccdproc12836cN)")
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> General IRAF All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.11 seconds