Welcome to iraf.net Friday, May 17 2024 @ 05:24 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Problems putting hselect result into variables
   
navarete
 07/14/2010 01:13PM (Read 1452 times)  
+----
Newbie

Status: offline


Registered: 07/14/2010
Posts: 3
Hi there!
I'm trying to add the result from hselect into a variable in a cl script. I'm doing it in the following way:string object
arquiv="file.fits" #calls the file which I'm working
hselect (arquiv,"OBJECT",yes) | scan(object)
The problem comes because the field OBJECT is filled with expressions and not just by a single word. When I print "object", only the first word were recorded.For example, the OBJECT content is "Object Filter H2" and the object variable just recorder "Object". Any suggestion for solving it?Cheers,
Felipe Navarete

 
Profile Email
 Quote
fitz
 07/14/2010 01:13PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Instead of "string object", use "struct object" This will allow you to store all the words in the value.

 
Profile Email
 Quote
navarete
 07/14/2010 01:13PM  
+----
Newbie

Status: offline


Registered: 07/14/2010
Posts: 3
Thanks for your suggestion. It worked perfectly!

 
Profile Email
 Quote
   
Content generated in: 0.13 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