Welcome to iraf.net Monday, May 20 2024 @ 03:37 AM GMT


 Forum Index > Archives > Sitemail Archives
 Spectral line label
   
Anonymous: Guest
 05/15/2003 03:26AM (Read 1919 times)  



Dear Sir/Madam,I'm an long-time IRAF user and now I'm learning to use GUIAPPS. There
is a question. How can I label a line with Greek characters, such as
H\alpha, H\beta in a spectrum within GUIAPPS or SPLOT environment?With best regards,
Jianghua Wu----------------------------------------------------------------------
Dr. Jianghua Wu Tel. 0086-010-62759898 (O)
National Astronomical Observatories 64863042 (O)
A20 Datun Road, Chaoyang District 64873380 (H)
Beijing 100012
China email jhwu@bao.ac.cn
----------------------------------------------------------------------

 
Anonymous: Guest
 05/15/2003 03:26AM  



Hello Jianghua, Greek fonts were added for hardcopy output (see the IRAF Newsletter,
http://iraf.noao.edu/irafnews/apr98/irafnews.12.html for details). Note
the newsletter article contains a link to the greek character mappings
available.I'm not sure you can get the screen graphics to show even with ":.txq hi".
But doing a .snap or ".snap eps" does show the Greek labels. In SPECTOOL
you should use \\fGa (alpha) in the appropriate window entry. After
marking a line open the Analyze.Line list window and set the label.
You will also need to turn on the labeling with View.Line Labels
and select ID. In SPLOT you would need to use the 'T' key to overlay
annotation as described in the newsletter article. Just be aware that
any overlay labeling with the cursor mode commands will be lost when the
graph is redrawn.You may have to experiment a little but it is possible to get what you want
though maybe not very conveniently.The only other option is to use the STSDAS IGI plotting package which also
supports alternate fonts.yours,
Frank Valdes

 
Anonymous: Guest
 05/15/2003 03:26AM  



>From jhwu@ns.bao.ac.cn Sat May 17 18:53:37 2003
Date: Sun, 18 May 2003 09:46:37 +0800 (CST)
From: Wu Jianghua <jhwu@bao.ac.cn>
To: Frank Valdes <valdes@noao.edu>
Subject: Re: Spectral line labelHi, Frank,Thank you very much for your answer. I'll have a try as you suggested.All the best,
Jianghua Wu
>From jhwu@ns.bao.ac.cn Sun May 18 01:01:40 2003
Date: Sun, 18 May 2003 15:54:36 +0800 (CST)
From: Wu Jianghua <jhwu@bao.ac.cn>
To: Frank Valdes <valdes@noao.edu>
Subject: Re: Spectral line labelHi, Frank,I have tried a few times on my computer to label the spectral lines.
As you suggested, I use H\\fGa in order to input H\alpha. But the
result is that there is an extra '\' between H and \alpha. What's
the problem? And when I tried H\\fGc in order to input H\gamma, the
output is somewhat like HX, not the \gamma. What's the problem again?I can change the size of the text with :.txset size=1.5. How can I
change the size of the axe-labeling text ("Wavelength", "Flux", etc)?Thank you very much for your help!Sincerely yours,
Jianghua Wu>From valdes@noao.edu Wed May 21 09:58:00 2003
Date: Wed, 21 May 2003 09:57:58 -0700 (MST)
From: Frank Valdes <valdes@noao.edu>
To: jhwu@bao.ac.cn
Subject: Re: Spectral line labelHi Jianghua,You don't say if the problems are with hardcopy or on the screen. It
appears to me that you can't really get different fonts on the screen
even with "txqual high". But when you print the plot it will have the
fonts. Rather than print to a printer you can print to an eps file
with ".snap eps". This will create a file in your working directory
with extension .eps. You can look at this with ghostview, gv, etc.While I tried to give you examples that worked for me, I suggest you
try a few quick experiments with the different programs to see whether
you need one or two '\'. The number depends on the program. In
SPECTOOL you can label lines with fonts (again only visible if you
print it). This task has lots of things you can control in the graph
format and labels but not the size.For the size with txset, this will only affect text added with the 'T'
key. The size for labels is controled by the program. The only way to
change this without changing the program is to modify the graphcap
file.Basically, the IRAF capabilities for modifying graphics in most
programs and for using alternate fonts is not very well developed. If
you really want to do fancy graphics you should use the
tables.tbtools.igi task (see "help igi").Yours,
Frank
>From valdes@noao.edu Wed May 21 10:07:40 2003
Date: Wed, 21 May 2003 10:07:38 -0700 (MST)
From: Frank Valdes <valdes@noao.edu>
To: jhwu@bao.ac.cn
Subject: Re: Spectral line labelI'm not sure I fully answered you last questions.Here is what I find works.1. I run spectool.
2. I mark a line with 'm'
3. I go into the "View" menu and select "Line Labels..."
4. I click the Id selection box
5. I go into the "Analyze" menu and select "Line List..."
6. For the label I enter H\\fGa
7. On the graph I see Ha and in the label box I see H^LGa
8. I do the same for another line labeled with H\\fGc
9. In the "File" menu I select "Print..."
10. I click EPS
11. I quitNow I find an eps file in the directory. I use sp> !ghostview sgi4427.epsand I have a plot with Halpha and Hgamma marked.Frank

 
Anonymous: Guest
 05/15/2003 03:26AM  



Hi,Sorry, I did not look at the eps closely enough on the screen. When I
looked more closely I see that \\fGc is chi and not gamma. Looking at
http://iraf.noao.edu/greek.ps I don't see any gamma in the fonts. So
I'm afraid that, as I said, standard IRAF is not well setup to do what
you want.Yours,
Frank

 
Anonymous: Guest
 05/15/2003 03:26AM  



> Is there some reason why gamma was left out of the greek font?Looks like a typo somewhere in building the font tables, 'nu' is in the
list twice and \fGg is what was intended to do a lower-case gamma. The
data for the fonts were derived from the Hershey font tables and so even
though gamma is the third letter is doesn't necessarily correspond to the
'c' escape. I'll have to look again at how these were constructed but
we should be able to fix it for the next patch, until then upper-case
gamma is the best we can do. I'm surprised it took this long to be
reported....

 
Anonymous: Guest
 05/15/2003 03:26AM  



Hi,I just wanted to let you know that I talked to the person responsible for
the font tables and he said it was a mistake that there is no gamma. It
should have been \fGg for gamma but instead the fonts have two nu's. This
will be fixed in the next release.Frank

 
Anonymous: Guest
 05/15/2003 03:26AM  



Hi Jianghua,
I've fixed the problem with the missing gamma character for the
next IRAF patch, but if you would like a fix sooner please let me know
what kind of machine you're on and I can supply a patched binary and
installation instructions. Sorry for the inconvenience, thanks though
for reporting this.Regards,
Mike Fitzpatrick

 
Anonymous: Guest
 05/15/2003 03:26AM  



>From jhwu@ns.bao.ac.cn Wed May 21 19:20:10 2003
Date: Thu, 22 May 2003 10:12:28 +0800 (CST)
From: Wu Jianghua <jhwu@bao.ac.cn>
To: Mike Fitzpatrick <fitz@noao.edu>
Subject: Re: Spectral line labelHi, Mike,Nice to hear from you. I really want to fix the problem soon. I'm now
using a PC with Redhat 8.0 system. And I have installed the latest
versions of PC-IRAF and X11IRAF. Please send me the patch file and
installation instruction. Thank you very much for your help.With best regards,
Jianghua
>From fitz Wed May 21 20:47:41 2003
To: jhwu@bao.ac.cn
Subject: Re: Spectral line labelHi Jianghua,
I've put a patched binary in ftp://iraf.noao.edu/pub/x_sgikern.e.RHUXJust download in binary mode and install in $iraf/bin.redhat as 'x_sgikern.e'
and you should be able to print a gamma with "\fGg". Let me know if you
have any problems with it.Cheers,
-Mike

 
Anonymous: Guest
 05/15/2003 03:26AM  



>From jhwu@ns.bao.ac.cn Wed May 21 22:54:38 2003
Date: Thu, 22 May 2003 13:47:06 +0800 (CST)
From: Wu Jianghua <jhwu@bao.ac.cn>
To: Mike Fitzpatrick <fitz@noao.edu>
Subject: Re: Spectral line labelHi Mike,I have retieved the file and installed on my IRAF system. It does work.
Thank you very much for your help!All the best,
Jianghua

 
Anonymous: Guest
 05/15/2003 03:26AM  



>From jhwu@ns.bao.ac.cn Wed May 21 20:18:57 2003
Date: Thu, 22 May 2003 11:11:28 +0800 (CST)
From: Wu Jianghua <jhwu@bao.ac.cn>
To: Frank Valdes <valdes@noao.edu>
Subject: Re: Spectral line labelHi, Frank,Thank you very much for your email. I tried again and the procedure
you described does work. And I also find that '\\' should be used in
spectool while '\' should be used in splot when using 'T' to input
text. (Would you please unify them? Smile ). The hardcopy is indeed
different from the screen show.It's really a pitty that we could not change the size of the axe labels.
I have tried many time in spectool -- view -- graph spectra, changing
the mark size, but it does not work. I once wondered whether I had
made any mistake.On the question on \gamma and \chi. Mike promised to send me a patch
to fix the problem. Having got so many help from you two I really owe
you. Thank you very much!Could I give you a comment on spectool? I find that the left click of
the mouse (to restore full range of spectrum) is in fact very
inconvenient. We use spectool to analyze the spectra or to produce
hardcopies for publications. We usually want to show only parts of the
spectra and we can use :/xwin ... & :/ywin (or View -- Contral panel
-- Pan) to change ranges of wavelengths and fluxes. Some operations
may be done in other windows. But when we want to change back to (just
lift) the spectrum window and give a left mouse click as usual, the
spectrum is restored to the full range! All the range changes are lost!
Then we have to re-change the range of the spectrum to show what we want.
The left mouse click function in spectool seems unnecessary. Of course,
It is just my personal comment. I do not know how other users think
about it.Bese wishes,
Jianghua
>From valdes@noao.edu Wed May 28 11:07:16 2003
Date: Wed, 28 May 2003 11:07:13 -0700 (MST)
From: Frank Valdes <valdes@noao.edu>
To: jhwu@bao.ac.cn
Subject: Re: Spectral line labelHi Jianghua> It's really a pitty that we could not change the size of the axe labels.Yes it would be nice to allow changing text size. The only response
I can give is that SPECTOOL is so complex and has so many parameters
and functions that some things were left out. Note that you can change
the text size for the hardcopy by modifying the graphcap file (a file
describing the different capabilities and types of devices). This would
affect all IRAF tasks. If you want directions how to do this we can
send it.> I have tried many time in spectool -- view -- graph spectra, changing
> the mark size, but it does not work. I once wondered whether I had
> made any mistake.The mark size only affects when you plot the spectrum with marks rather
than lines. So you would need to also change "Type" to "box" (or other
symbol) from "line1". When plotting with symbols (other than point)
you can then make the simples larger or smaller in each axis.> Could I give you a comment on spectool? I find that the left click of
> the mouse (to restore full range of spectrum) is in fact very
> inconvenient. We use spectool to analyze the spectra or to produce
> hardcopies for publications. We usually want to show only parts of the
> spectra and we can use :/xwin ... & :/ywin (or View -- Contral panel
> -- Pan) to change ranges of wavelengths and fluxes. Some operations
> may be done in other windows. But when we want to change back to (just
> lift) the spectrum window and give a left mouse click as usual, the
> spectrum is restored to the full range! All the range changes are lost!
> Then we have to re-change the range of the spectrum to show what we want.
> The left mouse click function in spectool seems unnecessary. Of course,
> It is just my personal comment. I do not know how other users think
> about it.I actually find this feature very convenient. But it is dependent on
how you have your X-window manager configured. I have "focus follows
mouse" so I don't have to click to enter a window and I also use
"front" and "back" function keys to raise and lower windows. However,
if you click on the title bar (again window manager dependent) this
should not be the same as a click in the data part of the window. I
will keep your suggestions in mind if I ever go back to improve SPECTOOL.Yours,
Frank

 
Anonymous: Guest
 05/15/2003 03:26AM  



>From jhwu@ns.bao.ac.cn Wed May 28 18:09:53 2003
Date: Thu, 29 May 2003 09:01:17 +0800 (CST)
From: Wu Jianghua <jhwu@bao.ac.cn>
To: Frank Valdes <valdes@noao.edu>
Subject: Re: Spectral line labelHi Frank,
> Hi Jianghua
>
> Yes it would be nice to allow changing text size. The only response
> I can give is that SPECTOOL is so complex and has so many parameters
> and functions that some things were left out. Note that you can change
> the text size for the hardcopy by modifying the graphcap file (a file
> describing the different capabilities and types of devices). This would
> affect all IRAF tasks. If you want directions how to do this we can
> send it.Yes, I would like to have the instructions on how to do this. So please
send me them.> I actually find this feature very convenient. But it is dependent on
> how you have your X-window manager configured. I have "focus follows
> mouse" so I don't have to click to enter a window and I also use
> "front" and "back" function keys to raise and lower windows. However,
> if you click on the title bar (again window manager dependent) this
> should not be the same as a click in the data part of the window. I
> will keep your suggestions in mind if I ever go back to improve SPECTOOL.I also have "focus follows mouse". Of course, it depends on the way one
chooses to raise or lower windows. On a PC I usually use a left click to
raise the windows. Now when I'm using SPECTOOL I choose to click on the
title bar or the corresponding icon on the task bar at the bottom of the
screen.Thank you very much for your email!All the best,
Jianghua

 
Anonymous: Guest
 05/15/2003 03:26AM  



Dear Jianghua,One way of changing the text size for the hardcopy is to edit the IRAF
GRAPHCAP file (dev$graphcap) in order to modify :ch and :cw values in
NDC units.For example:lpr|lp|lw| :cw#.025:ch#.064:tc=g-lpr:would redefine the generic 'lpr' entry to use a text size which is
roughly twice the normal size.A second method is to use the interactive cursor commands ":.txset" and
":.txqual". For example, in cursor mode do a :.txset size=2.0
:.txqual hifollowed by the 'R' (redraw) keystroke. The drawback here is that this
will only affect newly drawn text, e.g. labels you would add yourself
using the 'T' annotation keystroke (see "help cursors").In some tasks (e.g. IDENTIFY), however, the line labels are drawn with
a hardcoded size (0.5) that you cannot override with these tricks.
What you would need to do here is disable labelling with ":label no" in
the task and then use e.g. ":.txset up=180,size=2.0" and the "T"
keystroke to draw the labels yourself.One thing you should be aware of is that you can create a private copy
of the graphcap file. This allows you to leave the system-wide graphcap
unchanged and modify only your local copy. To accomplish this, just
copy the system graphcap in your IRAF home directory (the one where the
login.cl file resides):cp /iraf_path/dev/graphcap mygraphcapand add the following line to your login.cl filereset graphcap = /home_path/mygraphcapHere "home_path" and "iraf_path" refer to the path to your IRAF home
directory and to the root of the IRAF installation, respectively.Hope this helps
Francesco> > Hi Jianghua
> >
> > Yes it would be nice to allow changing text size. The only response
> > I can give is that SPECTOOL is so complex and has so many parameters
> > and functions that some things were left out. Note that you can
> change
> > the text size for the hardcopy by modifying the graphcap file (a file
> > describing the different capabilities and types of devices). This
> would
> > affect all IRAF tasks. If you want directions how to do this we can
> > send it.
>
> Yes, I would like to have the instructions on how to do this. So please
> send me them.

 
   

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