Problem usung Splot to analyze a FITS fite
Khary Richardson wrote on Jul 19, 2011
Hi,
When I try to use splot to analyze a fits file I get a weird output of numbers and letters. I think I maybe missing something to properly display the FITS image. Any help would be greatly appreciated. Thanks
When I try to use splot to analyze a fits file I get a weird output of numbers and letters. I think I maybe missing something to properly display the FITS image. Any help would be greatly appreciated. Thanks
onedspec> splot /home/student/COSMOS_files/magellan_opt_095737+024329_spec_31.fits
Image line/aperture to plot (0:) (1): 1
server # XGTERM.GUI -- Default GUI for Xgterm, providing a standard graphics terminal
# emulation.
reset-server
appInitialize irafterm IRAFterm {
IRAFterm.objects: toplevel Gterm gterm
*allowShellResize: true
*gterm.warpCursor: true
*gterm.raiseWindow: true
*gterm.deiconifyWindow: true
}
createObjects
send gterm setGterm
activate
sre[]ssz[R]
rir
rir/nc[9] ` @ `?_8k?_8k @/nc[0]#r#S#r<K6f<K6f#S/0d`/nw[2]/nc[5]#r#S#r&\$c&\#r&\0/nc[6]"p&B6000/nc[5]#r&\#r-L$c-L#r-L/nc[6]"p,R7000/nc[5]#r-L#r3\$c3\#r3\/nc[6]"p3B8000/nc[5]#r3\#r:L$c:L#r:L/nc[6]"p9R9000/nc[5]#r:L#r<K#r<K&a<K&a;Y&a<K*}<K*};Y*}<K/z<K/z;Y/z<K4v<K4v;Y4v<K6f<K#r#S&a#S&a$E&a#S/nc[6]%v!Y6000/nc[5]&a#S*}#S*}$E*}#S/nc[6]*r!Y7000/nc[5]*}#S/z#S/z$E/z#S/nc[6]/n!Y8000/nc[5]/z#S4v#S4v$E4v#S/nc[6]4j!Y9000/nc[5]4v#S6f#S6f#S6f&\5t&\6f&\6f-L5t-L6f-L6f3\5t3\6f3\6f:L5t:L6f:L6f<K/nc[3]!m+SWavelength (angstroms)7h$MNOAO/IRAF V2.15.1a student@ubuntu Mon 23:02:32 18-Jul-20116q @udent/COSMOS_files/magellan_opt_095737+024329_spec_31.fits[*,1]]: F1_85 1.1E4 ap/nw[1]/nc[1]$c$I$c$J$d$J$e$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l5^1l5_1m6A1o6B1o6C1p6D1q6E1q6F1r6G1s6G1t6I1t6J1u6K1u6K1v6L1w6N1x6N1y6P1z6R1{6R1{6S1|6T1}6U1~6W16X2`6Y2`6Z2a6[2b6\2c6]2d6_2f7A2f7A2g7B2h7D2h7D2i7F2k7G2k7H2l7I2m7J2m7K2n7L2p7N2p7O2q7P2q7P2r7R2s7S2s7S2u7U2v7W2v7W2w7X2x7Y2x7Z2z7\2{7]2{7^2|7_2}8@2~8A28B3`8D3a8F3b8F3c8G3c8I3d8I3e8K3f8M3g8M3h8N3i8O3i8P3j8R3k8S3l8T3m8U3n8V3n8W3o8X3o8X3q8Z3r8\3r8\3s8]3t8^3t8_3v9A3w9B3w9C3x9D3y9E3y9F3{9G3|9I3|9J3}9K3~9K3~9M39N4`9N4a9P4b9R4c9R4d9S4d9T4e9U4f9W4g9X4h9Y4i9Z4i9[4j9\4k9]4l9_4n:A4n:A4o:B4p:D4p:D4q:F4s:G4s:H4t:I4u:J4u:K4w:M4x:N4x:O4y:P4z:Q4z:R4{:S4|:S4}:U4~:W4:W4:X5`:Y5a:Z5b:\5c:]5d:^5d:_5e;@5f;A5g;B5h;D5i;E5j;F5j;F5k;G5l;I5l;I5m;K5o;M5o;M5p;N5q;O5q;P5r;R5t;S5t;T5u;U/
Mike Fitzpatrick wrote on Jul 19, 2011
It means you're not actually using an XGterm window to run iraf. If you're using an XTerm then you can do a MKIRAF and change the terminal type, or do
on the commandline to change it. Terminals like rxvt, gnome-terminal, Terminal.app, etc do not support graphics and cannot be used for plots.
cl> stty xtermjh ; gflushon the commandline to change it. Terminals like rxvt, gnome-terminal, Terminal.app, etc do not support graphics and cannot be used for plots.
Khary Richardson wrote on Jul 19, 2011
Hi Fitz,
thanks for the reply. When I did the install I remember setting up an xgterm
doing
And typing xgtermc
Can I go back and redo it?
thanks for the reply. When I did the install I remember setting up an xgterm
doing
Initialize uparm? (y|n): y
Terminal types: xgterm,xterm,gterm,vt640,vt100,etc.And typing xgtermc
Can I go back and redo it?
Khary Richardson wrote on Jul 19, 2011
This is from login.cl in the IRAF directory
set home = "/home/student/IRAF/"
set imdir = "/home/iraf/imdirs/student/"
set uparm = "home$uparm/"
set userid = "student"
Mike Fitzpatrick wrote on Jul 19, 2011
You can do a MKIRAF and reset the default terminal type at any time, this just recreates the login.cl file. Keep in mind however, this does NOT install xgterm for you or cause one to be started, it is simply your way of telling IRAF that you have logged in using an XGterm teminal window, but installing xgterm on your machine and starting it are up to you.
Khary Richardson wrote on Jul 19, 2011
fitz
It means you're not actually using an XGterm window to run iraf. If you're using an XTerm then you can do a MKIRAF and change the terminal type, or do
cl> stty xtermjh ; gflush
on the commandline to change it. Terminals like rxvt, gnome-terminal, Terminal.app, etc do not support graphics and cannot be used for plots.
Fitz,
Tried the above and got the same out put.
student@ubuntu:~/IRAF$ cl stty xtermjh ; gflush
setting terminal type to xgterm...
NOAO/IRAF PC-IRAF Revision 2.15.1a EXPORT Mon Feb 21 18:54:16 MST 2011
This is the EXPORT version of IRAF V2.15.1a supporting PC systems.
Welcome to IRAF. To list the available commands, type ? or ??. To get
detailed information about a command, type `help <command>'. To run a
command or load a package, type its name. Type `bye' to exit a
package, or `logout' to get out of the CL. Type `news' to find out
what is new in the version of the system you are using.
Visit http://iraf.net if you have questions or to report problems.
The following commands or packages are currently defined:
dataio. language. obsolete. softools. tables.
dbms. lists. plot. stsdas. utilities.
images. noao. proto. system.
ecl> noao
artdata. digiphot. nobsolete. onedspec.
astcat. focas. nproto. rv.
astrometry. imred. observatory surfphot.
astutil. mtlocal. obsutil. twodspec.
noao> onedspec
aidpars@ dopcor refspectra scopy slist
autoidentify fitprofs reidentify sensfunc specplot
bplot identify rspectext setairmass specshift
calibrate lcalib sapertures setjd splot
continuum mkspec sarith sfit standard
deredden names sbands sflip telluric
dispcor ndprep scombine sinterp wspectext
disptrans odcombine scoords skytweak
onedspec> splot /home/student/COSMOS_files/magellan_opt_095737+024329_spec_31.fits
Image line/aperture to plot (0:) (1): 1
server # XGTERM.GUI -- Default GUI for Xgterm, providing a standard graphics terminal
# emulation.
reset-server
appInitialize irafterm IRAFterm {
IRAFterm.objects: toplevel Gterm gterm
*allowShellResize: true
*gterm.warpCursor: true
*gterm.raiseWindow: true
*gterm.deiconifyWindow: true
}
createObjects
send gterm setGterm
activate
sre[]ssz[R]
rir
rir/nc[9] ` @ `?_8k?_8k @/nc[0]#r#S#r<K6f<K6f#S/0d`/nw[2]/nc[5]#r#S#r&\$c&\#r&\0/nc[6]"p&B6000/nc[5]#r&\#r-L$c-L#r-L/nc[6]"p,R7000/nc[5]#r-L#r3\$c3\#r3\/nc[6]"p3B8000/nc[5]#r3\#r:L$c:L#r:L/nc[6]"p9R9000/nc[5]#r:L#r<K#r<K&a<K&a;Y&a<K*}<K*};Y*}<K/z<K/z;Y/z<K4v<K4v;Y4v<K6f<K#r#S&a#S&a$E&a#S/nc[6]%v!Y6000/nc[5]&a#S*}#S*}$E*}#S/nc[6]*r!Y7000/nc[5]*}#S/z#S/z$E/z#S/nc[6]/n!Y8000/nc[5]/z#S4v#S4v$E4v#S/nc[6]4j!Y9000/nc[5]4v#S6f#S6f#S6f&\5t&\6f&\6f-L5t-L6f-L6f3\5t3\6f3\6f:L5t:L6f:L6f<K/nc[3]!m+SWavelength (angstroms)7h$MNOAO/IRAF V2.15.1a student@ubuntu Tue 00:08:12 19-Jul-20116q @udent/COSMOS_files/magellan_opt_095737+024329_spec_31.fits[*,1]]: F1_85 1.1E4 ap/nw[1]/nc[1]$c$I$c$J$d$J$e$K$e$L$f$M$g$O$h$P$i$Q$j$R$j$S$k$T$m$V$m$V$n$X$n$X$o$Y$p$Z$p$[$r$]$s$^$s$_$t%@$u%A$u%B$w%C$x%E$x%F$y%G$z%H$z%H$|%J$}%L$~%M$%N%`%O%`%P%a%Q%b%S%c%T%d%U%e%V%e%W%f%X%g%Y%h%[%i%\%j%]%k%^%k%^%l%_%l&@%m&B%o&C%o&D%p&E%q&F%q&G%s&H%t&J%t&K%u&L%v&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_2}8@2~8A28B3`8D3a8F3b8F3c8G3c8I3d8I3e8K3f8M3g8M3h8N3i8O3i8P3j8R3k8S3l8T3m8U3n8V3n8W3o8X3o8X3q8Z3r8\3r8\3s8]3t8^3t8_3v9A3w9B3w9C3x9D3y9E3y9F3{9G3|9I3|9J3}9K3~9K3~9M39N4`9N4a9P4b9R4c9R4d9S4d9T4e9U4f9W4g9X4h9Y4i9Z4i9[4j9\4k9]4l9_4n:A4n:A4o:B4p:D4p:D4q:F4s:G4s:H4t:I4u:J4u:K4w:M4x:N4x:O4y:P4z:Q4z:R4{:S4|:S4}:U4~:W4:W4:X5`:Y5a:Z5b:\5c:]5d:^5d:_5e;@5f;A5g;B5h;D5i;E5j;F5j;F5k;G5l;I5l;I5m;K5o;M5o;M5p;N5q;O5q;P5r;R5t;S5t;T5u;U/
Khary Richardson wrote on Jul 19, 2011
fitz
You can do a MKIRAF and reset the default terminal type at any time, this just recreates the login.cl file. Keep in mind however, this does NOT install xgterm for you or cause one to be started, it is simply your way of telling
IRAF that you have logged in using an XGterm teminal window, but installing xgterm on your machine and starting it are up to you.
Oh so I may not have XGterm installed? Thanks for that clarification I will check to see if I have it. If not should I install it in the iraf directory?
Mike Fitzpatrick wrote on Jul 19, 2011
Normally it would be installed in /usr/local/bin, you can get it from the X11IRAF distribution for your platform from ftp://iraf.noao.edu/iraf/x11iraf.
In the meantime, an XTerm should already be installed on your machine, you'll just need to reset the terminal type and login to iraf from the xterm window.
In the meantime, an XTerm should already be installed on your machine, you'll just need to reset the terminal type and login to iraf from the xterm window.
Khary Richardson wrote on Jul 19, 2011
Fitz,
Did it by doing the following to start an XGterm
Which opened another terminal. I then logged in using cl. I then changed directories to the directory containing the fits files which were then analyzed.
Is there anyway of having the Xterm automatically start when one starts iraf?
Again than you for your help!!
Did it by doing the following to start an XGterm
cd /home/student/IRAF
student@ubuntu:~/IRAF$ xgterm &
Which opened another terminal. I then logged in using cl. I then changed directories to the directory containing the fits files which were then analyzed.
Is there anyway of having the Xterm automatically start when one starts iraf?
Again than you for your help!!
Mike Fitzpatrick wrote on Jul 19, 2011
Is there anyway of having the Xterm automatically start when one starts iraf?
Not really, since the point is that you start iraf from within the xterm/xgterm window they need to be running first. You can however do
xterm -e cl(or with 'xgterm') and have the xterm/xgterm window startup IRAF for you (assuming you do this from a directory with a login.cl file).[/quote]
Khary Richardson wrote on Jul 19, 2011
Okay got it. Do you know of a good tutorial for Xgterm? Wanted to know because I tried to move to different lines in the Xterm, but was unable to.
thanks again
thanks again
Mike Fitzpatrick wrote on Jul 19, 2011
There's no specific tutorial, but whatever you find for Xterm will generally apply to XGterm as well. If by 'move lines' you mean cut-n-paste, then use the left and middle mouse keys respectively.
Last post on Jul 19, 2011