Welcome to iraf.net Wednesday, May 01 2024 @ 06:15 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 hselect
   
dbrenner
 05/05/2006 01:11PM (Read 4056 times)  
++++-
Regular Member

Status: offline


Registered: 05/05/2006
Posts: 115
I have a variable object.name which is equal to HIP 1234.
The query '(object == "@@object.name")' does not seem to work although there is a header object with HIP 1234 as the object
What's wrong?

 
Profile Email
 Quote
fitz
 05/05/2006 01:11PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
When you say "variable object.name" do you literally mean a script variable (perhaps python?) or do you mean 'variable' in the sense it is used in the HEDIT help page where it refers to a header parameter keyword? In either case I'm confused since the period in the name should be invalid.The @ operator dereferences a keyword value and is usually only needed for keywords with a '-' in them, so for instance(object ?= @o-name)would test the value of the 'object' keyword against the value of the 'o-name' keyword. Note the use of the '?=' string comparison operator which is different than '=='. If what you have is a script variable and you're trying to construct an expression using the value, then you need to do something like[code:1:ce1b149f30]cl> s1 = "(object ?= '" // namevar // "')"
cl> hselect ("myimg", "$I,stuff", s1)[/code:1:ce1b149f30]where the first line is simply the concatenation of 3 strings and the second is executed in 'compute mode' so the s1 variable is dereferenced properly by the CL.Hope this helps, if you still have questions please post more details on what you're trying to do exactly.Cheers,
-Mike

 
Profile Email
 Quote
dbrenner
 05/05/2006 01:11PM  
++++-
Regular Member

Status: offline


Registered: 05/05/2006
Posts: 115
Thanks.

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