Welcome to iraf.net Friday, May 17 2024 @ 05:24 AM GMT
navarete |
07/14/2010 01:13PM (Read 1452 times)
|
|
|
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
|
|
|
|
fitz |
07/14/2010 01:13PM
|
|
|
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.
|
|
|
|
navarete |
07/14/2010 01:13PM
|
|
|
Status: offline
Registered: 07/14/2010
Posts: 3
|
Thanks for your suggestion. It worked perfectly!
|
|
|
|
| |
|
Content generated in: 0.13 seconds |
|