Welcome to iraf.net Tuesday, April 23 2024 @ 11:43 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 problem with SPLOT
   
giannicatanzaro
 03/08/2011 11:57AM (Read 8916 times)  
++---
Junior

Status: offline


Registered: 03/08/2011
Posts: 16
I recently installed version 2.15 64bit and I get this error when I try
to SPLOT an image: echelle> splot LJHB0004
Image line/aperture to plot (0Smile (1):
ERROR: Pixel subscript out of bounds (LJHB0004)
can you give me some help?thanksGianni

 
Profile Email
 Quote
fitz
 03/08/2011 11:57AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
A 'pixel subscript out of bounds' usually means the FITS file is corrupted (isn't properly padded with zeroes to a full record, is scrambled somehow etc), or perhaps has a header problem. If you could post the image to the anonftp at ftp://iraf.noao.edu/pub we can probably spot the problem, otherwise there is no known issue with the task to explain the problem.

 
Profile Email
 Quote
nancy-mac
 03/08/2011 11:57AM  
+----
Newbie

Status: offline


Registered: 05/28/2007
Posts: 10
I get the same problem with splot, to wit:ecl> splot 6.fits
Image line/aperture to plot (0Smile (5):
ERROR: Pixel subscript out of bounds (6.fits)The 2.15.1a patch is installed, but does not help.I am running on Snow Leopard on a 17-inch MBP, 64-bit, recently installed iraf 2.15 in the scisoft installation.The error does not occur when I plot a wavelength-calibrated spectrum with a single line or with 9 lines (haven't tried a larger number) but only with a raw image with no wavelength calibration (x axis in pixels), in this case 800 X 1200. I can plot the image with implot, but splot used to work in iraf 2.14 in this setting, and splot is sooo much nicer for what I am trying to do.I have successfully plotted the same image and many others like it with IRAF 2.14, so the image is not corrupted. I'll gladly upload the image if you like, but you might want to try it yourself with a raw image of your own.

nancy-mac
 
Profile Email Website
 Quote
fitz
 03/08/2011 11:57AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Yes, please upload your problem image.Note also that scisoft included the original v2.15 release and recent patches have fixed some known issues. You should be sure to install the patch1.macx.x96_64.gz in the iraf root directory to overlay the patch file for OSX 64-bit on your existing version (it will replace binaries). If you still have problems after that, it may be data-related.

 
Profile Email
 Quote
nancy-mac
 03/08/2011 11:57AM  
+----
Newbie

Status: offline


Registered: 05/28/2007
Posts: 10
OK, I've uploaded a problem image to ftp://iraf.noao.edu/pub. The image is called splotbad20010409_6s.fits - it's only a small section of one of the large images I described earlier. It gives the same error, showing that the size of the image is not the issue.When I posted previously, I had already installed the patch1.macx.x96_64.gz. When IRAF starts, it says: NOAO/IRAF PC-IRAF Revision 2.15.1a EXPORT Mon Feb 21 18:54:16 MST 2011. The splot problem is not changed by the patch.Thanks for your attention to this.

nancy-mac
 
Profile Email Website
 Quote
nancy-mac
 03/08/2011 11:57AM  
+----
Newbie

Status: offline


Registered: 05/28/2007
Posts: 10
Another thought - it occurred to me that the issue might be the datatype of the problem image, which is 'short.' However, I tried to plot a 'real' image with splot, and I got the same error.ecl> imhead biasave
biasave[800,1200][real]: bias
ecl> splot biasave
Image line/aperture to plot (0Smile (9):
ERROR: Pixel subscript out of bounds (biasave)

nancy-mac
 
Profile Email Website
 Quote
fitz
 03/08/2011 11:57AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Thanks for posting the image. The problem was a bug in the 64-bit port of v2.15 that's been around from the initial alpha release but only shows up with certain data. The bug and fix are described inhttps://iraf.net/article.php/20110309004941989and the Buglog #578 story on the main page of this site.Since multiple binaries are affected, the v2.15.1a patch was re-issued to fix this for future installations and minimize the damage, likewise external packages for this bug were also rebuilt. Please re-install the patch1 file for your system to fix the file and do a "make update" in the $iraf/extern directory to update your packages. If you still have problems please let us know, thanks for the report.-Mike

 
Profile Email
 Quote
nancy-mac
 03/08/2011 11:57AM  
+----
Newbie

Status: offline


Registered: 05/28/2007
Posts: 10
As you suggested, I downloaded and installed the modified version of patch1.macx.x86_64.gz dated 3/9/11 7:07 AM.Since I have the SciSoft installation, I followed the instructions here. They did succeed in installing the 2.15.1a patch the first time.http://web.mac.com/npirzkal/Scisoft/News/Entries/2011/1/21_2011.1.1_Beta_1_Released.htmlHowever, it appears that no update was actually made:1. I still have the ERROR: Pixel subscript out of bounds in splot2. When IRAF starts, it says, NOAO/IRAF PC-IRAF Revision 2.15.1a EXPORT Mon Feb 21 18:54:16 MST 2011(today's date should be here, right?)3. The output from 'make update' says all packages are up to date.That patch file is really new, correct? Have I done something stupid? Thanks.

nancy-mac
 
Profile Email Website
 Quote
fitz
 03/08/2011 11:57AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I verified the patch file contains the updated binaries, you should likewise do a [code:1:769fe3ce36]cl> dir noaobin$x_onedspec.e long+[/code:1:769fe3ce36]to verify that the file was updated on March 8. Otherwise, you might have been in the wrong directory when you unpacked the tar file and are still running the original binary.

 
Profile Email
 Quote
nancy-mac
 03/08/2011 11:57AM  
+----
Newbie

Status: offline


Registered: 05/28/2007
Posts: 10
Thanks for the suggestion. Here is the result. My system time is EDT.So my binaries _were_ updated? This corresponds to the approximate time I made the latest attempt to update.ecl> dir noaobin$x_onedspec.e long+
xb-rwr-r- 4807528 Mar 9 16:27 noaobin$x_onedspec.eAgain, no improvement in the error.

nancy-mac
 
Profile Email Website
 Quote
fitz
 03/08/2011 11:57AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
That's the right file size for the new binary and using it on my system with your uploaded image works fine. What is the output of the command:[code:1:259b605654]cl> =osfn("noaobin$")[/code:1:259b605654]Is there perhaps another x_onedspec.e on the system somewhere?

 
Profile Email
 Quote
nancy-mac
 03/08/2011 11:57AM  
+----
Newbie

Status: offline


Registered: 05/28/2007
Posts: 10
Thanks for the reply. To your questions: [code:1:0773921405]ecl> =osfn("noaobin$")/usr/local/scisoft//packages/iraf/iraf/noao/bin.macintel/[/code:1:0773921405][code:1:0773921405]find / -name x_onedspec.e -print
...
/usr/local/scisoft/packages/iraf/iraf/noao/bin.macintel/x_onedspec.e
...
/usr/local/scisoft/packages/iraf/irafbin/noao.bin.macintel/x_onedspec.e
[/code:1:0773921405]
[code:1:0773921405]ecl> dir noaobin$ lo+
-t-r-r-r- 3821 0 Feb 25 2010 noaobin$IRAF.NET
-t-r-r-r- 3821 0 Feb 25 2010 noaobin$NB.MACX.x86_64
-b-rwr-r- iraf 6347189 Feb 21 16:54 noaobin$OBJS.arc.Z
-b-rwr-r- iraf 43928 Feb 21 16:50 noaobin$libasttools.a
-b-rwr-r- iraf 265504 Feb 21 16:50 noaobin$libsmw.a
xb-rwr-r- root 2680736 Mar 9 16:27 noaobin$x_apextract.e
xb-rwr-r- root 3199000 Mar 9 16:27 noaobin$x_apphot.e
...
[/code:1:0773921405]
If I list the other directory I get:[code:1:0773921405]ecl> cd /usr/local/scisoft/packages/iraf/irafbin/noao.bin.macintel/
ecl> dir lo+
-t-rwr-r- 3821 0 Dec 1 2007 IRAF.NET
-t-rwr-r- 3821 0 Dec 1 2007 NB.MACX.X86
-b-rwr-r- 3821 8248297 Sep 8 2008 OBJS.arc.Z
-b-rwr-r- 3821 50892 Sep 8 2008 libasttools.a
-b-rwr-r- 3821 307308 Sep 8 2008 libsmw.a
xb-rwr-r- 3821 1983844 Sep 8 2008 x_apextract.e
xb-rwr-r- 3821 2340236 Sep 8 2008 x_apphot.e
xb-rwr-r- 3821 1906004 Sep 8 2008 x_artdata.e
...
[/code:1:0773921405]I wonder whether the versions of Sep 8, 2008 are the previous installation (2.14) moved here by the installer when I installed the latest scisoft. IRAF 2.14 worked fine.For what it's worth, one of my tcsh environment variables is listed as:PWD=/usr/local/scisoft/packages/iraf/irafbin/noao.bin.macintelInsight? Thanks!

nancy-mac
 
Profile Email Website
 Quote
fitz
 03/08/2011 11:57AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
If the 2008 binaries were being run then there shouldn't be a problem (at least, not the problem I fixed), but there should only be one set of binaries in the system anyway.An easy way to see exactly which binary is being run is to start up SPLOT in one window, and then in another terminal use the command[code:1:364a6f0afd]% ps -efwww | grep onedspec[/code:1:364a6f0afd]If the path is /usr/local/scisoft/packages/iraf/iraf/noao/bin.macintel/x_onedspec.e
and that file is 4807528 bytes big then it's definitely running the patched binary and there may be a second bug to be fixed.

 
Profile Email
 Quote
giannicatanzaro
 03/08/2011 11:57AM  
++---
Junior

Status: offline


Registered: 03/08/2011
Posts: 16
[quote:e334156c0c="fitz"]A 'pixel subscript out of bounds' usually means the FITS file is corrupted (isn't properly padded with zeroes to a full record, is scrambled somehow etc), or perhaps has a header problem. If you could post the image to the anonftp at ftp://iraf.noao.edu/pub we can probably spot the problem, otherwise there is no known issue with the task to explain the problem.[/quote:e334156c0c]I uploaded the image LJHB0004.fts. I use IRAF v2.15 on a 64bit system based on openSUSE 11.3thanks for your help

 
Profile Email
 Quote
nancy-mac
 03/08/2011 11:57AM  
+----
Newbie

Status: offline


Registered: 05/28/2007
Posts: 10
[quote:94a08d2a25="fitz"]An easy way to see exactly which binary is being run is to start up SPLOT in one window, and then in another terminal use the command[code:1:94a08d2a25]% ps -efwww | grep onedspec[/code:1:94a08d2a25]If the path is /usr/local/scisoft/packages/iraf/iraf/noao/bin.macintel/x_onedspec.e
and that file is 4807528 bytes big then it's definitely running the patched binary and there may be a second bug to be fixed.[/quote:94a08d2a25]Did the test you suggested, your criteria are satisfied, and yes, the patched binary is running. You are right, the old binaries shouldn't be there.I guess my next step is to try additional onedspec tasks and see what symptoms show up.An image from our other camera also draws the splot error. I'll do further tests during the next few days and get back to you.Thanks for all the help! I have learned some Unix tips from this dialog.

nancy-mac
 
Profile Email Website
 Quote
fitz
 03/08/2011 11:57AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Please try applying the patch file again. I've found a problem that would explain why it works on one machine but not another and rebuilt the binaries after fixing it. For both uploaded test images, and for all my test machines, SPLOT now seems to work as it is supposed to.Sorry for the inconvenience.

 
Profile Email
 Quote
nancy-mac
 03/08/2011 11:57AM  
+----
Newbie

Status: offline


Registered: 05/28/2007
Posts: 10
It works now! Thank you for persevering!On to the beauties of exploration of the universe!

nancy-mac
 
Profile Email Website
 Quote
   
Content generated in: 0.75 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login